Skip to content

five-on-it / packages/sim/src/components / MAX_ENTITIES

Variable: MAX_ENTITIES ​

const MAX_ENTITIES: 4096 = 4096

Defined in: packages/sim/src/components.ts:16

Entity id budget per world: a city's light pieces (main-riverbend, the densest, plants 2,069, its parked cars among them), its cars and their drivers (64 in a crowded room), the crowd, the chasers and their crews, the police, the projectiles, the items and the containers. An id past it would read past the arrays.