Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

Revert "Integration: #995 time drag drafts only while the GPU draws the view"

aiongge9e44643a591
diff --git a/crates/ui-egui/src/panels/detail.rs b/crates/ui-egui/src/panels/detail.rs
index bff041033..975993fa5 100644
--- a/crates/ui-egui/src/panels/detail.rs
+++ b/crates/ui-egui/src/panels/detail.rs
@@ -569,9 +569,8 @@ 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. 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) {
+ // 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()) {
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