also measure render performance bottle necks

closes #4133
This commit is contained in:
Matthias Mailänder
2014-11-01 15:33:03 +01:00
parent 2d88a77849
commit 10edb7a621

View File

@@ -281,7 +281,7 @@ namespace OpenRA
// For things that want to update their render state once per tick, ignoring pause state
public void TickRender(WorldRenderer wr)
{
ActorsWithTrait<ITickRender>().Do(x => x.Trait.TickRender(wr, x.Actor));
ActorsWithTrait<ITickRender>().DoTimed(x => x.Trait.TickRender(wr, x.Actor), "Render");
}
public IEnumerable<Actor> Actors { get { return actors; } }