Optimize graphics settings
Refer to the following sections to understand how to configure your graphics settings for your Android XR project.
Vulkan Graphics API
Vulkan is the recommended graphics API for Android XR, as newer graphics features are only supported with that API.
To change your project's Graphics API to Vulkan, follow these steps:
- Go to Edit > Project Settings > Player.
- Select the Android tab and open Other Settings.
- In the Rendering section, if Auto Graphics API is enabled, disable this setting to reveal the Graphics APIs section.
- Under Graphics APIs, click the Add button (+) to add a new Graphics API.
- Select Vulkan.
- Re-order the Graphics APIs using the handles (=) so that Vulkan is listed first.
- Optionally, select any other Graphics APIs and click the Remove button (-) to remove them.
Universal Render Pipeline
Android XR is compatible with the Universal Render Pipeline (URP), but the default URP settings aren't suitable for best passthrough performance on Android XR. Refer to the following table for a list of Unity's recommended settings, which are explained in greater detail in the following sections.
Setting | Location | Recommended value |
---|---|---|
HDR | Universal Render Pipeline Asset | Disabled |
Post-processing | Universal Renderer Data | Disabled |
Note
If you're using HDR light estimation in your project, enable HDR. Note that this can affect the performance of your application.
Universal Render Pipeline Asset settings
To optimize your Universal Render Pipeline Asset for Android XR:
Locate your project's Universal Render Pipeline Asset. One way to do this is to type
t:UniversalRenderPipelineAsset
into the Project window's search bar.Tip
If your project does not contain a Universal Render Pipeline Asset, refer to Installing the Universal Render Pipeline into an existing Project from the URP docs.
Under the Quality header, disable HDR.
Universal Render Pipeline Asset shown with recommended settings.
Universal Renderer Data settings
To optimize your Universal Renderer Data for Android XR:
- Locate your project's Universal Renderer Data Asset. One way to do this is to type
t:UniversalRendererData
into the Project window's search bar. - In the Inspector, under the Post-processing header, uncheck Enabled.
Universal Renderer Data shown with recommended settings.
Additional resources
- Optimization techniques for untethered XR devices (URP documentation)
- Permissions