Skip to content

API Interface TimeState

github-actions[bot] edited this page Nov 29, 2026 · 7 revisions

Interface: TimeState

Defined in: src/engine/core/World.ts:42

Properties

deltaTime

deltaTime: number;

Defined in: src/engine/core/World.ts:46

Scaled seconds since the last frame (0 while paused).


fixedAlpha

fixedAlpha: number;

Defined in: src/engine/core/World.ts:53

0..1 progress between the last fixed step and the next; used for interpolation.


fixedDeltaTime

fixedDeltaTime: number;

Defined in: src/engine/core/World.ts:49


fixedStepCount

fixedStepCount: number;

Defined in: src/engine/core/World.ts:56


fixedTime

fixedTime: number;

Defined in: src/engine/core/World.ts:51

Scaled time at the current fixed step.


frameCount

frameCount: number;

Defined in: src/engine/core/World.ts:55


network?

network?: NetworkTime;

Defined in: src/engine/core/World.ts:59

Network ticks and round-trip time, on Worlds linked by a transport (ADR 0033); undefined otherwise.


realtimeSinceStartup

realtimeSinceStartup: number;

Defined in: src/engine/core/World.ts:57


time

time: number;

Defined in: src/engine/core/World.ts:44

Scaled game time in seconds since the world started.


timeScale

timeScale: number;

Defined in: src/engine/core/World.ts:54


unscaledDeltaTime

unscaledDeltaTime: number;

Defined in: src/engine/core/World.ts:48

Real seconds since the last frame, clamped to maxFrameTime.

Clone this wiki locally