Skip to content

API Interface ReplicationSettings

github-actions[bot] edited this page Dec 1, 2026 · 2 revisions

Interface: ReplicationSettings

Defined in: src/engine/core/worlds.ts:71

A server World's snapshot settings (ADR 0033 §3, ADR 0101).

Properties

maxSnapshotBytes?

maxSnapshotBytes?: number;

Defined in: src/engine/core/worlds.ts:82

The most bytes one snapshot may carry (default 65536, at least 256). Ghosts that don't fit go in a later snapshot, most important and longest unsent first.


sendRate?

sendRate?: number;

Defined in: src/engine/core/worlds.ts:77

Snapshots per second to each connection, at most the tick rate (a snapshot goes every round(tickRate / sendRate) ticks). Default: the tick rate. Lower it to save bandwidth; clients interpolate across the gaps (raise their interpolationMs to match).

Clone this wiki locally