Optimization & Mobile

Profiling Unity games

Optimization is an evidence-driven process. Track CPU time, GPU time, allocations, batches, SetPass calls, memory and overdraw.

SymptomInvestigateTypical direction
CPU frame spikesProfiler timelineScripts, physics, animation
GPU boundFrame debugger / GPU profilerShaders, resolution, overdraw
Many draw callsRendering statsMaterials, batching, instancing
GC spikesGC allocation samplesPer-frame allocations
Lesson complete?Use the next lesson to continue the learning path.