supervision-js
    Preparing search index...

    Interface RenderPreparationMaskFrameOptions

    Options for preparing frame-level raster artifacts. Polygon frames reuse this bounded worker/cache policy so both dense geometry paths stay ahead of playback without duplicating scheduling controls.

    interface RenderPreparationMaskFrameOptions {
        display?: {
            boxHeight: number;
            boxWidth: number;
            devicePixelRatio: number;
            maxDevicePixelRatio?: number;
        };
        maxCacheFrameCount?: number;
        maxPendingFrameCount?: number;
        prefetchFrameCount?: number;
        scheduleBatchSize?: number;
        scanIntervalSeconds?: number;
        workerCount?: number;
    }
    Index
    display?: {
        boxHeight: number;
        boxWidth: number;
        devicePixelRatio: number;
        maxDevicePixelRatio?: number;
    }

    The box the host paints prepared masks into, in CSS pixels, with the pixel ratio it paints them at. A mask frame's id raster is then capped to the size that box can show; absent, it is cooked at the detections' own resolution.

    maxCacheFrameCount?: number

    Maximum number of prepared mask frames retained in memory.

    maxPendingFrameCount?: number

    Maximum number of mask frames queued for preparation.

    prefetchFrameCount?: number

    Target number of frames to prepare ahead of playback.

    scheduleBatchSize?: number

    Number of frames scheduled per preparation scan.

    scanIntervalSeconds?: number

    How often the prepared window scans for refill work.

    workerCount?: number

    Worker count for mask artifact preparation.