From 2572673c4499c4467be7a6c33aa79a634f0dbd3e 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 1a83c2466be742..923900e74d4ba6 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 },