Skip to content

Commit a46e968

Browse files
OneSlipsclaude
andcommitted
PERF-CULL: cull_bench gives the app the preparation settings it asks for, so the first pass doesn't put the saved ones back
CodeRabbit on storytold#3080: the first logic pass copies the app's saved settings into the session, so CULL_PREP was undone and the run timed the defaults. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent cfeb94f commit a46e968

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎crates/ui-egui/examples/cull_bench.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ fn main() {
6060
}
6161
}
6262
let mut h = Headless::new(LightcraftApp::new(s, Services::default()), [1600.0, 1000.0], 1.0);
63+
// the first pass copies the app's saved settings into the session: those asked for are the
64+
// app's too, so the run times them (CodeRabbit on #3080)
65+
h.app.ui.settings.background_prep = h.app.session.prep.app;
6366
let req = |h: &mut Headless, m: &str, p: Value| h.request(m, p, Duration::from_secs(60));
6467
let n = h.app.session.visible_cloned().len();
6568
let start_at = n / 10;

0 commit comments

Comments
 (0)