DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
ui_shot: render every script line, so long scripts don't time out on the GPU
moppeeer69240ab8c2db
diff --git a/crates/ui-egui/examples/ui_shot.rs b/crates/ui-egui/examples/ui_shot.rsindex c0bf38943..0373a578d 100644--- a/crates/ui-egui/examples/ui_shot.rs+++ b/crates/ui-egui/examples/ui_shot.rs@@ -78,6 +78,12 @@ fn main() {}step_n(&mut harness, 2);}+ // Frames that aren't rendered keep their texture changes for the next render: a script+ // that edits a long document (every edit redraws the Pages panel's thumbnails) without+ // screenshots piled them up until the shot's render timed out on the GPU. Render each line.+ if l.get("shot").is_none() {+ let _ = harness.render();+ }}}