The GPU Usage 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 module displays where your application spends time in the GPU. You can only use the GPU Profiler in Play mode, or for builds of your application. You can’t use it to profile the Unity Editor.
By default, the GPU Usage Profiler module isn’t enabled. To enable it, refer to Activating Profiler modules.
Note: If you have Graphics Jobs enabled in the Player Settings, GPU profiling isn’t supported. For more information, refer to the documentation on Player SettingsSettings that let you set various player-specific options for the final game built by Unity. More info
See in Glossary. Additionally, on macOS, you can profile the GPU only on Mavericks 10.9 and later.
The GPU Usage Profiler module’s chart has several different categories that you can use to investigate GPU timings:
Chart | Description |
---|---|
Opaque | Built-in rendering pipeline’s time to render opaque objects. |
Transparent | Built-in rendering pipeline’s time to render transparent objects. |
Shadows/Depth | Built-in rendering pipeline’s time to render shadow maps. |
Deferred Geometry | Built-in deferred rendering pipeline’s time to render geometry. |
Deferred Lighting | Built-in deferred rendering pipeline’s time to render lighting. |
PostProcess | Built-in rendering pipeline’s time to process post processing effects. |
Other | Rendering time to process other things such as Scriptable Rendering Pipelines |
When you select the GPU Usage module, the details pane displays a breakdown of where the application spent time in the selected frame.
You can display the timing data as a hierarchical table. To change the table views, use the top-left dropdown in the details pane (set to Hierarchy by default). The views available are:
Value | Description |
---|---|
Hierarchy | Groups the timing data by its internal hierarchical structure. This option displays the elements that your application called in a descending list format, ordered by the time spent by default. You can also order the information by the total amount of GPU time, or the number of calls. To change the column that orders the table, click the table column’s header. |
Raw Hierarchy | Displays the timing data in a hierarchical structure that is similar to the call stacks where the timing occurred. Unity lists each call stack separately in this mode instead of merging them, as it does in Hierarchy view. |
The table views have the following columns:
Value | Description |
---|---|
Total | The total amount of time Unity spent on a particular function, as a percentage. |
DrawCalls | The number of calls made to this function in this frame. |
GPU ms | The total amount of time Unity spent on a particular function, in milliseconds. |
The following table lists the platforms that the GPU Usage Profiler module supports:
Platform | Graphics API | Status |
---|---|---|
Windows | DirectX 11, DirectX 12, OpenGL | Supported |
Vulkan | Not supported | |
macOS | OpenGL | Supported. Note: Apple has deprecated support of OpenGL. |
Metal | Not supported. Use XCode’s GPU Frame Debugger UI(User Interface) Allows a user to interact with your application. Unity currently supports three UI systems. More info See in Glossary instead. |
|
Linux | OpenGL core | Supported |
Vulkan | Not supported | |
Web | All WebGLA JavaScript API that renders 2D and 3D graphics in a web browser. The Unity Web build option allows Unity to publish content as JavaScript programs which use HTML5 technologies and the WebGL rendering API to run Unity content in a web browser. More info See in Glossary |
Not supported |
Android | OpenGL | Supported on devices running NVIDIA or Intel GPUs. |
Vulkan | Not supported | |
iOS, tvOS | Metal | Not supported. Use XCode’s GPU Frame Debugger UI instead. |
Tizen | OpenGL | Not supported. |
On Windows, Unity supports Play mode profiling in the Editor with Direct3D 11 and Direct3D 12 APIs only. This is convenient for quick profiling, because it means you don’t need to build the Player. However, the overhead of running the Unity Editor affects the Profiler, which might make the profiling results less accurate.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Some 3rd party video providers do not allow video views without targeting cookies. If you are experiencing difficulty viewing a video, you will need to set your cookie preferences for targeting to yes if you wish to view videos from these providers. Unity does not control this.
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.