feat(m4): cap map images at Full HD and shrink on import (#85)
The owner fixed the map cap at 1920 px on the long side and 1080 px on the short side (either orientation). fff-vtt import now shrinks a larger source with ImageMagick Lanczos before tiling (alpha kept, proportions preserved, no upscaling), prints `scaled WxH -> WxH`, and records the shrunk w/h; a source at or below the cap is untouched, so the pixel-identity tests still hold. A scene row already above the cap is not rewritten: the server logs `map_above_cap` at startup and serve prints the re-import advice. Docs: ADR-0023, DESIGN 3.3/5.3/8/11.1/13/14, TESTING 5.3/13, README, HANDOFF-M4, client README. The M4 phone gate and the fogbench measurement now use the Full HD maximum; the 16384 px / 262144-cell bench and test rows stay as labelled server stress references. import-scale now proves a 16384² input is shrunk to 1080x1080 (289 tiles at 64 px) quickly and bounded. Part of #63, #85. #77 is blocked by this issue.
This commit is contained in:
+3
-2
@@ -84,8 +84,9 @@ change them only if a slice needs a new *core* event, and say so in the PR.
|
||||
list is written in the test, never imported from `tools/leakcheck.nim`, so the proof is independent
|
||||
of the server's own list. A second test is the negative control: the same rules run against a
|
||||
`-d:leakfault` build with `LEAK_FAULT=otherVision` and must catch the injected foreign polygon.
|
||||
- **50-token measurement**: the server half is `tools/fogbench.nim` (`devbox run fogbench`, 16384 px,
|
||||
50 tokens, ~5k walls); the headless half is `e2e/fogbench.test.mjs`. Numbers and the honest caveat
|
||||
- **50-token measurement**: the server half is `tools/fogbench.nim` (`devbox run fogbench`, Full HD
|
||||
1920×1080, the max scene, 50 tokens, thousands of walls); the headless half is
|
||||
`e2e/fogbench.test.mjs`. Numbers and the honest caveat
|
||||
(SwiftShader is a floor, not a phone) are in `results/m4-fog-bench.md`. The real 60 fps run is #77.
|
||||
|
||||
## Name, badge and reconnect (T5, #68)
|
||||
|
||||
Reference in New Issue
Block a user