Add a PerfSample to UpdateCellBlocking.
This commit is contained in:
@@ -14,6 +14,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Primitives;
|
using OpenRA.Primitives;
|
||||||
|
using OpenRA.Support;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.Common.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
@@ -422,6 +423,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
}
|
}
|
||||||
|
|
||||||
void UpdateCellBlocking(CPos cell)
|
void UpdateCellBlocking(CPos cell)
|
||||||
|
{
|
||||||
|
using (new PerfSample("locomotor_cache"))
|
||||||
{
|
{
|
||||||
var current = pathabilityCache[cell];
|
var current = pathabilityCache[cell];
|
||||||
|
|
||||||
@@ -470,6 +473,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
pathabilityCache[cell] = current.WithBlocking(cellBits, cellBlocking);
|
pathabilityCache[cell] = current.WithBlocking(cellBits, cellBlocking);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void MapCellEntryChanged(CPos cell)
|
void MapCellEntryChanged(CPos cell)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user