Merge pull request #10208 from RoosterDragon/perf-comments
Added some performance comments
This commit is contained in:
@@ -115,6 +115,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
}
|
||||
else
|
||||
{
|
||||
// PERF: Minimize lookup cost by combining all state into one, and using an array rather than a dictionary.
|
||||
var state = stateByPlayerIndex[i];
|
||||
frozenActor = state.FrozenActor;
|
||||
isVisible = !frozenActor.Visible;
|
||||
|
||||
Reference in New Issue
Block a user