SystemRunner
Defined in: ecs/system.ts:401
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SystemRunner(
world,resources,eventRegistry?):SystemRunner
Defined in: ecs/system.ts:423
Parameters
Section titled “Parameters”resources
Section titled “resources”ResourceStorage
eventRegistry?
Section titled “eventRegistry?”Returns
Section titled “Returns”SystemRunner
Methods
Section titled “Methods”clearTimings()
Section titled “clearTimings()”clearTimings():
void
Defined in: ecs/system.ts:455
Returns
Section titled “Returns”void
Clear timing data for the current frame
evict()
Section titled “evict()”evict(
systemId):void
Defined in: ecs/system.ts:461
Parameters
Section titled “Parameters”systemId
Section titled “systemId”symbol
Returns
Section titled “Returns”void
Remove cached state for a single system
getQueryCosts()
Section titled “getQueryCosts()”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”.
Returns
Section titled “Returns”ReadonlyMap<string, QueryCost> | null
getTimings()
Section titled “getTimings()”getTimings():
ReadonlyMap<string,number> |null
Defined in: ecs/system.ts:441
Returns
Section titled “Returns”ReadonlyMap<string, number> | null
reset()
Section titled “reset()”reset():
void
Defined in: ecs/system.ts:472
Returns
Section titled “Returns”void
Clear all cached state
run(
system):void|Promise<void>
Defined in: ecs/system.ts:482
Parameters
Section titled “Parameters”system
Section titled “system”Returns
Section titled “Returns”void | Promise<void>
setTimingEnabled()
Section titled “setTimingEnabled()”setTimingEnabled(
enabled):void
Defined in: ecs/system.ts:435
Parameters
Section titled “Parameters”enabled
Section titled “enabled”boolean
Returns
Section titled “Returns”void