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

    Interface SliceCacheStats

    Cache statistics for the data-loading monitor. The common fields mirror DecompressedChunkCacheStats so the aggregator/UI can treat both tiers uniformly; ladder-depth fields are optional SliceCache-only detail.

    interface SliceCacheStats {
        size: number;
        count: number;
        hits: number;
        misses: number;
        evictions: number;
        hitRate: number;
        thrashMisses?: number;
        maxSize?: number;
        fullLadderCount?: number;
        ladderDepthHistogram?: Record<string, number>;
    }
    Index
    size: number

    Current cache size in bytes.

    count: number

    Number of cached slices.

    hits: number

    Total cache hits.

    misses: number

    Total cache misses.

    evictions: number

    Total evicted slices.

    hitRate: number

    Hit rate (0–1).

    thrashMisses?: number

    Misses on keys that were previously stored and then evicted (eviction- induced misses, vs. cold misses). A high thrashMisses/misses ratio is the signature of a working set larger than the budget — e.g. cyclic playback thrash. Optional so stat mirrors that predate it keep compiling.

    maxSize?: number

    Resolved byte budget (heap-aware; see heap-budget.ts). Surfaced so the monitor / debug API can show the live budget — critical when it varies by device heap rather than being the fixed config value. Mirrors DecompressedChunkCacheStats.maxSize.

    fullLadderCount?: number

    Number of ladder entries whose stored prefix is complete.

    ladderDepthHistogram?: Record<string, number>

    Cached ladder counts keyed by storedDepth/totalDepth.