wgpu: use mailbox instead of fifo for vsync (#920)

This commit is contained in:
Carter Anderson 2020-11-25 17:28:58 -08:00 committed by GitHub
parent 69603904ab
commit 86d724e04e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -567,7 +567,7 @@ impl WgpuFrom<&Window> for wgpu::SwapChainDescriptor {
width: window.width(),
height: window.height(),
present_mode: if window.vsync() {
wgpu::PresentMode::Fifo
wgpu::PresentMode::Mailbox
} else {
wgpu::PresentMode::Immediate
},