Skip to content

Commit

Permalink
Switch present mode to "mailbox"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hannobraun committed Apr 7, 2022
1 parent 6973eae commit 625088d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fj-app/src/graphics/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl Renderer {
format: color_format,
width: window.width(),
height: window.height(),
present_mode: wgpu::PresentMode::Fifo,
present_mode: wgpu::PresentMode::Mailbox,
};
surface.configure(&device, &surface_config);

Expand Down

0 comments on commit 625088d

Please sign in to comment.