Skip to content

SystemRunner

Defined in: ecs/system.ts:401

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

Defined in: ecs/system.ts:423

World

ResourceStorage

EventRegistry

SystemRunner

clearTimings(): void

Defined in: ecs/system.ts:455

void

Clear timing data for the current frame


evict(systemId): void

Defined in: ecs/system.ts:461

symbol

void

Remove cached state for a single system


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

Defined in: ecs/system.ts:450

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:441

ReadonlyMap<string, number> | null


reset(): void

Defined in: ecs/system.ts:472

void

Clear all cached state


run(system): void | Promise<void>

Defined in: ecs/system.ts:482

SystemDef

void | Promise<void>


setTimingEnabled(enabled): void

Defined in: ecs/system.ts:435

boolean

void