com.unity.netcode.gameobjects
com.unity.netcode.gameobjects copied to clipboard
fix: Sync local time with server more accurately
When syncing the local time from the server to the client we need to use half the RTT time to get the local time in sync with the server. Otherwise the local time drifts relative to how long the RTT time is.
Changelog
- Changed: Made half the RTT time be used in the Sync function.
Testing and Documentation
- No tests have been added.
- Includes unit tests.
- No documentation changes or additions were necessary as docs already reflect this behavior.