Skip to content

makeGlobalScopedQueue

makeGlobalScopedQueue(processSystem, options?): ScopedProcessQueue

Defined in: ProcessQueue.ts:120

Engine-global scoped queue. Routes through ProcessSystem.add — ticked under the global timeScale only, NOT gated by per-scene pause or scaled by per-scene timeScale. Right for cross-scene work that should keep playing during scene transitions and across paused scenes.

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

ProcessClock

ScopedProcessQueue