Skip to content
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

Fix issue on my new AMD GPU #437

Merged
merged 4 commits into from
Apr 7, 2022
Merged

Fix issue on my new AMD GPU #437

merged 4 commits into from
Apr 7, 2022

Conversation

hannobraun
Copy link
Owner

I got my new PC today, which has an AMD CPU/GPU. The old one had Intel, as does my laptop.

This pull request fixes a crash with that hardware, by logging a warning instead of panicking on a draw error. It then fixes the large number of warnings printed by switching the present mode from PresentMode::Fifo to PresentMode::Mailbox.

I'm running into a case where this error is returned all the time, but
everything still works. Constant warnings are certainly annoying, but
they're better than the app not working at all.
I'm running into this issue:
gfx-rs/wgpu#1218

I'm not aware of any adverse effects of switching to
`PresentMode::Mailbox`, except that it's "not optimal for mobile",
according to the wgpu documentation. Since we don't currently support
any mobile platforms, I think this is fine for now.
@hannobraun
Copy link
Owner Author

Also works fine on my laptop. Merging.

@hannobraun hannobraun merged commit 054f4ac into main Apr 7, 2022
@hannobraun hannobraun deleted the graphics branch April 7, 2022 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant