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

    Function prefetchSceneForDimensions

    • Fire a background t+1 slice prefetch for a PREDICTED dimension state (dimension playback). Mirror of updateSceneForDimensions, but fire-and-forget and routed to SceneLoader.prefetchSlice — it never moves the real view and is aborted by the next foreground update.

      Parameters

      • dims: SimpleDims

        PREDICTED dimension state (currentStep advanced to the next playback tick via DimensionAnimationManager.peekNextValue).

      • scene: Group

        THREE.Group containing the scene (for maxRadius).

      • loaderId: string | undefined

        Optional loader ID, defaults to default loader.

      • opts: { budgetMs: number; ladderDepth?: number | "auto" }
        • budgetMs: number

          Per-pass LOD time budget for the shadow pass (always set — it is also what makes prefix ladders cacheable).

        • OptionalladderDepth?: number | "auto"

          Pinned playback ladder depth; the shadow pass deepens to exactly this many rungs (see ViewState.ladderDepth).

      Returns void