Status: done Priority: 3 Size: S Design ref: Time and calendar (Speeds: pause, 1×, 3×, 10×; Pace of play); Open questions (Faster speeds or skipping nights). Goal: At 10× a year takes about 4 minutes, so a 150-year run is about 10 hours at full speed, much of it uneventful. The simulation takes about 0.2 s per game day on populous medium, so 30× costs about 13% of a core. Acceptance criteria:
design.md, Running in the background); off by default.
Notes / questions:Implementation, 4 November 2026:
src/page/speed.js, read by page/animate and controlled by page/input.
Reads st.t and invokes the existing Sim.advance; adds no simulation fields, owners, random draws or save data.
No changes to the simulation’s rules, golden file or work counters.tests/speed.js checks fixed rates, budget boundaries, an over-budget indivisible step, measured speed,
pause, focus/visibility, opt-in background progress and bounded catch-up. The page smoke checks the clock at
1×, 3×, 10×, 30× and Uncapped. tests/browser-speed.js checks the real page at populous tiny, seed 7,
including keyboard resume, background progress, full-date clock synchronisation, visible pawn positions and mobile fit.
It no longer measures frame times: presentation performance is deferred, rather than inferred from software rendering.npm test passed all 63 scripts (76.0 s); npm run verify passed all 73 scripts (188.0 s), including
golden state, save/load equivalence, invariants and both browser checks. index.html is rebuilt. The golden and counter baselines
are unchanged. Desktop and 390 px mobile screenshots were inspected; the speed controls fit both layouts.Review, 5 November 2026:
aria-keyshortcuts attributes.npm test scripts passed (64.1 s), and all 73 npm run verify scripts passed (211.3 s),
including the expanded real-browser checks, unchanged golden state, five invariant runs and save/load continuity.
The generated page, lint, backlog consistency and diff whitespace checks pass. No baseline was re-recorded.