Add a PerfSample to UpdateCellBlocking.

This commit is contained in:
Paul Chote
2019-07-27 09:57:46 +01:00
committed by reaperrr
parent 8ae2b00414
commit 6345655bb1

View File

@@ -14,6 +14,7 @@ using System.Collections.Generic;
using System.Linq;
using OpenRA.Graphics;
using OpenRA.Primitives;
using OpenRA.Support;
using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
@@ -422,6 +423,8 @@ namespace OpenRA.Mods.Common.Traits
}
void UpdateCellBlocking(CPos cell)
{
using (new PerfSample("locomotor_cache"))
{
var current = pathabilityCache[cell];
@@ -470,6 +473,7 @@ namespace OpenRA.Mods.Common.Traits
pathabilityCache[cell] = current.WithBlocking(cellBits, cellBlocking);
}
}
void MapCellEntryChanged(CPos cell)
{