Frame scheduling
RequestAnimationFrameRenderQueueclass
A RenderQueue that schedules tasks using
requestAnimationFrame. Good for visual updates that should happen before the next repaint.
Idle scheduling
RequestIdleCallbackRenderQueueclass
A RenderQueue that schedules tasks using
requestIdleCallback. Good for low-priority background work.
Immediate scheduling
SyncRenderQueueclass
A RenderQueue that executes tasks synchronously and immediately.
Mixed scheduling
MixedRenderQueueclass
A composite RenderQueue that directs tasks to different queues based on their priority.
- High priority: Sync
- Medium priority: RAF (or setTimeout fallback)
- Low priority: IdleCallback (or setTimeout fallback)
Render priorities
RenderPriorityvariable
Defines priority levels for rendering tasks.
Scheduled render work
RenderQueueclass
An abstract base class for managing the execution of rendering tasks. It allows prioritizing updates and scheduling them using different strategies (e.g.,
requestAnimationFrame,requestIdleCallback,setTimeout, or synchronous execution).
Scheduling protocol
RenderQueueTypeIdvariable
The nominal key implemented by every Typed render queue.
Timer scheduling
SetTimeoutRenderQueueclass
A RenderQueue that schedules tasks using
setTimeout(..., 0).