Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / QualityLimits

Type Alias: QualityLimits ​

ts
type QualityLimits = {
  preset: QualityPresetName | "custom";
  level: 0 | 1 | 2 | 3;
  pixelRatioCap: number;
  resolutionScale: number;
  shadows: ShadowSetting;
  shadowMapSize: number;
  postFx: PostFxSetting;
};

Defined in: quality/presets.ts:35

What the engine actually applies this frame.

Properties ​

PropertyTypeDescriptionDefined in
presetQualityPresetName | "custom"The preset in effect, after auto is resolved. custom when the player moved a switch.quality/presets.ts:37
level0 | 1 | 2 | 3-quality/presets.ts:38
pixelRatioCapnumber-quality/presets.ts:39
resolutionScalenumberThe player's resolution setting, 0.5..1.quality/presets.ts:41
shadowsShadowSetting-quality/presets.ts:42
shadowMapSizenumber-quality/presets.ts:43
postFxPostFxSetting-quality/presets.ts:44