Unity Learn home
View Tutorial Content

Profile code to identify issues

+10 XP
30 Mins
For Educators
In this tutorial, you’ll learn how to use the Profiler to analyze a scene and identify where optimization bottlenecks are occurring.
By the end of this tutorial, you will be able to:
  • Deduce the script method that uses the most CPU time (vs. a script method that does not) by using the CPU profiler in the Profiler window
  • Differentiate a loop that efficiently goes through a collection once in an Update() call from many loops that go through the same collection in an Update() call
  • Recognize possible issues that might cause performance problems (e.g., too many RigidBody components, too many Colliders, too many shadows, etc.), given a scenario
  • Investigate performance issues caused by poly count, texture sizes, or too many objects on the screen by using Unity's Stats window
  • Identify unnecessary nested if statements
Select your Unity version
Last updated: October 19, 2022
Profile code to identify issues