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

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
port:2.x-needed This issue needs to be ported to 2.X branch stat:awaiting triage Status - Awaiting triage from the Netcode team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants