perf counter for synchash
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.Effects;
|
using OpenRa.Game.Effects;
|
||||||
|
using OpenRa.Game.Support;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa.Game
|
||||||
{
|
{
|
||||||
@@ -54,6 +55,8 @@ namespace OpenRa.Game
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int SyncHash()
|
public int SyncHash()
|
||||||
|
{
|
||||||
|
using (new PerfSample("synchash"))
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
foreach (var a in Actors)
|
foreach (var a in Actors)
|
||||||
@@ -63,3 +66,4 @@ namespace OpenRa.Game
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user