Skip to content

Commit

Permalink
revert default vsync mode to Fifo
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. bevyengine#1343
  • Loading branch information
cart committed Feb 7, 2021
1 parent 3475a64 commit de75829
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 de75829

Please sign in to comment.