From 5aa5c6681ffe4a6c8d3d3432c71dcd72af11ae13 Mon Sep 17 00:00:00 2001 From: aiongg Date: Wed, 21 Oct 2026 14:50:55 +0000 Subject: [PATCH] Integration: #995 time drag drafts only while the GPU draws the view --- crates/ui-egui/src/panels/detail.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/panels/detail.rs b/crates/ui-egui/src/panels/detail.rs index 090a10dad..a1ef79609 100644 --- a/crates/ui-egui/src/panels/detail.rs +++ b/crates/ui-egui/src/panels/detail.rs @@ -568,8 +568,9 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui) { plan = crate::region::plan(&app.ui.settings, crate::region::ViewSizes { windows: false, ..sizes }); } // time the full-size drafts where they are what shows: under a window the whole-frame draft - // is small anyway, and the frame's time is the window's upload - if let Some((key, ms)) = shown.filter(|_| plan.window_edge.is_none()) { + // is small anyway, and the frame's time is the window's upload. A view the GPU doesn't draw + // (⌥ pressed mid-drag) renders on the CPU and says nothing about the GPU drafts. + if let Some((key, ms)) = shown.filter(|_| plan.window_edge.is_none() && gpu) { app.drag_scale.observe(key, ms, app.perf.host_frame_ms); } // a pinch changes the zoom every frame: keep the sizes of before it until it is quiet