FirstGearGames / FishNet

FishNet: Unity Networking Evolved.
Other
1.39k stars 150 forks source link

[Reconcile] doesn't start immediately #638

Closed viliwonka closed 7 months ago

viliwonka commented 8 months ago

Important

Client-side prediction, timing issue.

General Unity version: 2022.3.17f Fish-Networking version: 4.1.6 Discord link: https://discord.com/channels/424284635074134018/1167060429051269200/1223939075892056144

Description A player and vehicle. Both are CSP-ed. Vehicle is at first non-owned, then later, when player enters vehicle, vehicles ownership transfers to player.

Replication Steps to reproduce the behavior:

  1. Start server, then start client
  2. Drag vehicle prefab into scene (which spawns itself, visible on client).
  3. Player enters vehicle, gets ownership
  4. Vehicles CSP doesn't get immediate [Reconcile], need to wait for clients localTick to match server vehicle localTick. It takes ~20+ seconds for [Reconcile] to start happening on client, depends how fast client enters vehicle.

Expected behavior I expect [Reconcile] to happen asap on client.

Screenshots image image image

With screenshots, I want to show difference in tick, when I change ownership and when Reconcile messages happen. I reconcile each 50th tick, with 50 tickrate, so each ~1 second.

FirstGearGames commented 7 months ago

Resolved in 4.2. Thanks koubi!