record bandwidth usage on release (#6545)

This commit is contained in:
mastermiller01
2026-05-05 10:28:51 +00:00
committed by GitHub
parent 46a56ce348
commit 15962c62a6
-4
View File
@@ -1000,8 +1000,6 @@ namespace Robust.Shared.Network
var instance = (NetMessage) Activator.CreateInstance(type)!;
instance.MsgChannel = channel;
#if DEBUG
if (!_bandwidthUsage.TryGetValue(type, out var bandwidth))
{
bandwidth = 0;
@@ -1009,8 +1007,6 @@ namespace Robust.Shared.Network
_bandwidthUsage[type] = bandwidth + msg.LengthBytes;
#endif
try
{
instance.ReadFromBuffer(msg, _serializer);