voxolith

PerfOptions

Options for makePerf.

Defined in: perf.ts:28

Properties

PropertyTypeDescriptionDefined in
adaptEveryMs?numberHow often the controller may change the scale (default 500 ms).perf.ts:40
enabledbooleanShow the overlay. The controller adapts either way.perf.ts:30
gpuTimings?() => Record<string, number> | nullGPU milliseconds per pass to show in the overlay, e.g. () => renderer.gpuTimings() (null when the device has no timestamp queries).perf.ts:65
label?stringExtra text shown in the overlay (adapter name, quality preset, ...).perf.ts:60
locked?booleanFixed scale: disables adaptation when true.perf.ts:50
maxSampleMs?numberFrame gaps longer than this are treated as idle (tab hidden, render-on- demand waiting) and ignored. Default 250 ms. A scene that renders continuously and may legitimately be slower than that must raise it, or every frame is discarded: the readout then sits at its initial value, reporting 60 fps, and the scale controller never sees a sample.perf.ts:58
maxScale?numberHighest scale (default 1).perf.ts:36
minScale?numberLowest scale the controller will go to (default 0.35).perf.ts:34
retryAfterMs?numberAfter a step up proves too slow, that scale is off limits for this long (default 30 s). Frame times arrive in whole vsync intervals, so a frame that fits reads the same as one with room to spare; without this memory the controller climbs, misses, drops and climbs again every second, and each change visibly resamples the image.perf.ts:48
scalenumberStarting scale (usually gpu.renderScale).perf.ts:32
targetMs?numberFrame-time target in ms (default 16.7 = 60 fps).perf.ts:38

On this page