class

FPhysicsSnapshotCodec

Delta of a whole-world snapshot against an earlier one: zero runs of the XOR of the two byte streams stay implicit, so a world where few bodies moved costs little. Lossless; the receiver needs the same baseline.

Module
Physics
Header
#include "Physics/PhysicsSnapshot.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
voidEncode
boolDecode
uint64_tHashFNV-1a over the snapshot bytes: the cheap desync check two peers compare.

Function details

Encode

C++
static void Encode(const std::vector<uint8_t>& baseline, const std::vector<uint8_t>& current, std::vector<uint8_t>& out)

Decode

C++
static bool Decode(const std::vector<uint8_t>& baseline, const std::vector<uint8_t>& delta, std::vector<uint8_t>& out)

Hash

C++
static uint64_t Hash(const std::vector<uint8_t>& bytes)

FNV-1a over the snapshot bytes: the cheap desync check two peers compare.

Generated from Physics/PhysicsSnapshot.h via physics.json · Nov 4, 2026Version 1.0.0