capacities (25.5a): @max on Physics' bounded lists - every fact pool and free list (1024), the walker slots (64), the shape and body-owner tables (262144), npc's walkers and posts (64)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 16:49:58 +03:00
parent 3205408290
commit 2fca1056c6
8 changed files with 22 additions and 22 deletions

View file

@ -8,14 +8,14 @@ export state NpcState {
np_clock: float = 0.0
np_recent: []string = np_recent_new() # the last few names that left, a ring
np_rnext: int = 0
np_walkers: []NpcPerson = new []NpcPerson
np_posts: []NpcPerson = new []NpcPerson
@max(64) np_walkers: []NpcPerson = new []NpcPerson
@max(64) np_posts: []NpcPerson = new []NpcPerson
np_max: int = 10 # walkers at most
np_n: int = 0 # walkers about
np_dice: Rng = rng_new(20260925)
np_facts: Queue<NpcFact> = np_facts__new()
np_fpool: []NpcFact = np_pool_new() # every fact record made, reused once no drain holds it
np_ffree: []NpcFact = np_list_sized()
@max(1024) np_fpool: []NpcFact = np_pool_new() # every fact record made, reused once no drain holds it
@max(1024) np_ffree: []NpcFact = np_list_sized()
np_fnext: int = 0
np_next_h: float = 0.0 # the hour the census is next looked at
np_hold: bool = false # held where they stand (a shot of their poses)