LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
Integration: #995 time drag drafts only while the GPU draws the view
aiongg5aa5c6681ffe
diff --git a/crates/ui-egui/src/panels/detail.rs b/crates/ui-egui/src/panels/detail.rsindex 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