Unity Game Development

Getting Started with Unity Profiler for Optimization

//Learning to Optimize Your Games

Valdarix Games
4 min readAug 27, 2021

--

The Profiler in Timeline View

Ok, we have spent lots of time learning how to create games and applications in Unity3D. You’ve written some code, built some levels and something seems off. The game is crashing, or seems to get sluggish at certain points. This is where optimization comes in.

Fortunately for us we don’t have to write lots of debug code or try eyeballing when something happens. Unity gives us a built in tool called the Profiler that will allow us to view our game running in real time and seen a profile of where things are happening.

Enable the Profiler

The profiler is really easy to turn on. Just click Window > Analysis > Profiler to launch a profiler that will monitor our game as it runs in the engine. Later we will look at how to analyze the standalone built version of the application as well.

Once the profiler is enabled you will see a screen that looks similar to what I have above when you click play.

I usually set the bottom panel to hierarchy instead of timeline. There are also lots of things being monitored. Have a look.

--

--

Valdarix Games
Valdarix Games

Written by Valdarix Games

Turning my passion for video games and software development experience into a focus on video game development.

No responses yet