revert default vsync mode to Fifo (#1416)

the mailbox option doesn't do framelimiting on some devices. we need to rely on vsync for framelimiting until bevy supports framelimiting internally. #1343
This commit is contained in:
Carter Anderson 2021-02-08 18:13:37 -08:00 committed by GitHub
parent 3475a64a2c
commit b71ada0346
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
},