From 883be0bc010e6e094c0637f1ed4c30fd997b7a3b Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sat, 28 Oct 2023 00:22:01 -0700 Subject: [PATCH] disable vsync for funsies --- src/setup.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/setup.rs b/src/setup.rs index c9853da..42e6618 100644 --- a/src/setup.rs +++ b/src/setup.rs @@ -170,6 +170,7 @@ impl SetupContextPartial4{ .expect("Surface isn't supported by the adapter."); let surface_view_format=config.format.add_srgb_suffix(); config.view_formats.push(surface_view_format); + config.present_mode=wgpu::PresentMode::AutoNoVsync; self.surface.configure(&self.device, &config); SetupContext{