Optimization & Mobile
Profiling Unity games
Optimization is an evidence-driven process. Track CPU time, GPU time, allocations, batches, SetPass calls, memory and overdraw.
| Symptom | Investigate | Typical direction |
|---|---|---|
| CPU frame spikes | Profiler timeline | Scripts, physics, animation |
| GPU bound | Frame debugger / GPU profiler | Shaders, resolution, overdraw |
| Many draw calls | Rendering stats | Materials, batching, instancing |
| GC spikes | GC allocation samples | Per-frame allocations |
Lesson complete?Use the next lesson to continue the learning path.