Skip to content

scaleCap beta ​

Function of @v12-engine/client

ts
export declare function scaleCap(pixels: number | undefined, screenPixels: number): number;

The render resolution a screen of so many pixels is capped at, so that a preset draws no more than pixels of them (QualityLook.pixels, PIXELS_CAP when left out): 1 where the screen has no more, or the cap is 0; else in steps of 0.05, never under 0.25