How parihsz/chrono works
Chrono is a Roblox library for custom physics replication and lag compensation. The principal workflow starts when a game calls Chrono.Start(), then uses client/server replication and interpolation to deliver entity state with a configurable delay. It also exposes historical snapshots and latency for lag compensation and debugging, and supports optimized server-controlled entity replication. The README documents these capabilities, but no runtime source was excerpted, so internal call paths are shown only as unverified relationships.
Main entry points: init.luau Chrono API · Server/Replicate.luau Server Replicator · Client/Replicate.luau Client Replicator · InterpolationBuffer.luau Interpolation Buffer
Components 16
Library API
- Chrono API
src/init.luau
Client Runtime
- Client Clock
src/Client/ClientClock.luau - Client Receiver
src/Client/Receiver.luau - Client Replicator
src/Client/Replicate.luau - Interpolation Buffer
src/Client/InterpolationBuffer.luau - Model Resolver
src/Client/ModelResolver.luau
Server Runtime
- Server Clock
src/Server/ServerClock.luau - Server Receiver
src/Server/Receiver.luau - Server Replicator
src/Server/Replicate.luau - Entity Grid
src/Server/EntityGrid.luau
Shared Replication
- Entity State
src/Shared/Entity.luau - Replication Rules
src/Shared/ReplicationRules.luau - Historical Snapshots
src/Shared/Snapshots.luau - Replication Stats
src/Shared/Stats.luau - Runtime Events
src/Shared/Events.luau
Other components
- Game Developer
Connections 15
- Game Developer → Chrono API: calls Start
README.md - Chrono API → Client Clock: starts runtime
- Chrono API → Server Clock: starts runtime
- Client Receiver → Client Replicator: delivers state
- Client Replicator → Interpolation Buffer: buffers updates
- Interpolation Buffer → Model Resolver: applies state
- Server Receiver → Server Replicator: delivers state
- Server Replicator → Entity Grid: replicates entities
- Server Replicator → Entity State: sends compressed data
- Replication Rules → Server Replicator: configures replication
- Chrono API → Historical Snapshots: exposes history
- Chrono API → Replication Stats: exposes latency
- Historical Snapshots → Game Developer: supports lag compensation
README.md - Replication Stats → Game Developer: supports debugging
README.md - Runtime Events → Chrono API: signals runtime