Per-chunk timing and creation statistics emitted by XGF stream loading.

interface XGFChunkLoadStats {
    bytes: number;
    chunkId: string;
    commitMs: number;
    created: {
        geometries: number;
        materials: number;
        meshes: number;
        objects: number;
        textures: number;
        transforms: number;
    };
    dependencyMs: number;
    error?: string;
    fetchMs: number;
    manifest: XGFChunkManifest;
    ok: boolean;
    role: XGFAssetMode;
    totalMs: number;
}

Properties

bytes: number

Number of XGF payload bytes loaded for this chunk.

chunkId: string

Stable chunk ID.

commitMs: number

Time spent committing chunk content to the SceneModel, in milliseconds.

created: {
    geometries: number;
    materials: number;
    meshes: number;
    objects: number;
    textures: number;
    transforms: number;
}

Counts of SceneModel components created by the chunk.

dependencyMs: number

Time spent resolving/loading dependencies, in milliseconds.

error?: string
fetchMs: number

Time spent fetching chunk bytes, in milliseconds.

Manifest for the loaded or failed chunk.

ok: boolean

Whether the chunk loaded successfully.

Chunk role from the manifest.

totalMs: number

Total elapsed load time for the chunk, in milliseconds.