Skip to content

API Interface TimeState

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

Interface: TimeState

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

Properties

deltaTime

deltaTime: number;

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

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


fixedAlpha

fixedAlpha: number;

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

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


fixedDeltaTime

fixedDeltaTime: number;

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


fixedStepCount

fixedStepCount: number;

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


fixedTime

fixedTime: number;

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

Scaled time at the current fixed step.


frameCount

frameCount: number;

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


network?

network?: NetworkTime;

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

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


time

time: number;

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

Scaled game time in seconds since the world started.


timeScale

timeScale: number;

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


unscaledDeltaTime

unscaledDeltaTime: number;

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

Real seconds since the last frame, clamped to maxFrameTime.

Clone this wiki locally