From b71ada03465a0343b4ead1b2896f44587e719a47 Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Mon, 8 Feb 2021 18:13:37 -0800 Subject: [PATCH] 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 --- crates/bevy_wgpu/src/wgpu_type_converter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_wgpu/src/wgpu_type_converter.rs b/crates/bevy_wgpu/src/wgpu_type_converter.rs index 1a83c2466be74..923900e74d4ba 100644 --- a/crates/bevy_wgpu/src/wgpu_type_converter.rs +++ b/crates/bevy_wgpu/src/wgpu_type_converter.rs @@ -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 },