You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-18 08:06:33 +09:00
micro optimization in NetServer.SendToAll()
This commit is contained in:
@@ -40,6 +40,12 @@ namespace Lidgren.Network
|
|||||||
if (all.Count <= 0)
|
if (all.Count <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (except == null)
|
||||||
|
{
|
||||||
|
SendMessage(msg, all, method, sequenceChannel);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
List<NetConnection> recipients = new List<NetConnection>(all.Count - 1);
|
List<NetConnection> recipients = new List<NetConnection>(all.Count - 1);
|
||||||
foreach (var conn in all)
|
foreach (var conn in all)
|
||||||
if (conn != except)
|
if (conn != except)
|
||||||
|
|||||||
Reference in New Issue
Block a user