M4: playtest friction: fps overlay, import on fresh state, token seeding #82
Notifications
Due Date
No due date set.
Blocks
#77 M4: real-phone playtest gate (Note 10, 60 fps)
SirStone/FFF_vtt_frozen
Reference: SirStone/FFF_vtt_frozen#82
Reference in New Issue
Block a user
Part of #63
Owner's real-phone checklist (#77 comment 2983) found three frictions before the playtest is repeatable. All three are tooling, not wire behaviour; proto stays 2.
a. No in-app fps readout
Reading fps on the phone requires USB + adb +
chrome://inspect. Add an in-app, opt-in perf overlay:?perf=1) and/or a settings toggle. Off by default, no wire change, no per-frame cost when off.textContent/BitmapTextper client conventions.b.
fff-vtt importneeds an already-migrated state.dbToday the owner serves, Ctrl-Cs, imports, serves again. Import must work on a fresh/empty state dir: create and migrate through the same code path as server startup (no duplicated migration logic).
devbox run servegains--image <file>: import before starting; refuse (exit 3 semantics) when a server holds the state-dir lock.c. Seeding 50 tokens means 50 panel submits
Add a seeding tool (e.g.
devbox run seed -- --tokens 49 ...) that connects as GM over the real WS (LAN/loopback URL), creates N NPC tokens spread deterministically over the scene with an optional vision subset, and is idempotent-ish (labelled so a rerun does not double up, or--replace). Also: the GM token panel's create form defaults X/Y to the current viewport centre instead of 400,400.Acceptance
?perf=1shows fps/frame/JS/token/zoom numbers.serve --imagesmoke; seed creates N tokens visible to the GM and rerun/--replacebehave.docs/HANDOFF-M4.mdupdated; gates green;#77checklist rewritten to use these.Implemented in
9c7f9deon main: opt-in?perf=1overlay, import creates/migrates a fresh state dir (same startup path) anddevbox run serve -- --image,devbox run seedwith deterministic labelled tokens and--replace, GM token form defaults X/Y to the viewport centre. Gates:devbox run test(165 pass),devbox run client-test(180 pass),devbox run e2e(29 pass; one known tiles-ready audit flake on the first run, green on rerun — owned by the deflake lane). #77 checklist rewritten in #issuecomment-2993.