Commit Graph

2 Commits

Author SHA1 Message Date
alan e52392b332 Design bench: budget per-frame means, document Glass limits
A cheaper design draws more frames in the same gesture, so build/raster
sums penalised it; the gate now compares mean build and raster time per
frame with Default's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:56:34 +00:00
alan bc00d321d9 Designs: cache themes, value-equal tokens, and a per-design perf budget
A rebuilt Terminal theme never equalled the last one (AppDesignTokens,
AnsiAccents and the tab indicator compared by identity), so any host
rebuild (a detached window's title, a font notification) rebuilt every
Theme.of dependent and ran MaterialApp's 200 ms theme animation. Themes
are now cached per (design, brightness, font) and compare by value;
chat colour seeded schemes are cached too.

test/perf/design_bench_test.dart and tool/perf/design_bench.mjs check
every registered AppDesign against Default (tool/perf/README.md).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:43:10 +00:00