Skip to content

WarmOptions beta ​

Interface of @v12-engine/client

ts
export interface WarmOptions

How a warm-up is run (client.warm)

Members ​

budgetMs ​

ts
budgetMs?: number;

Milliseconds it may take in all: what is not begun by then is skipped (budget), and what is not compiled is left to compile as it is drawn. 4000 when left out

onProgress ​

ts
onProgress?: (progress: WarmProgress) => void;

Told as each piece is done or skipped: how many of how many, and the piece

priority ​

ts
priority?: 'block' | 'background';

block: everything as fast as it can, its pieces built together and compiled side by side, the frames waiting on it (behind a loading screen: the default); background: one piece a frame, its shaders compiled while the game goes on (a piece is a copy built: a few milliseconds of that frame)

signal ​

ts
signal?: AbortSignal;

Stops it: what is not begun is skipped (aborted), what was is let go of where it was not done

waitWhile ​

ts
waitWhile?: () => boolean;

In the background, whether the next piece waits (asked before each, a frame at a time): the client's warm-up of the types loaded later waits while a cinematic plays, whose frames are the ones a hitch shows most in. The time waited is not taken from budgetMs