Skip to main content

Crate lightyear_deterministic_replication

Crate lightyear_deterministic_replication 

Source
Expand description

§Lightyear Deterministic Replication

Utilities for lockstep-style deterministic simulation on top of Lightyear:

  • ChecksumPlugin registers the checksum protocol and installs the client/server checksum systems for whichever Lightyear side plugins are present.
  • ChecksumSendPlugin / ChecksumReceivePlugin compute and verify XOR checksums of prediction history across client/server or all-to-all P2P topologies.
  • LateJoinCatchUpPlugin lets a client that connects mid-game request a one-time snapshot of a remote entity’s state so it can fast-forward to the current tick via a forced rollback.
  • DeterministicReplicationPlugin wires up the shared archetype index used by both features.

Modules§

late_join
Late-join catch-up: client-driven bundled snapshot replication so that mid-game joiners can catch up to already-simulated entities. Late-join catch-up for deterministic replication.
mode
Configuration mode for catch-up (state-based vs input-only). Catch-up mode for deterministic replication.
prelude
Commonly used items from the lightyear_deterministic_replication crate.

Structs§

Deterministic
Marker component that indicates that this entity is deterministic. It is not updated via state, but only via inputs.