Documentation

Unity Engine

Unity Engine

Analyze your project in URP

Analyze the performance of your project with tools such as the Unity Profiler or a GPU profiler.
Read time 2 minutesLast updated a month ago

You can use the Unity Profiler to get data on the performance of your project in areas such as the CPU and memory.

Profiler markers

The following table lists markers that appear in the Unity Profiler for a URP frame and have a significant effect on performance.
The table doesn't include a marker if it's deep in the Profiler hierarchy, or the label already describes what URP does.

Marker

Description

Inl_UniversalRenderPipeline. RenderSingleCameraInternalURP builds a list of rendering commands in the
ScriptableRenderContext
, for a single camera. URP only records rendering commands in this marker, but doesn't yet execute them. The marker includes the camera name, for example Main Camera.
This marker has the following sub-markers:
  • Inl_ScriptableRenderer.Setup: URP prepares for rendering, for example preparing render textures for the camera and shadow maps.
  • CullScriptable: URP generates a list of GameObjects and lights to render, and culls (excludes) any that are outside the camera's view. The time this takes depends on the number of GameObjects and lights in your scene.
Inl_ScriptableRenderContext.SubmitURP submits the list of commands in the
ScriptableRenderContext
to the graphics API. This marker might appear more than once if URP submits commands more than once per frame, or you call
ScriptableRenderContext.Submit
in your own code.
This marker has the following sub-markers:
  • MainLightShadow: URP renders a shadow map for the main Directional Light.
  • AdditionalLightsShadow: URP renders shadow maps for other lights.
  • UberPostProcess: URP renders post-processing effects you enable. This marker contains separate markers for some post-processing effects.
  • RenderLoop.DrawSRPBatcher: URP uses the Scriptable Render Pipeline Batcher to render one or more batches of objects.
CopyColorURP copies the color buffer from one render texture to another. You can disable Opaque Texture in the URP Asset, so that URP only copies the color buffer if it needs to.
CopyDepthURP copies the depth buffer from one render texture to another. You can disable Depth Texture in the URP Asset unless you need the depth texture (for example, if you use a shader that uses scene depth).
FinalBlitURP copies a render texture to the current camera render target.

Use a GPU profiler to analyze your project

You can use a platform GPU profiler such as Xcode to get data on the performance of the GPU during rendering. You can also use a profiler such as RenderDoc, but it might provide less accurate performance data.
Data from a GPU profiler includes URP markers for rendering events, such as different render passes.

Use other tools to analyze your project

You can also use the following tools to analyze the performance of your project: