netplayjs icon indicating copy to clipboard operation
netplayjs copied to clipboard

Add Deterministic Mode for Rollback

Open rameshvarun opened this issue 1 year ago • 0 comments

NetplayJS, by default, does not assume that game code is deterministic. Instead, it corrects for drift by having the host send authoritative state updates to the other players. In rollback netcode, because the player predicts ahead, state updates trigger a rollback / replay in addition to the rollbacks from player inputs.

Lockstep has an option to disable state synchronization, but this hasn't been implemented in Rollback netcode yet.

The fix is pretty simple - don't send state updates, and don't wait for state updates to clean up old history.

rameshvarun avatar Apr 07 '23 05:04 rameshvarun