The Rendering 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 displays renderingThe process of drawing graphics to the screen (or to a render texture). By default, the main camera in Unity renders its view to the screen. More info
See in Glossary statistics and information about what the CPU and GPU do to render the SceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary. You can use these statistics to measure the resource intensity of different areas of the Scene, which is useful for optimization.
The chart displays the number of Batches, SetPass Calls, Triangles and Vertices your application rendered. The lower pane displays more rendering statistics, which match the ones shown in the GameView Rendering Statistics window.
The Rendering Profiler module’s chart is divided into four categories as follows:
Chart | Description |
---|---|
Batches | The number of batches Unity processed during a frame. |
SetPass Calls | The number of times Unity switched which shaderA program that runs on the GPU. More info See in Glossary pass it used to render GameObjectsThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info See in Glossary during a frame. A shader might contain several shader passes and each pass renders GameObjects in the scene differently. |
Triangles | The number of triangles Unity processed during a frame. |
Vertices | The number of vertices Unity processed during a frame. |
When you click on the Rendering Profiler module, the details pane in the lower half of the window displays detailed rendering statistics. These statistics are similar to the statistics shown in the Rendering Statistics window.
In the top left of the details pane, select Open Frame Debugger to open the Frame Debugger, which gives you information on individual drawcalls that rendered the frame.
These statistics are also available via the ProfilerRecorder API and in the Profiler Module Editor so you can add them to a custom Profiler module.
Statistic | Description |
---|---|
SetPass Calls | The number of times Unity switched which shader pass it used to render GameObjects during a frame. A shader might contain several shader passes and each pass renders GameObjects in the scene differently. |
Draw Calls | The total number of draw calls Unity issued during a frame. Unity issues draw calls when it renders GameObjects to the screen. This number includes non batched draw calls as well as dynamic and static batched draw calls. |
Total Batches | The total number of batches Unity processed during a frame. This number includes both static and dynamic batches. |
Tris | The number of triangles Unity processed during a frame. |
Verts | The number of vertices Unity processed during the frame. |
(Dynamic Batching) | This section contains statistics on dynamic batchingAn automatic Unity process which attempts to render multiple meshes as if they were a single mesh for optimized graphics performance. The technique transforms all of the GameObject vertices on the CPU and groups many similar vertices together. More info See in Glossary. |
Batched Draw Calls | The number of draw calls Unity combined into dynamic batches. |
Batches | The number of dynamic batches Unity processed during the frame. |
Tris | The number of triangles in the GameObjects included in the dynamic batches. |
Verts | The number of vertices in the GameObjects included in the dynamic batches. |
(Static Batching) | This section contains statistics on static batchingA technique Unity uses to draw GameObjects on the screen that combines static (non-moving) GameObjects into big Meshes, and renders them in a faster way. More info See in Glossary. |
Batched Draw Calls | The number of draw calls Unity combined into static batches. |
Batches | The number of static batches Unity processed during a frame. |
Tris | The number of triangles in the GameObjects included in the static batches. |
Verts | The number of vertices in the GameObjects included in the static batches. |
(Instancing) | This section contains statistics on GPU instancing. |
Batched Draw Calls | The number of draw calls Unity combined into instance batches. |
Batches | The number of batches Unity processed to render instanced GameObjects during a frame. |
Tris | The number of triangles in the instanced GameObjects. |
Verts | The number of vertices in the instanced GameObjects. |
Used Textures | The number of texturesAn image used when rendering a GameObject, Sprite, or UI element. Textures are often applied to the surface of a mesh to give it visual detail. More info See in Glossary Unity used during the frame and the amount of memory the textures used. |
RenderTextures RenderTextures Bytes |
The number of RenderTextures Unity used during the frame and the amount of memory the RenderTextures used. |
RenderTextures Switches | The number of times Unity set one or multiple RenderTextures as render targets during the frame. |
Screen | The resolution of the screen and the amount of memory it used. |
VRAM Usage | How much video memory Unity allocated to render the frame. |
VBO Total | The number of compute buffers on the GPU. |
VB Uploads | The amount of geometry that the CPU uploaded to the GPU in a frame. This represents the vertex/normal/texcoord data. There might already be some geometry on the GPU. This statistic only includes geometry that Unity transfers in a frame. |
IB Uploads | The amount of geometry that the CPU uploaded to the GPU in a frame. This represents the triangle indices data. There might already be some geometry on the GPU. This statistic only includes geometry that Unity transfers in a frame. |
Shadow Casters | The number of GameObjects that cast shadows in a frame. If a GameObject casts multiple shadows (because multiple lights light it), it has one entry per shadow it casts. |