Skip to content

API Interface NetworkTime

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

Interface: NetworkTime

Defined in: src/engine/core/networkTime.ts:6

Network time (ADR 0033): ticks and round-trip time on Worlds joined by a transport. Read it as Time.network, this.time.network or ctx.time.network. Kept up to date by the World's network session (session.ts), which explains how clients estimate the server's tick.

Properties

interpolationFraction

readonly interpolationFraction: number;

Defined in: src/engine/core/networkTime.ts:14

0..1 progress between interpolationTick and the next tick.


interpolationTick

readonly interpolationTick: number;

Defined in: src/engine/core/networkTime.ts:12

Clients: the tick remote objects are drawn at, behind the latest snapshot by the interpolation buffer. Servers: tick.


rtt

readonly rtt: number;

Defined in: src/engine/core/networkTime.ts:16

Clients: smoothed round-trip time in milliseconds. Servers: 0 (per-connection RTT is on each Connection).


serverTick

readonly serverTick: number;

Defined in: src/engine/core/networkTime.ts:10

Clients: the server tick being predicted (ahead of the server by about RTT/2 plus the command slack, so inputs arrive in time). Servers: tick.


tick

readonly tick: number;

Defined in: src/engine/core/networkTime.ts:8

This World's simulation tick: fixed steps since it started simulating the networked game.


tickRate

readonly tickRate: number;

Defined in: src/engine/core/networkTime.ts:18

Fixed simulation ticks per second, shared by client and server.

Clone this wiki locally