Skip to main content

Module fluid_netcode

Module fluid_netcode 

Source
Expand description

Deterministic Fluid Netcode

Extends the netcode system for deterministic fluid simulation. Uses Fix128 fluid state serialization for rollback and lockstep sync.

§Design

Fluid state is large (N particles * position+velocity), so this module provides:

  • Delta compression (only send changed particles)
  • Checksum validation (detect desync early)
  • Snapshot/restore for rollback

Author: Moroya Sakamoto

Structs§

FluidDelta
Delta-compressed fluid state update
FluidSnapshot
Serialized fluid state for netcode