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

Bugfix: Networked game was rollbacking to a wrong frame #18

Merged
merged 3 commits into from
Jul 26, 2024
Merged

Conversation

nerudaj
Copy link
Owner

@nerudaj nerudaj commented Jul 26, 2024

Since handleNetworkUpdate can be executed multiple times per frame, it was rewriting the value of tickToRollbackTo with incorrect values. Also, the computation of howMuchToUnrollTo in Rollback Manager was botched (covered by unit tests now).

nerudaj added 3 commits July 26, 2024 11:54
Handle network frame can run multiple times per frame so the tickToRollbackTo could be overwritten by a bad value.
@nerudaj nerudaj merged commit bfc8097 into main Jul 26, 2024
1 check passed
@nerudaj nerudaj deleted the debug branch July 26, 2024 11:01
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

Successfully merging this pull request may close these issues.

1 participant