Deterministic Lockstep with clientside prediction and rollback
Deterministic Lockstep with clientside prediction and rollback
Currently the rollback of adding and changing entities should be stable. If you spawn or navigate entities in multiple game-instances, all simulations will end up in a synced state, no matter how many packets drop or how high the lag is. Clientside prediction makes sure that local commands are executed under any condition.
Inspired by LockstepFramework, in memory of SnpM:
Uses a fork of BEPUPhysics for deterministic physics:
Uses FixedMath.Net for deterministic fp-calculations:
Uses Entitas as ECS Framework:
The project includes an implementation example using LiteNetLib:
Initial commit was targeting the following protocol: https://www.reddit.com/r/Unity3D/comments/aewepu/rts_networking_simulate_on_serverbeat/. The project has shifted to an architecture you see above.
No open issues yet, or sync has not completed.