Targets met without a spatial grid: polygon+cells 0.048 ms (<= 0.451) on the prototype scene, polygon 0.083 ms (< 1 ms) on 5k sparse. 5k dense stress layout reported (1.28 ms). Logs: results/bench.log, nimble-test.log. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
18 lines
1.1 KiB
Plaintext
18 lines
1.1 KiB
Plaintext
== prototype scene (60 walls, 8 tokens, radius 400, cell 32) ==
|
|
1 poly (jittered start positions): n=2000 avg=0.036ms worst=0.121ms
|
|
6 polys (one 6-token party): n=500 avg=0.204ms worst=0.264ms
|
|
1 poly + cellsTouched (scanline): n=2000 avg=0.049ms worst=0.339ms
|
|
6 polys + cellsTouched (scanline): n=300 avg=0.265ms worst=0.353ms
|
|
1 poly + cellsTouchedOld (prototype reference): n=500 avg=0.726ms worst=2.365ms
|
|
TARGET polygon+cells, prototype scene (prototype baseline 0.451): 0.049 ms vs <= 0.451 ms: PASS
|
|
== 5k sparse: genScene(world=16384., n=5000, seed=1), avg walls in vision bbox 15.6 ==
|
|
1 poly, 5k sparse: n=2000 avg=0.082ms worst=0.127ms
|
|
1 poly + cellsTouched, 5k sparse: n=2000 avg=0.096ms worst=0.145ms
|
|
1 move check (pathClear, cap-length step), 5k sparse: n=20000 avg=0.010ms worst=0.131ms
|
|
TARGET polygon, 5k-wall scene: 0.082 ms vs <= 1.0 ms: PASS
|
|
== 5k dense: genScene(world=4096., n=5000, seed=1), avg walls in vision bbox 206.9 ==
|
|
1 poly, 5k dense: n=2000 avg=1.282ms worst=3.079ms
|
|
1 poly + cellsTouched, 5k dense: n=2000 avg=1.319ms worst=2.817ms
|
|
1 move check (pathClear, cap-length step), 5k dense: n=20000 avg=0.009ms worst=0.116ms
|
|
(sink 6023672)
|