Title: TimeSyncMessage is sent reliably, so a late one resets the client clock backwards and stalls its NetworkTransforms · Issue #4249 · Unity-Technologies/com.unity.netcode.gameobjects · GitHub
Open Graph Title: TimeSyncMessage is sent reliably, so a late one resets the client clock backwards and stalls its NetworkTransforms · Issue #4249 · Unity-Technologies/com.unity.netcode.gameobjects
X Title: TimeSyncMessage is sent reliably, so a late one resets the client clock backwards and stalls its NetworkTransforms · Issue #4249 · Unity-Technologies/com.unity.netcode.gameobjects
Description: Description TimeSyncMessage is sent reliably, although MessageDelivery says it's meant to stay unreliable. Under packet loss a time sync arrives late. The client takes its old host tick as current, its time offset passes HardResetThresho...
Open Graph Description: Description TimeSyncMessage is sent reliably, although MessageDelivery says it's meant to stay unreliable. Under packet loss a time sync arrives late. The client takes its old host tick as current,...
X Description: Description TimeSyncMessage is sent reliably, although MessageDelivery says it's meant to stay unreliable. Under packet loss a time sync arrives late. The client takes its old host tick as curr...
Opengraph URL: https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/4249
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TimeSyncMessage is sent reliably, so a late one resets the client clock backwards and stalls its NetworkTransforms","articleBody":"### Description\n\n`TimeSyncMessage` is sent **reliably**, although `MessageDelivery` says it's meant to stay unreliable. Under packet loss a time sync arrives late. The client takes its old host tick as current, its time offset passes `HardResetThresholdSec` (0.2 s by default), and `NetworkTimeSystem` hard-resets the client's clock **backwards**.\n\nAfter that, `NetworkTransformTickRegistration.TickUpdate` skips while `CurrentTick \u003c= m_LastTick`. Every `NetworkTransform` the client owns therefore sends nothing until its clock passes the last tick it sent. Teammates see that player freeze for up to about 0.5 s and then jump.\n\nDetails (line numbers from 2.13.3; the same code is in `develop-3.x.x` today):\n\n- `MessageDelivery.cs`: the summary of `k_SkipMessageTypes` says \"Skip the time sync messages since it has always used unreliable network delivery\". But the set holds only `NamedMessage` and `Unnamed`. So `UpdateMessageTypes` gives `TimeSyncMessage` `ReliableFragmentedSequenced`, and `NetworkTimeSystem` sends it with `MessageDeliveryType\u003cTimeSyncMessage>.DefaultDelivery`.\n- `NetworkTimeSystem`: a sync whose send tick is old by the time it arrives produces a desired offset more than 0.2 s from the current one, so the clock is hard-reset to it, back in time.\n- `NetworkTransform.cs:4765` (`NetworkTransformTickRegistration.TickUpdate`): `if (CurrentTick \u003c= m_LastTick)` with the comment `// TODO FIX: The local NetworkTickSystem can invoke with the same network tick as before`. After a backward reset, this skips every tick until the clock catches up.\n\n### Reproduce Steps\n\n1. Host + 1 client (client-server), with the simulated poor connection on the host: about 75 ms delay, ±20 ms jitter and 2% packet loss.\n2. On the client, log `NetworkManager.ServerTime.Tick` every frame for a few minutes.\n3. Give the client an owner-authoritative `NetworkTransform` that moves continuously, and log on the host when its state updates arrive.\n\n### Actual Outcome\n\nAbout twice a minute the client's `ServerTime.Tick` steps backwards (one example: 568 → 548). The client's `NetworkTransform` sends nothing until its tick passes 568 again, so the host sees it stand still for up to about 0.5 s and then jump.\n\n### Expected Outcome\n\nA delayed time sync doesn't move a client's clock backwards, and its transforms keep sending. Possible fixes:\n- send `TimeSyncMessage` unreliably (add it to `k_SkipMessageTypes`, as the comment intends), so a lost one is replaced by the next a second later instead of arriving late;\n- or ignore a time sync older than the last one applied;\n- and/or let `NetworkTransformTickRegistration` recover from a backward tick (reset `m_LastTick`) instead of skipping until the clock catches up.\n\n### Screenshots\n\nNone. The numbers come from per-frame logs.\n\n### Environment\n\n- OS: Windows 11 Pro\n- Unity Version: 6000.3.27f1\n- Netcode Version: 2.13.3 (also present in `develop-3.x.x` and 3.2.0)\n- Netcode Commit: the v2.13.3 release\n- Netcode Topology: Client-Server (host)\n\n### Additional Context\n\n- Unity Transport 2.7.4.\n- Our workaround: each client raises `NetworkTimeSystem.HardResetThresholdSec` to 1 s when it starts. With that, the backward resets went from about two a minute to none in three minutes under the same conditions.\n","author":{"url":"https://github.com/zchristensen01","@type":"Person","name":"zchristensen01"},"datePublished":"2026-11-10T22:03:55Z","url":"https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/4249"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:66b7c15c-1941-5aa3-d004-1d482a6ecd69 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C670:14B836:DCE484:1281182:6B00550B |
| html-safe-nonce | 1efb230ca7ba26b36a0cbe83a0fac8ff91243b31d6619a1fed2716a349ad4353 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjcwOjE0QjgzNjpEQ0U0ODQ6MTI4MTE4Mjo2QjAwNTUwQiIsInZpc2l0b3JfaWQiOiI3NDgwNzE1MzU2MzgyNzEzMDk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f9e83610a214b5b166a995fea6ddd4c4b529ed82273cd7cec1289d748d5dce2d |
| hovercard-subject-tag | issue:6316792910 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Unity-Technologies/com.unity.netcode.gameobjects/4249/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c3587b6f4efeab37211a3ba4ae9dc16adea501ea204ffdde18343c9d419f93e2/Unity-Technologies/com.unity.netcode.gameobjects/issues/4249 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c3587b6f4efeab37211a3ba4ae9dc16adea501ea204ffdde18343c9d419f93e2/Unity-Technologies/com.unity.netcode.gameobjects/issues/4249 |
| og:image:alt | Description TimeSyncMessage is sent reliably, although MessageDelivery says it's meant to stay unreliable. Under packet loss a time sync arrives late. The client takes its old host tick as current,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zchristensen01 |
| hostname | github.com |
| expected-hostname | github.com |
| None | f420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb |
| turbo-cache-control | no-preview |
| go-import | github.com/Unity-Technologies/com.unity.netcode.gameobjects git https://github.com/Unity-Technologies/com.unity.netcode.gameobjects.git |
| octolytics-dimension-user_id | 426196 |
| octolytics-dimension-user_login | Unity-Technologies |
| octolytics-dimension-repository_id | 116385203 |
| octolytics-dimension-repository_nwo | Unity-Technologies/com.unity.netcode.gameobjects |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 116385203 |
| octolytics-dimension-repository_network_root_nwo | Unity-Technologies/com.unity.netcode.gameobjects |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 26e00df917aba0f128135dc073ea0c5e33a70d40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width