-
Notifications
You must be signed in to change notification settings - Fork 452
Closed
Labels
priority:lowThis issue has low priority and will take some time to be resolvedThis issue has low priority and will take some time to be resolvedstat:awaiting-responseAwaiting response from author. This label should be added manually.Awaiting response from author. This label should be added manually.stat:importedStatus - Issue is tracked internally at UnityStatus - Issue is tracked internally at Unitytype:feature-2.xNew NGO 2.0.0 feature, request or improvementNew NGO 2.0.0 feature, request or improvementtype:supportQuestions or other supportQuestions or other support
Description
Description
We're using Multiplayer Services and Distributed Authority. Sometimes we hit a race in which Player 2 doesn't get updates from Player 1. Here's the sequence:
- Both players try to quick join a session using
MultiplayerService.Instance.MatchmakeSessionAsync
- One player ends up creating the session and the other player joins it.
- The session owner (player 1) can see player 2 just fine
- Player 2 can see player 1, but none of their network variables (e.g. Network Transforms) are updating. They are stuck in the initial spawn position.
- Player 2 can leave and rejoin the session. Then everything works as expected.
Reproduce Steps
We can force this to reproduce every time by adding a delay to ConnectionApprovedMessage.Handle
:
public void Handle(ref NetworkContext context)
{
System.Threading.Tasks.Task.Delay(10000).Wait();
Actual Outcome
Player 2 is frozen for Player 1.
Expected Outcome
Player 2 is not frozen for Player 1.
Environment
- OS: Windows Editor, Meta Quest
- Unity Version: 6000.0.41f
- Netcode Version: 2.0.0
- Netcode Commit: f2e776e
Metadata
Metadata
Assignees
Labels
priority:lowThis issue has low priority and will take some time to be resolvedThis issue has low priority and will take some time to be resolvedstat:awaiting-responseAwaiting response from author. This label should be added manually.Awaiting response from author. This label should be added manually.stat:importedStatus - Issue is tracked internally at UnityStatus - Issue is tracked internally at Unitytype:feature-2.xNew NGO 2.0.0 feature, request or improvementNew NGO 2.0.0 feature, request or improvementtype:supportQuestions or other supportQuestions or other support