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