mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-06-09 10:06:34 +02:00
record bandwidth usage on release (#6545)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user