From 2cef67b1293f3962415855fc8e66b29895d7f0f6 Mon Sep 17 00:00:00 2001 From: Simon Gellis Date: Sat, 30 Nov 2024 21:56:33 -0500 Subject: [PATCH] Turning off vsync makes input way smoother --- src/app.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index b7c0fb0..d03615c 100644 --- a/src/app.rs +++ b/src/app.rs @@ -185,7 +185,10 @@ struct Viewport { impl Viewport { pub fn new(event_loop: &ActiveEventLoop, mut app: Box) -> Self { let mut painter = egui_wgpu::winit::Painter::new( - egui_wgpu::WgpuConfiguration::default(), + egui_wgpu::WgpuConfiguration { + present_mode: wgpu::PresentMode::AutoNoVsync, + ..egui_wgpu::WgpuConfiguration::default() + }, 1, None, false,