Module / v1.0.0-beta.7

@typed/template/RenderQueue

8 unique exports available through this public import path, including their members and aliases.

import * as RenderQueue from "@typed/template/RenderQueue";

Frame scheduling

  • RequestAnimationFrameRenderQueue

    class

    A RenderQueue that schedules tasks using requestAnimationFrame. Good for visual updates that should happen before the next repaint.

Idle scheduling

Immediate scheduling

  • SyncRenderQueue

    class

    A RenderQueue that executes tasks synchronously and immediately.

Mixed scheduling

  • MixedRenderQueue

    class

    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

Scheduled render work

  • RenderQueue

    class

    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

Timer scheduling