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

Time synchronisation #176

Open
TeTpaAka opened this issue Dec 21, 2023 · 0 comments
Open

Time synchronisation #176

TeTpaAka opened this issue Dec 21, 2023 · 0 comments

Comments

@TeTpaAka
Copy link

As far as I can tell, the local time is never synced back up to the remote time, except when a rather large threshold is reached. You might want to read this article by riotgames how they solved this issue in League of Legends.
https://technology.riotgames.com/news/determinism-league-legends-unified-clock#Clock%20Sync

The main point is:

We don’t simply snap to a time, as that can create jarring in-game artifacts. Instead we gradually filter the client clock times to slowly approach server time.

Also, you might want to look into using a sliding sum instead of starting the synchronization process from scratch every time

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