Unity Learn home
View Tutorial Content

Profile code to identify issues

Tutorial
Foundational
+10 XP
30 Mins
(1103)
Overview
For Educators
Summary
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: January 03, 2024
2022.3
2022.2
2022.1
2021.3
2020.3
Language
English
Profile code to identify issues