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

@@ -166,9 +166,9 @@ namespace FFXIVClassic_Map_Server.actors.area
public override void Update(DateTime tick)
{
// todo: again, this is retarded but debug stuff
var diffTime = tick - lastUpdate;
base.Update(tick);
var diffTime = tick - lastUpdate;
// arbitrary cap
if (diffTime.Milliseconds >= 33)
{