Skip to content

API Interface TimeState

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

Interface: TimeState

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

Properties

deltaTime

deltaTime: number;

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

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


fixedAlpha

fixedAlpha: number;

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

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


fixedDeltaTime

fixedDeltaTime: number;

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


fixedStepCount

fixedStepCount: number;

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


fixedTime

fixedTime: number;

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

Scaled time at the current fixed step.


frameCount

frameCount: number;

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


network?

network?: NetworkTime;

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

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:49


time

time: number;

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

Scaled game time in seconds since the world started.


timeScale

timeScale: number;

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


unscaledDeltaTime

unscaledDeltaTime: number;

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

Real seconds since the last frame, clamped to maxFrameTime.

Clone this wiki locally