Skip to content

makeSceneScopedQueue

makeSceneScopedQueue(processSystem, scene, options?): ScopedProcessQueue

Defined in: ProcessQueue.ts:97

Scoped queue bound to a specific scene’s lifecycle. Routes through ProcessSystem.addForScene, so processes pause with the scene and are scaled by its timeScale — matching the behaviour of entity-owned ProcessComponent processes.

options.clock picks the clock for every process the queue enqueues (default "frame", rendered-frame time; see ProcessClock). "fixed" schedules them on the fixed timestep through ProcessFixedUpdateSystem. The clock is read when the queue is created, so run(p) takes none.

One queue carries one clock. Work on the other clock needs a second queue, with its own cancelAll().

ProcessSystem

Scene

ProcessClock

ScopedProcessQueue