From 8b7b0bf54516c4b28cc38d328a01946b3800eec7 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 9 Feb 2024 09:04:48 -0700 Subject: [PATCH] Remove unnecessary redraw request This was particularly visible on Redox where there is no vsync, but also causes unnecessary redraws on Linux --- winit/src/application.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/winit/src/application.rs b/winit/src/application.rs index e473177577..9a36cc395f 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -533,8 +533,6 @@ async fn run_instance( mouse_interaction = new_mouse_interaction; } - window.request_redraw(); - redraw_pending = false; let physical_size = state.physical_size();