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

Fix/Feature: Lockstep #79

Merged
merged 11 commits into from
Nov 11, 2024
Merged

Fix/Feature: Lockstep #79

merged 11 commits into from
Nov 11, 2024

Conversation

gschup
Copy link
Owner

@gschup gschup commented Jun 1, 2024

Fixes several bugs in the sync layer / input_queue logic. This now allows for max_prediction_window to be set to 0 and thus falling back to lockstep netcode (with unnecessary gamestate save requests).

self.local_inputs.clear();
requests.push(GgrsRequest::AdvanceFrame { inputs });
} else {
println!(
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should not be an ugly print like that. Maybe a proper logging crate would be useful?

@hpmv
Copy link

hpmv commented Sep 28, 2024

Anything blocking this PR? This fixes a panic that I'm running into :)

@gschup gschup merged commit aec260d into main Nov 11, 2024
2 checks passed
@gschup gschup deleted the feat/lockstep branch November 11, 2024 10:03
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.

2 participants