@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / effectivePixelRatio
Function: effectivePixelRatio() ​
ts
function effectivePixelRatio(
limits,
devicePixelRatio,
width,
height,
dynamicScale?): number;Defined in: quality/presets.ts:97
The pixel ratio to draw at: the device's, capped by the preset, times the player's and the governor's scale. Ultra also stays inside a pixel budget.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
limits | Pick<QualityLimits, "pixelRatioCap" | "resolutionScale" | "preset"> | undefined |
devicePixelRatio | number | undefined |
width | number | undefined |
height | number | undefined |
dynamicScale | number | 1 |
Returns ​
number

