Added comments in performance sensitive code.
This commit is contained in:
@@ -111,6 +111,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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user