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

    Runtime handle on the projected-density guard, for the Performance popover toggle and the settings persistence layer. Implemented by core/app/init/density-guard-wiring (which owns the tracker + ladder).

    interface DensityGuardWiring {
        provider: ProjectedDensityProvider;
        perFrame(): boolean;
        densityStates(): Map<string, NodeDensityState>;
        isEnabled(): boolean;
        sessionDisabled: boolean;
        setEnabled(enabled: boolean): void;
        thinning(): { nodes: number; minKeep: number };
        capElementsPerPixel(): number;
    }

    Hierarchy (View Summary)

    Index

    The refinement rung-gate provider over the tracker's records. Handed to the loader manager while the guard is on; the manager gets null (bytes-only admission) while it is off.

    sessionDisabled: boolean

    True when ?noDensityGuard turned the guard off for this session. The stored per-scene setting is then neither applied nor overwritten, the same way a URL DPR pin leaves the stored DPR flags alone.

    • Register as the 'projected-density' per-frame callback. Returns true when a keep-fraction step changed what the frame draws (the render-on-change loop's per-frame callback contract).

      Returns boolean