Expand description
§Lightyear Sync
This crate provides the synchronization layer for the Lightyear networking library. It handles time synchronization between peers, including:
- Ping and RTT estimation (
ping
). - Timeline synchronization to align game state across different peers (
timeline
). - Client and server-specific synchronization logic.
The core idea is to allow peers to maintain a synchronized understanding of game time, which is crucial for consistent simulation and prediction.
Modules§
- client
- Client-specific synchronization logic. Handles syncing the time between the client and the server
- ping
- Manages pinging and RTT estimation between peers. Module to handle sending ping/pong messages and compute connection statistics (rtt, jitter, etc.)
- plugin
- Provides the
SyncPlugin
for integrating synchronization into a Bevy app. - prelude
- Commonly used items from the
lightyear_sync
crate. - server
- Server-specific synchronization logic.
- timeline
- Defines timelines and their synchronization mechanisms.