The Analysis preferences define settings for the ProfilerA window that helps you to optimize your game. It shows how much time is spent in the various areas of your game. For example, it can report the percentage of time spent rendering, animating, or in your game logic. More info
See in Glossary. To open the preferences, go to Edit > Preferences > Analysis (macOS: Unity > Settings > Analysis).
Contains settings for the Profiler window.
| Setting | Description |
|---|---|
| Frame count | Set the maximum number of frames for the Profiler to capture. You can set this number between 600 and 4,000. A higher number of loaded frames increases the memory usage of the Unity Editor. |
| Show stats for current frame | Display annotations on the frame indicator when you select Current frame. By default, when you select the Current Frame button, the frame indicator line doesn’t have annotations with the stats for the current frame. This is because the stats annotations might make it difficult to view data in real-time. |
| Default recording state | Select the recording state to open the Profiler in. Choose from the following options:
|
| Default editor target mode on start | Select the default mode for the Target Selection dropdown. Choose from either Play Mode or Edit Mode. |
| Custom connection ID | Set the connection name displayed in the Target Selection dropdown of the Profiler Window or Console WindowA Unity Editor window that shows errors, warnings and other messages generated by Unity, or your own scripts. More info See in Glossary for the device that’s running your application. |
|
Target Frames Per SecondThe frequency at which consecutive frames are displayed in a running game. More info See in Glossary (Highlights Module) |
Set the target frames per second that the Highlights Profiler module uses. The Highlights Profiler module flags any frames that exceed the budget for this target frame rate. |