Added comments in performance sensitive code.
This commit is contained in:
@@ -1023,7 +1023,7 @@ namespace OpenRA
|
||||
var uv = cell.ToMPos(this);
|
||||
var terrainIndex = cachedTerrainIndexes[uv];
|
||||
|
||||
// Cache terrain indexes per cell on demand.
|
||||
// PERF: Cache terrain indexes per cell on demand.
|
||||
if (terrainIndex == InvalidCachedTerrainIndex)
|
||||
{
|
||||
var custom = CustomTerrain[uv];
|
||||
|
||||
Reference in New Issue
Block a user