Skip to content

SystemRunner

Defined in: ecs/system.ts:401

new SystemRunner(world, resources, eventRegistry?): SystemRunner

Defined in: ecs/system.ts:424

World

ResourceStorage

EventRegistry

SystemRunner

clearTimings(): void

Defined in: ecs/system.ts:456

void

Clear timing data for the current frame


evict(systemId): void

Defined in: ecs/system.ts:462

symbol

void

Remove cached state for a single system


getQueryCosts(): ReadonlyMap<string, QueryCost> | null

Defined in: ecs/system.ts:451

Per-system query cost for the frame: what each system’s queries walked, and how much of that a change filter then discarded. This is what turns “7ms” into “7ms over 18,400 entities, none of which had changed”.

ReadonlyMap<string, QueryCost> | null


getTimings(): ReadonlyMap<string, number> | null

Defined in: ecs/system.ts:442

ReadonlyMap<string, number> | null


reset(): void

Defined in: ecs/system.ts:474

void

Clear all cached state


run(system): void | Promise<void>

Defined in: ecs/system.ts:485

SystemDef

void | Promise<void>


setTimingEnabled(enabled): void

Defined in: ecs/system.ts:436

boolean

void