NetworkEvent optimization (more frequent use of WriteRangedSingle)

This commit is contained in:
Regalis11
2015-10-25 00:06:32 +03:00
parent 3335f87f64
commit aeeae13b35
15 changed files with 84 additions and 56 deletions

View File

@@ -314,7 +314,7 @@ namespace Barotrauma.Networking
{
if (c as AICharacter == null) continue;
if (c.SimPosition.Length() > 100.0f) continue;
if (c.SimPosition.Length() > NetConfig.CharacterIgnoreDistance) continue;
c.CreateUpdateNetworkEvent(false);
}