@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / resolveQualityLimits
Function: resolveQualityLimits() ​
ts
function resolveQualityLimits(
graphics,
recommended,
touch?): QualityLimits;Defined in: quality/presets.ts:58
Settings + the device's recommendation → what to apply. auto takes the recommendation; a named preset its own switches; custom the player's switches, with the pixel-ratio cap of the closest preset.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
graphics | Pick<GraphicsSettings, "preset" | "resolutionScale" | "shadows" | "postFx"> | undefined |
recommended | QualityPresetName | undefined |
touch | boolean | false |

