Merge pull request #10208 from RoosterDragon/perf-comments

Added some performance comments
This commit is contained in:
atlimit8
2015-12-13 20:46:07 -06:00
28 changed files with 91 additions and 36 deletions

View File

@@ -208,6 +208,8 @@ namespace OpenRA.Mods.Common.Widgets
void MarkShroudDirty(IEnumerable<PPos> projectedCellsChanged)
{
// PERF: Many cells in the shroud change every tick. We only track the changes here and defer the real work
// we need to do until we render. This allows us to avoid wasted work.
dirtyShroudCells.UnionWith(projectedCellsChanged);
}