Skip to content

@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 ​

ParameterTypeDefault value
graphicsPick<GraphicsSettings, "preset" | "resolutionScale" | "shadows" | "postFx">undefined
recommendedQualityPresetNameundefined
touchbooleanfalse

Returns ​

QualityLimits