From 29df2bcc78d51606757b0aee644896cf20dab038 Mon Sep 17 00:00:00 2001 From: shun suzuki Date: Fri, 3 Jan 2025 11:17:50 +0900 Subject: [PATCH] update `SurfaceConfiguration` --- simulator/src/renderer/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simulator/src/renderer/mod.rs b/simulator/src/renderer/mod.rs index b0b55fb..b4a820a 100644 --- a/simulator/src/renderer/mod.rs +++ b/simulator/src/renderer/mod.rs @@ -78,11 +78,11 @@ impl Renderer { width, height, present_mode: if state.vsync { - wgpu::PresentMode::Fifo + wgpu::PresentMode::AutoVsync } else { - wgpu::PresentMode::Immediate + wgpu::PresentMode::AutoNoVsync }, - desired_maximum_frame_latency: 2, + desired_maximum_frame_latency: 0, alpha_mode: swapchain_capabilities.alpha_modes[0], view_formats: vec![wgpu::TextureFormat::Bgra8UnormSrgb], };