← systems library
game development

Deterministic Lockstep

Everyone runs the same sim, exchanges only inputs, and advances in lockstep once all inputs arrive.

Peer A (local) Peer B (remote) Input exchange Guard send input send input all inputs all inputs advance advance state hash state hash A: inputframe F Input exchangeall-to-all · frame F B: inputframe F A: input barrierwait for all inputs B: input barrierwait for all inputs A: deterministic simadvance F B: deterministic simadvance F Checksum comparedesync detection OWNERSHIP Peer A (local) Peer B (remote) Input exchange Determinism guard Deterministic LockstepEveryone runs the same sim, exchanges only inputs, and advances in lockstep once all inputs arrive.
↓ Download SVG ↓ Download spec

Considerations