-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change default wgpu backend from all
to primary
on windows
#7733
Change default wgpu backend from all
to primary
on windows
#7733
Conversation
Could we use From my understanding of #7620 (comment) it's more likely to happen on windows, while the |
Co-authored-by: Robert Swain <robert.swain@gmail.com>
all
to primary
all
to primary
on windows
Co-authored-by: James Liu <contact@jamessliu.com>
let default_backends = if cfg!(feature = "webgl") { | ||
Backends::GL | ||
// TODO: When https://github.com/gfx-rs/wgpu/issues/2540 is fixed, Windows can also use all() | ||
} else if cfg!(target_os = "windows") { | ||
Backends::PRIMARY | ||
} else { | ||
Backends::all() | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this logic should be moved to a Default
impl on Backends
?
A new glow patch is out which should fix the issue so hold off on merging this. |
This is now released: closing this PR. |
Objective
Temporary fix for #7620
Solution
Revert the default wgpu backends back to
PRIMARY
fromall()
.Reverting #7481
I personally believe this is a temporary fix for 0.10, if gfx-rs/wgpu#2540 is fixed before 0.10 I think if should be fine to leave it on
all()
but that issue hasn't had much activity.I think we should also keep in mind wither more people are running into the issue of
Unable to find a GPU!
than there are people suffering from #7620 to try and please the most users.