Skip to content

ViewLimits beta ​

Interface of @v12-engine/client

ts
export interface ViewLimits

The caps a game sets (GameView.world.limits)

Members ​

frameTime ​

ts
frameTime?: number;

The longest stretch of time simulated in one frame, in seconds: a slower frame slows the game down instead of spiralling. 0.1 when left out

groundPaintEvery ​

ts
groundPaintEvery?: number;

Seconds between two uploads of the ground paint's mask (groundPaint), while cells come in or go. 1/30 when left out

lights ​

ts
lights?: number;

Lights drawn at once at low quality (LightsQuality): of those in view, the nearest to what the camera looks at. 32 when left out

mistAreas ​

ts
mistAreas?: number;

Areas of mist (MapMist.areas) drawn at once: the rest are left out. Each is a uniform and a part of the shader of every material that takes mist, so more of them cost every pixel that has mist. 8 when left out

splashes ​

ts
splashes?: number;

Splash particles at once, where rain falls on the ground (MapWeather). 400 when left out

uiInterval ​

ts
uiInterval?: number;

Seconds between two updates of the HUD. 0.1 when left out

viewEvery ​

ts
viewEvery?: number;

Seconds between two workings out of what is in view while the camera is still (ViewRest): the frames between are drawn from the list as it was, each thing in it placed anew. A mesh shown or hidden, one that walks into the view, a level of detail and a skeleton's pose wait for the next, at most this long; a camera that moves and a mesh made or let go work it out at once. 0 works it out every frame, as Babylon does. 1/64 when left out

voices ​

ts
voices?: number;

Sounds that play at once: past it, a new one is let go. 24 when left out

weatherAreas ​

ts
weatherAreas?: number;

Places weather falls in (MapWeather.areas), drawn at once: the rest are left out. 8 when left out