Added comments in performance sensitive code.
This commit is contained in:
@@ -261,6 +261,7 @@ namespace OpenRA.Widgets
|
||||
|
||||
public virtual Rectangle GetEventBounds()
|
||||
{
|
||||
// PERF: Avoid LINQ.
|
||||
var bounds = EventBounds;
|
||||
foreach (var child in Children)
|
||||
if (child.IsVisible())
|
||||
|
||||
Reference in New Issue
Block a user