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 Sync Ups multiplayer option #514

Merged
merged 2 commits into from
Jan 30, 2022

Conversation

starfi5h
Copy link
Collaborator

@starfi5h starfi5h commented Jan 29, 2022

Try to adjust client's ups in the range of 30~120 to match with host when the option is enabled.
The game tick difference of client and host is calculated by packet round-trip-time, host gameTick, and host currentUPS.
The difference will be amortized over a period of time by increasing/decreasing client's ups, unless it exceeds the limit.

Close #210

- Try to adjust client's Ups in range of 30~120 to match  with host when the option is enabled.
@sp00ktober
Copy link
Collaborator

Just tested this merged into the current 0.9 fix branch and it made ils ships stay in sync for a long time (most likely forever but i only tested for 15 minutes).

So seems to work really well :D

@sp00ktober sp00ktober merged commit 6a00d38 into NebulaModTeam:fix-0.9 Jan 30, 2022
@starfi5h starfi5h deleted the pr-SyncUps branch January 30, 2022 16:59
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