Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Animation loop settings

    interface AnimationConfig {
        idleTimeoutMs: number;
        pacing: { enabled: boolean; slowFrameMs: number; maxCooldownMs: number };
    }
    Index
    idleTimeoutMs: number
    pacing: { enabled: boolean; slowFrameMs: number; maxCooldownMs: number }

    Frame pacing: after a pathologically slow frame the loop waits out a bounded cooldown before scheduling the next one, so the main thread is not held at a 100 % duty cycle of long tasks (#1724). See scene/animation/animation-controller.ts.

    Type Declaration

    • enabled: boolean

      Master switch — false restores the back-to-back rAF loop.

    • slowFrameMs: number

      Frame cost (ms) above which the next frame is paced.

    • maxCooldownMs: number

      Upper bound (ms) on the inserted cooldown.