Skip to content

Commit bef00ff

Browse files
author
JS Fauteux
authored
fix: MTT-1124 Counters are now reported in sync with other metrics (#1096)
1 parent 0016483 commit bef00ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,8 +1054,6 @@ public void NetworkUpdate(NetworkUpdateStage updateStage)
10541054

10551055
private void OnNetworkEarlyUpdate()
10561056
{
1057-
NetworkMetrics.DispatchFrame();
1058-
10591057
if (IsListening)
10601058
{
10611059
#if DEVELOPMENT_BUILD || UNITY_EDITOR
@@ -1116,6 +1114,8 @@ private void OnNetworkManagerTick()
11161114
{
11171115
SyncTime();
11181116
}
1117+
1118+
NetworkMetrics.DispatchFrame();
11191119
}
11201120

11211121
private void SendConnectionRequest()

0 commit comments

Comments
 (0)