Skip to content

Commit 83add46

Browse files
Don't overflow to negative ticks
Move transport constants to the appropriate location
1 parent b41b1ce commit 83add46

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

com.unity.multiplayer.mlapi/Runtime/Profiling/PerformanceDataManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Collections.Generic;
1+
using System;
2+
using System.Collections.Generic;
23
using System.Linq;
34

45
namespace MLAPI.Profiling
@@ -10,6 +11,7 @@ static class PerformanceDataManager
1011

1112
internal static void BeginNewTick()
1213
{
14+
s_TickID = Math.Max(s_TickID, 0);
1315
s_ProfilerData = new PerformanceTickData
1416
{
1517
tickID = s_TickID++,

com.unity.multiplayer.mlapi/Runtime/Profiling/ProfilerConstants.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,5 @@ public enum ProfilerConstants
1717
NumberOfRPCQueueProcessed,
1818
NumberOfRPCsInQueueSize,
1919
NumberOfRPCsOutQueueSize,
20-
21-
NumberOfTransportSends,
22-
NumberOfTransportSendQueues,
2320
}
2421
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace MLAPI.Transports.UNET
2+
{
3+
public enum ProfilerConstants
4+
{
5+
NumberOfTransportSends,
6+
NumberOfTransportSendQueues,
7+
}
8+
}

com.unity.multiplayer.mlapi/Runtime/Transports/UNET/ProfilerConstants.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)