feat(m4): playtest friction: perf overlay, fresh import, token seed (#82)

Opt-in ?perf=1 overlay (fps, frame p50/p95, JS p50/p95, tokens, zoom; no node or ticker work when off). fff-vtt import creates and migrates a fresh/empty state dir through the shared server startup path; devbox run serve gains --image. devbox run seed creates deterministic labelled NPC tokens over the real WS (idempotent rerun, --replace), and the GM token form defaults X/Y to the viewport centre.
This commit is contained in:
2026-11-21 17:20:05 +01:00
parent 356705823b
commit 9c7f9de910
20 changed files with 933 additions and 53 deletions
+5 -3
View File
@@ -61,9 +61,11 @@ built against glibc 2.44 while this host (NixOS) runs 2.42, so a 2.44-built `lib
`fff-vtt import`, checks the exact `<x>_<y>.png` set and per-tile geometry, then starts the real
server and test nginx and proves a player with an explored overlapping cell gets `200` (and an
unexplored tile `403`, another art version `404`). A re-import grows `art_version` and the
restarted server serves the `v<new>` tree. Every refused import (bad/absent image, unsupported or
multi-frame format, scene ≠ 1, `tile_size % cell ≠ 0`, absent state dir or DB, held lock) exits
non-zero and leaves no tile tree. This is §10.3 Tiles evidence.
restarted server serves the `v<new>` tree. The CLI also creates and migrates a fresh/empty state
dir through the server's startup path (#82), so an import works before the first serve. Every
refused import (bad/absent image, unsupported or multi-frame format, scene ≠ 1, `tile_size % cell
≠ 0`, malformed DB, or a running server holding the lock) exits non-zero and leaves no tile tree;
`serve --image` runs the import before starting the stack. This is §10.3 Tiles evidence.
### 3.4 Threat list