fixed high cpu usage caused by spawning stupid amounts of script objects each tick

This commit is contained in:
Tahir Akhlaq 2017-07-18 04:51:35 +01:00
parent 53207a9ff0
commit ddad27a5f9
7 changed files with 41 additions and 27 deletions

View file

@ -40,7 +40,7 @@ namespace FFXIVClassic_Map_Server
private Server mServer;
private const int MILIS_LOOPTIME = 10;
private const int MILIS_LOOPTIME = 333;
private Timer mZoneTimer;
//Content Groups
@ -1017,6 +1017,7 @@ namespace FFXIVClassic_Map_Server
Program.Tick = DateTime.Now;
foreach (Zone zone in zoneList.Values)
zone.Update(Program.Tick);
Program.LastTick = Program.Tick;
}
}