docs: point DESIGN §5 at TESTING; move vision/bench proof out

Edge-case counts and bug regressions, the perf table and bench scenes, oracle
citations, the move-rule regression baseline, the see-over oracle spec and the
thickness/joint measurements move to TESTING §5.1-§5.10. Targets, the 5k-wall
gate and the accepted thickness cost stay in DESIGN.
This commit is contained in:
2026-11-17 23:22:06 +01:00
parent 6837bbcf11
commit bc10780625
2 changed files with 53 additions and 75 deletions
+2 -4
View File
@@ -174,10 +174,8 @@ power-save CPU.
- `cellsTouched` is ~12x the polygon itself and dominates [MEASURED]. M2 replaced per-cell polygon
tests with scanline rasterization over the explored grid, differential-tested against the ported
implementation [PROPOSED; built in M2].
- Polygon cost is O(rays x walls in bbox) [MEASURED code reading, `server/geometry.nim`
`visibilityPolygon`, ported unchanged from the prototype]. The prototype scene has 60 walls and 8
tokens, so this says nothing about big maps. With radius-bbox culling the cost scales with local wall
density, not total walls [INFERRED].
- The prototype scene the table measures has 60 walls and 8 tokens, so its numbers say nothing about
big maps; the 5k bench scenes below are the answer.
- Bench scenes (`tools/scenegen.nim`): the 5k target is the sparse primary layout
`genScene(16384, 5000, 1)`: 0.082 ms avg [MEASURED, `results/bench.log`]. The dense layout
`genScene(4096, 5000, 1)` is a stress reference (1.28 ms avg, ~207 walls in the vision bbox)