Status: blocked
Waits for: Kim
Priority: 3
Size: S
Arch: yardstick
Phase: implement
Design ref: Vision and scope (up to about 1,000 pawns). External review of 2 November (docs/review-external.md).
Goal: VB-088 budgets the simulation in Node; nothing measures drawing. A page that simulates fast can still stutter when it paints 800 pawns and the map. Measure frame times in the browser so a costly drawing change is caught when it lands.
Deferred, Kim, 4 November 2026: skip the presentation budget for now. Rendering is intended to be GPU accelerated;
measurements on the current computer without a GPU do not establish the presentation budget. Resume when presentation
measurement is requested again. Functional browser checks and the simulation’s own 12 ms pacing budget continue to run.
Acceptance criteria:
tests/frames.js opens the built index.html in Playwright’s Chromium as tests/browser.js does (PixiJS served from node_modules in place of the CDN, so no network); populous medium at seed 7, after the map is generated. Shared set-up moves to tests/lib/ rather than being copied.requestAnimationFrame; it reports frames per second, the median, 95th percentile and longest frame, and the share of frame time in simulation against drawing (the page’s own timing, if exposed; otherwise frame time minus Sim.advance).tests/frames-baseline.json and fails when the 95th percentile exceeds twice the baseline; --update re-records it, only for an intended change.npm run verify if it takes under 45 s; otherwise as npm run frames, and AGENTS.md says when to run it (every task that changes src/page/ drawing).HEAD go in the PR and in this file.docs/slices.md, section 3.0; the slices Decided by Kim): moved to slice 0, arch yardstick (from tooling).docs/bench/history.jsonl as a line of their own.