Skip to content

Commit

Permalink
revert default vsync mode to Fifo (#1416)
Browse files Browse the repository at this point in the history
the mailbox option doesn't do framelimiting on some devices. we need to rely on vsync for framelimiting until bevy supports framelimiting internally. #1343
  • Loading branch information
cart authored Feb 9, 2021
1 parent 3475a64 commit b71ada0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_wgpu/src/wgpu_type_converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ impl WgpuFrom<&Window> for wgpu::SwapChainDescriptor {
width: window.physical_width(),
height: window.physical_height(),
present_mode: if window.vsync() {
wgpu::PresentMode::Mailbox
wgpu::PresentMode::Fifo
} else {
wgpu::PresentMode::Immediate
},
Expand Down

0 comments on commit b71ada0

Please sign in to comment.