perf: removed obsolete method calls and switched to for in draw calls

This commit is contained in:
2025-05-29 22:49:51 +03:00
parent 59059fa09d
commit 3c38cb4159
7 changed files with 18 additions and 18 deletions

View File

@@ -37,7 +37,7 @@ public abstract class LiteNetLibCommunicatorBase : UniverseObject, INetworkCommu
return;
foreach (Delegate @delegate in delegates)
@delegate.InvokeSafe(packet, peer.Id.ToString());
@delegate.DynamicInvoke(packet, peer.Id.ToString());
}
private void NetworkReceiveEvent(NetPeer peer, NetPacketReader reader, byte channel, DeliveryMethod deliveryMethod)