e9d5f6815a22cbda7eabe09ae2f5710fcc58ffd6
views.Context held copies of scene, tokens, characters, reveals, encountered and visions, so every mutation deep-copied each player's explored HashSet under the global lock; playerView then copied its own PlayerVision again and greyFor copied one per encountered entry. Context now holds six pointers (contextOf/borrow), playerView/gmView read a ptr PlayerVision and a view builds each player's visible-id set once per frame, so grey is a set test. Measured on this build's types (debug, 6 players, 40 encountered entries, 40 world tokens, 16384 / 262144 explored cells): context construction 0.227 ms / 4.87 ms -> 0.008 us; one getOrDefault of a PlayerVision 28.8 us / 591 us -> gone; GM egress pass 8.0 ms / 142.8 ms -> 0.79 ms / 0.80 ms; player pass 1.45 ms / 25.7 ms -> 0.32 ms. Behaviour is unchanged (leak/fault suites and tviews green); tviews pins the borrow by identity, the six-pointer size and both sizes inside the M5 7.5 ms budget.
Description
No description provided
9.2 MiB
Languages
JavaScript
38.4%
Nim
38.3%
TypeScript
20.9%
Shell
1.9%
CSS
0.5%