Skip to content

Commit 0786f7b

Browse files
fix: fixed network activity occurring outside the core update getting missed in the profiler (#641)
Co-authored-by: Matt Walsh <69258106+mattwalsh-unity@users.noreply.github.com>
1 parent 3047068 commit 0786f7b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

com.unity.multiplayer.mlapi/Runtime/Core/NetworkManager.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ public void NetworkUpdate(NetworkUpdateStage updateStage)
652652

653653
private void OnNetworkEarlyUpdate()
654654
{
655+
NotifyProfilerListeners();
655656
ProfilerBeginTick();
656657

657658
if (IsListening)
@@ -755,8 +756,6 @@ private void OnNetworkPreUpdate()
755756
m_CurrentNetworkTimeOffset += Mathf.Clamp(m_NetworkTimeOffset - m_CurrentNetworkTimeOffset, -maxDelta, maxDelta);
756757
}
757758
}
758-
759-
NotifyProfilerListeners();
760759
}
761760

762761
internal void UpdateNetworkTime(ulong clientId, float netTime, float receiveTime, bool warp = false)

0 commit comments

Comments
 (0)