Rust utilities for lockstep-style deterministic simulation, state checksum verification, and late-join catch-up in multiplayer game replication. Reuse when building authoritative multiplayer netcode.
// Source: https://github.com/cBournhonesque/lightyear | License: Apache-2.0 // Provided via justclaw.it.com; keep this notice with the code. //! # 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 rollb ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key