November 2019
Intermediate to advanced
404 pages
12h 9m
English
The best metric we can use to measure the health of our memory management is simply watching the behavior of the GC. The more work it's doing, the more waste we're generating and the worse our application's performance is likely to become.
We can use both the CPU Usage Area (the GarbageCollector checkbox) and Memory Area (the GC Allocated checkbox) of the Profiler window to observe the amount of work the GC is doing and the time it is taking to do it. This can be relatively straightforward for some situations, where we only allocated a temporary small block of memory or we just destroyed a GameObject instance.
However, root-cause analysis for memory efficiency problems can be challenging and time-consuming. When ...
Read now
Unlock full access