From 625088dc5aeb43aa7cc03c799518589fb8e70b39 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 7 Apr 2022 19:26:35 +0200 Subject: [PATCH] Switch present mode to "mailbox" I'm running into this issue: https://github.com/gfx-rs/wgpu/issues/1218 I'm not aware of any adverse effects of switching to `PresentMode::Mailbox`, except that it's "not optimal for mobile", according to the wgpu documentation. Since we don't currently support any mobile platforms, I think this is fine for now. --- fj-app/src/graphics/renderer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fj-app/src/graphics/renderer.rs b/fj-app/src/graphics/renderer.rs index df89f52ab..f77b0eb07 100644 --- a/fj-app/src/graphics/renderer.rs +++ b/fj-app/src/graphics/renderer.rs @@ -75,7 +75,7 @@ impl Renderer { format: color_format, width: window.width(), height: window.height(), - present_mode: wgpu::PresentMode::Fifo, + present_mode: wgpu::PresentMode::Mailbox, }; surface.configure(&device, &surface_config);