mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue