Skip to content

CLIENT_PHASES beta ​

Variable of @v12-engine/client

ts
CLIENT_PHASES: readonly ['measure', 'simulate', 'apply', 'settle', 'light', 'follow', 'cinematic', 'camera', 'world', 'marks', 'render', 'overlay', 'hud']

The client's phases, in the order the frame runs them:

  • measure: the canvas fitted to its size, the screen measured once for the frame, the frame's dt - simulate: the session stepped, its snapshots taken; the frame's alpha - apply: each snapshot into the state, the renderers told of the changes, every event heard (the sounds, the floating words, a cinematic's waits, the client's own handlers); the game that ended on an error stops the frame - settle: the score and the outcome as the state now says them; the player's hands pruned - light: the day's light at the hour (a cinematic's, or the world's), the lights, the glow and the picture at it - follow: the camera over what it follows - cinematic: the cinematic playing moves on (the camera is its), the transitions and the screen's frame - camera: the camera moved for the frame - world: the world's frame: the shadows, the ground, the detail, the scenery, the layers, the sounds, the weather, the fog, the entities, what is seen through - marks: what is drawn in the world for the player's hands and the debug tools: the selection's preview, the ghost of a building, the brush, the aim - render: the scene drawn - overlay: what is drawn over the picture (ClientHud.drawOverlay): the line around what the pointer is over, the bars and plates, the pings' marks, the floating words, the ping wheel, the minimap; then what is pinned to the world, and the cut's own - hud: the cursor and the kept pointer (ClientInput.refresh), and the HUD's model every Limits.uiInterval (ClientHud.refresh)