Closed wrenge closed 7 months ago
Calling ScopedTimer will cause 3 allocations: 1) Capturing label in lambda 2) Creating lambda itself 3) Boxing allocation for casting struct into interface
label
It would be better to avoid such allocations in code which executes every game tick.
Thanks for providing the insight!! @wrenge
Calling ScopedTimer will cause 3 allocations: 1) Capturing
label
in lambda 2) Creating lambda itself 3) Boxing allocation for casting struct into interfaceIt would be better to avoid such allocations in code which executes every game tick.