Expand description
World state snapshots with delta compression and relevancy filtering.
Structs§
- Client
Id - Client identifier for relevancy tracking.
- Component
Data - Individual component data stored as a type-tagged byte buffer. Components are identified by a numeric type ID for serialization.
- Component
Delta - Delta for a single component.
- Entity
Delta - Delta for a single entity between two snapshots.
- Entity
Snapshot - Snapshot of a single entity’s state at a point in time.
- NetEntity
Id - Strongly-typed entity identifier within the netcode layer.
- Relevancy
Entry - Priority and relevancy information for a single entity relative to a client.
- Relevancy
Filter - Per-client relevancy filter that determines which entities should be sent and at what priority/frequency.
- Relevancy
Region - A spatial region used for area-of-interest filtering.
- Snapshot
Delta - Delta between two world snapshots.
- Snapshot
Id - Unique identifier for a snapshot in time.
- Snapshot
Ring Buffer - Ring buffer for storing recent world snapshots. Supports efficient lookup by snapshot ID and tick number.
- World
Snapshot - A complete snapshot of the world at a given tick.
Enums§
- Delta
Kind - How a component changed between snapshots.
Functions§
- compress_
quaternion - Smallest-three quaternion compression: store only the 3 smallest components and the index of the largest.
- decompress_
quaternion - Decompress a quaternion from smallest-three representation.
- dequantize_
f32 - Dequantize back to float.
- pack_
position - Pack three quantized position components into bytes.
- quantize_
f32 - Quantize a float to a fixed number of bits for bandwidth reduction.
- unpack_
position - Unpack position from bytes.