View-driven controller that prioritizes XGF stream chunk loading.

The controller selects references-only chunks from an XGFStreamingIndex, prioritizes chunks intersecting the current camera frustum, and schedules fetch/commit work through XGFStreamingLoader.

Constructors

Properties

chunkManifests: XGFChunkManifest[]

References-only chunk manifests controlled by this instance.

loadedAssetLibraryIds: Set<string> = ...

IDs of asset-library chunks already loaded.

loadedChunkIds: Set<string> = ...

IDs of references-only chunks already loaded.

loadedTotals: { meshes: number; objects: number } = ...

Aggregate object/mesh counts currently resident through this controller.

loadingChunkIds: Set<string> = ...

IDs of chunks currently being committed.

queueProgress: XGFViewStreamProgress = ...

Queue progress for the latest scheduled generation.

Accessors

Methods

  • Unloads all resident streamed chunks from the SceneModel and resets scheduling for the current view.

    This does not pause streaming. Chunks already in the middle of a commit are allowed to finish, queued prefetches are dropped, and a fresh scheduling pass is requested unless the controller was already paused.

    Returns number

  • Aborts queued loads for chunks outside the current camera frustum and unloads resident references-only chunks that are no longer visible.

    Asset-library chunks are retained because visible chunks may still share them. Chunks already in the middle of a commit are skipped and can be removed by calling this again after they finish.

    Returns number

  • Checks the optional backpressure gate and pauses or resumes as needed.

    Returns true when the controller state changed. External callers can use this from render or timer callbacks to resume a backpressure pause after the renderer backlog has drained.

    Parameters

    • label: string = "Streaming"

    Returns boolean