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: more accurate local time sync with server time #3206

Merged

Conversation

NoelStephensUnity
Copy link
Collaborator

User Contribution (@BenHamrick) (#3028)

This PR changes the NetworkTimeSystem.Sync method to use half RTT to calculate the desired local time offset as opposed to the full RTT.

Changelog

  • Changed: NetworkTimeSystem.Sync method to use half RTT to calculate the desired local time offset as opposed to the full RTT.

Testing and Documentation

  • No tests have been added.
  • No documentation changes or additions were necessary.

BenHamrick and others added 4 commits January 15, 2025 13:53
adding change log entry.
adding PR number to entry.
Adjusting ClientNetworkTimeSystemTests to account for half RTT adjustment applied in this PR.
Adding a comment about the change
@NoelStephensUnity NoelStephensUnity marked this pull request as ready for review January 16, 2025 01:59
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner January 16, 2025 01:59
@michalChrobot michalChrobot added the stat:awaiting triage Status - Awaiting triage from the Netcode team. label Jan 16, 2025
removing whitespace after comment
@michalChrobot michalChrobot added port:2.x-needed This issue needs to be ported to 2.X branch and removed up-port-for-2.0.0-required labels Jan 20, 2025
@NoelStephensUnity NoelStephensUnity added port:2.x-completed This issue was ported to 2.X branch and removed port:2.x-needed This issue needs to be ported to 2.X branch stat:awaiting triage Status - Awaiting triage from the Netcode team. labels Jan 20, 2025
@NoelStephensUnity NoelStephensUnity merged commit 0d8d95a into develop Jan 24, 2025
24 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fix/more-accurate-local-time-sync-with-server-time branch January 24, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
port:2.x-completed This issue was ported to 2.X branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants