Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Aggregate the per-LOD metrics of a progressive loader's inner loaders into a single LoaderMetrics representing the whole node.

      Counters (queries / loads / errors / elementsLoaded / bytesLoaded / visibleElements / memoryUsed) are summed. avgQueryTime / avgLoadTime are weighted means by queries / loads respectively (so a LOD that never queried doesn't skew the average). The optional spatialIndex cell counts are summed; its per-query rates (avgCellsPerQuery / queryEfficiency) are query-weighted means over the LODs that actually report a spatialIndex (a LOD without a chunk index still counts queries, so out.queries would be the wrong denominator), while avgElementsPerCell is weighted by occupiedCells (it is a per-cell density — cell-weighting recovers total elements / total cells). optimization (mostly app-global singletons like WASM/GPU-pool) is taken from the first loader that reports it to avoid double-counting.

      Parameters

      • inner: LoaderMetrics[]

        per-LOD metrics snapshots (already produced by getMetrics())

      • path: string

        the parent node path to report as this aggregate's path

      • emptyType: LoaderType

        the type to report when inner is EMPTY — a disposed ladder clears its level loaders, so this is the only thing left to name the node by. Required from the caller rather than defaulted: it used to be a hard-coded 'point-spatial-index', which silently relabelled a disposed lines / gsplats / mesh node as a points loader in the monitor's loader list (mesh visibly so — a mesh row reading "points / pts").

      Returns LoaderMetrics