diff --git a/crates/eframe/src/native/run.rs b/crates/eframe/src/native/run.rs index b661cdb8efe..e437aacf209 100644 --- a/crates/eframe/src/native/run.rs +++ b/crates/eframe/src/native/run.rs @@ -87,10 +87,12 @@ impl WinitAppWrapper { if cfg!(target_os = "windows") { if let Ok(EventResult::RepaintNow(window_id)) = event_result { log::info!("RepaintNow of {window_id:?}",); - self.windows_next_repaint_times.insert(window_id, now); // Fix flickering on Windows, see https://github.com/emilk/egui/pull/2280 event_result = self.winit_app.run_ui_and_paint(event_loop, window_id); + + self.windows_next_repaint_times.insert(window_id, now); + now = Instant::now(); } }