You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-16 15:16:33 +09:00
fixed performance snafu looking up broadcast address every packet send
This commit is contained in:
@@ -138,7 +138,7 @@ namespace Lidgren.Network
|
||||
try
|
||||
{
|
||||
// TODO: refactor this check outta here
|
||||
if (target.Address == NetUtility.GetBroadcastAddress())
|
||||
if (target.Address == NetUtility.GetCachedBroadcastAddress())
|
||||
{
|
||||
// Some networks do not allow
|
||||
// a global broadcast so we use the BroadcastAddress from the configuration
|
||||
|
||||
Reference in New Issue
Block a user