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:
@@ -26,6 +26,10 @@ for the M4 run: what exists, what is proven, what is deliberately still open.
|
||||
- **#77** - the human real-phone playtest: Note 10 + laptop, 16384 px map, 50 tokens, fog active,
|
||||
LAN TLS/h2. Its comment is the checklist with commands, numbers to record and pass thresholds.
|
||||
`#63` and `#62` close only after #77.
|
||||
- **Playtest tooling (#82, closed with this note):** `?perf=1` in-app fps/frame/JS/token/zoom
|
||||
overlay (off by default), `fff-vtt import` on a fresh/empty state dir, `devbox run serve --
|
||||
--image=<file>`, `devbox run seed -- --url=...` for the 50 tokens, and the GM token form's X/Y
|
||||
default to the viewport centre.
|
||||
- **M5** - concurrency, bounded outbox/coalescing, lag tracking, SIGTERM, metrics, nginx dead-peer
|
||||
timeout, stats outside the lock. `#34` heartbeat is M5.
|
||||
- **Deferred:** `db_connector` -> thin sqlite3 binding (build item 13); per-token polygon cache and
|
||||
|
||||
+5
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user