Skip to main content

Module sync

Module sync 

Source
Expand description

Sync subsystem — staging and reconciliation of authority events.

Three-layer state model (API.md §12):

  1. Canonical Truth — owned by authority (spacetime or local)
  2. Client Mirror — read-optimized snapshot for runtime
  3. Presentation — interpolated/render-only state (fabric + gpu)

Rules:

  • Authority updates staged first, applied at tick boundary
  • Presentation interpolates through correction
  • No direct write from network thread into scene/render data

Re-exports§

pub use reconciliation::reconcile;
pub use stage::StagingBuffer;

Modules§

reconciliation
Reconciliation — apply canonical corrections at tick boundary. When authority sends corrections, presentation interpolates through them.
stage
Staging buffer — holds authority events until tick boundary application.