Optional ReadonlydisplayThe 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. Exact depth frames the box cannot show at least twice over go up to the GPU decimated by that whole factor; readouts still read every sample.
Optional ReadonlypreviewScale of the display-fitted width cap for previews during rapid movement. Default: 0.5. Rasters never exceed native mask dimensions. Positive values up to 1 are accepted; invalid values use the default. A value of 1 keeps the full display-fitted resolution during motion. Once motion settles, the visible frame uses the full fitted resolution. Without a display box, masks keep their native resolution.
Optional ReadonlymaxMaximum number of prepared mask frames retained in memory.
Optional ReadonlymaxByte budget for retained prepared mask payloads and reserved renderer
backing, including exact region coverage. Values below 16 MiB are raised
to 16 MiB. This budget and maxCacheFrameCount both trigger eviction;
the active frame remains protected even when it exceeds the budget.
Transient preparation allocations and unrelated renderer resources are
excluded. Default: 64 MiB per reported GB of device memory, clamped to
256 MiB–1 GiB; 256 MiB when unavailable.
Optional ReadonlymaxMaximum number of mask frames queued for preparation.
Optional ReadonlyprefetchTarget number of frames to prepare ahead of playback.
Optional ReadonlyscheduleNumber of frames scheduled per preparation scan.
Optional ReadonlyscanHow often the prepared window scans for refill work.
Optional ReadonlyworkerWorker count for mask artifact preparation.
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.