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:
parent
3475a64a2c
commit
b71ada0346
@ -640,7 +640,7 @@ impl WgpuFrom<&Window> for wgpu::SwapChainDescriptor {
|
|||||||
width: window.physical_width(),
|
width: window.physical_width(),
|
||||||
height: window.physical_height(),
|
height: window.physical_height(),
|
||||||
present_mode: if window.vsync() {
|
present_mode: if window.vsync() {
|
||||||
wgpu::PresentMode::Mailbox
|
wgpu::PresentMode::Fifo
|
||||||
} else {
|
} else {
|
||||||
wgpu::PresentMode::Immediate
|
wgpu::PresentMode::Immediate
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user