Using the Unity Profiler
When you are working on a very large game the optimization of the code and the use of certain calls over others can make a difference. In a game, this manifests itself initially as a drop in FPS and then comes to a complete stop.
To check where this happens within Unity there is the Profiler. It’s a very useful tool that allows you to find out immediately where you left that Debug.Log in that script that you haven’t opened in months.
The Profiler does much more than that, it shows you the progress of your game in a graph as soon as you enter play mode. You can also link it to your build so you can see only what are its peaks by removing the consumption of the Unity editor.
Thanks to the profiler we can optimize our game in all aspects by removing all the waste.