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

Rework clock synchronization #33

Closed
vladbat00 opened this issue Jun 16, 2021 · 0 comments
Closed

Rework clock synchronization #33

vladbat00 opened this issue Jun 16, 2021 · 0 comments
Labels
enhancement New feature or request netcode

Comments

@vladbat00
Copy link
Owner

Currently, the client itself tries to predict how much it should be ahead of the server, which is sometimes inaccurate.

We can use the approach highlighted in this RFC discussion:
bevyengine/rfcs#19 (comment)

Currently, calculating how many frames ahead the client wants to be happens at process_delta_update_message. The server can additionally supply a signed integer in the DeltaUpdate message: if it's a negative number it would mean that the client has to be more ahead of the server, otherwise - less.

@vladbat00 vladbat00 added enhancement New feature or request netcode labels Jun 16, 2021
@vladbat00 vladbat00 changed the title Rework clock syncronisation Rework clock synchronization Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request netcode
Projects
None yet
Development

No branches or pull requests

1 participant