Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Deterministic Mode for Rollback #78

Open
rameshvarun opened this issue Apr 7, 2023 · 0 comments
Open

Add Deterministic Mode for Rollback #78

rameshvarun opened this issue Apr 7, 2023 · 0 comments

Comments

@rameshvarun
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant