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

@@ -113,6 +113,7 @@ namespace OpenRA
public void SetViewportParams(int2 scroll, float zoom)
{
// PERF: Calling SetViewportParams on each renderer is slow. Only call it when things change.
var resolutionChanged = lastResolution != Resolution;
if (resolutionChanged)
{