Skip to content

API Class Graphics

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Class: Graphics

Defined in: src/engine/render/Graphics.ts:23

Constructors

Constructor

new Graphics(): Graphics;

Returns

Graphics

Accessors

autoDetected

Get Signature

get static autoDetected(): boolean;

Defined in: src/engine/render/Graphics.ts:41

True when the active tier was chosen by automatic detection (ADR 0055) rather than the player or the project's default.

Returns

boolean


defaultQuality

Get Signature

get static defaultQuality(): string;

Defined in: src/engine/render/Graphics.ts:72

The default tier: the one used until the player picks another. The project's default for this platform (platformDefaults) if it sets one, else defaultTier.

Returns

string


platform

Get Signature

get static platform(): Platform;

Defined in: src/engine/render/Graphics.ts:77

Where the game runs (desktop, mobile or web), as detected when the project was configured.

Returns

Platform


quality

Get Signature

get static quality(): string;

Defined in: src/engine/render/Graphics.ts:82

The active tier's name. Setting it applies that tier now and saves it as the player's choice; an unknown name is ignored with a warning.

Returns

string

Set Signature

set static quality(name): void;

Defined in: src/engine/render/Graphics.ts:86

Parameters
name

string

Returns

void


tier

Get Signature

get static tier(): Readonly<QualityTier>;

Defined in: src/engine/render/Graphics.ts:93

The active tier's settings.

Returns

Readonly<QualityTier>


tiers

Get Signature

get static tiers(): readonly string[];

Defined in: src/engine/render/Graphics.ts:67

The tiers' names, lowest first.

Returns

readonly string[]

Methods

detectQuality()

static detectQuality(): string;

Defined in: src/engine/render/Graphics.ts:50

The tier the machine's GPU suggests (ADR 0055), among the project's tiers: a guess from the GPU's name, cores and memory, where "the default" is this platform's default tier. It doesn't apply it; set Graphics.quality to use it.

Returns

string

Clone this wiki locally