Deep learning super sampling (DLSS)
NVIDIA Deep Learning Super Sampling (DLSS) is a rendering technology that uses artificial intelligence to increase graphics performance. The High Definition Render Pipeline (HDRP) natively supports DLSS 4 Super Resolution.
Requirements and compatibility
This section includes HDRP-specific requirements and compatibility information for DLSS.
Platforms
HDRP supports DLSS on the following platforms:
- DirectX 11 on Windows 64 bit
- DirectX 12 on Windows 64 bit
- Vulkan on Windows 64 bit
Note: HDRP doesn't support DLSS for Metal, Linux, Windows using x86 architecture (Win32), or any other platform.
To build your project for Windows, use x86_64 architecture (Win64).
For information about the hardware requirements of DLSS, see NVIDIA'S DLSS requirements.
Using DLSS
To use DLSS in your scene:
Add the NVIDIA package. You can either do this automatically or manually.
To install the NVIDIA package automatically:
- Select an HDRP Asset and view it in the Inspector.
- Go to Rendering > Dynamic Resolution and click Install NVIDIA Package.
To install the NVIDIA package manually:
- Open the Package Manager window (menu: Window > Package Management > Package Manager).
- Select Packages, then select Built-in.
- In the packages list view, find and select the NVIDIA package.
- In the bottom right of the package-specific detail view, select Enable.
Enable DLSS in your HDRP Asset.
- Select the HDRP Asset you want to enable DLSS for and view it in the Inspector.
- Go to Rendering > Dynamic Resolution and select Enable.
- In the Dynamic Resolution section, select the Enable DLSS property to expose other properties that you can use to customize DLSS. For information about these properties, see the HDRP Asset documentation.
Enable DLSS for each Camera you want to use it with.
- In the Hierarchy or Scene view, select a Camera and view it in the Inspector.
- Select Allow Dynamic Resolution to expose the DLSS settings. For more information see the Dynamic Resolution guide.
- Enable Allow DLSS to expose other properties that you can use to customize DLSS for the Camera. For information about these properties, see the Camera documentation.
Set the DLSS quality mode. You can do this on a project level or a per-camera level.
To change the DLSS quality mode for your whole project:
- Select the HDRP Asset that has DLSS enabled and view it in the Inspector.
- Go to Rendering > Dynamic Resolution > DLSS and set the Mode property to the quality mode you want.
To override the DLSS quality mode for a particular Camera:
- In the Hierarchy or Scene view, select a Camera and view it in the Inspector.
- Select Use Custom Quality.
- Set the Mode property to the quality mode you want.
To fine-tune the DLSS image quality for your project, select a DLSS render preset for each quality mode available under the HDRP Asset
DLSS quality modes and render presets
Quality mode | Explanation | Upscale ratio | Render percentage |
---|---|---|---|
Maximum Quality | Provides the highest image quality but lowers performance. | 1.50 | 67% |
Balanced | Balances image quality and performance. | 1.72 | 58% |
Maximum Performance | Increases performance but lowers image quality. | 2.00 | 50% |
Ultra Performance | Provides the highest performance and the lowest image quality. | 3.00 | 33% |
DLAA | Provides AI-assisted anti-aliasing (deep-learning anti-aliasing) without upscaling | 1.00 | 100% |
Each quality mode provides a specific collection of DLSS Render presets. Available presets are marked as '1' in the table below.
Render Preset | Maximum Quality | Balanced | Maximum Performance | Ultra Performance | DLAA | Explanation | AI Model |
---|---|---|---|---|---|---|---|
Preset F | 1 | 1 | Provides the highest image stability. Default value for UltraPerformance. | CNN | |||
Preset J | 1 | 1 | 1 | 1 | Slightly lowers ghosting but increases flickering. NVIDIA recommends using Preset K instead of Preset J. |
Transformer | |
Preset K | 1 | 1 | 1 | 1 | Provides the highest image quality. | Transformer |
The defaults for each quality mode are:
Quality mode | Default render preset |
---|---|
Maximum Quality | Preset K |
Balanced | Preset K |
Maximum Performance | Preset K |
Ultra Performance | Preset F |
DLAA | Preset K |
DLSS render presets are project-specific. Presets are available only from the HDRP Asset settings. You can't override presets on a per-camera basis.
DLSS and Dynamic Resolution
The Use Optimal Settings checkbox in the HDRP Assets is enabled by default. This means that DLSS sets the dynamic resolution scale automatically. If you disable this checkbox DLSS uses the same dynamic resolution scale set by the project. For more information see the Dynamic Resolution guide.
Mip bias in DLSS
To enable automatic mip bias correction when you enable DLSS, open the HDRP Asset and enable the Use Mip Bias checkbox.
If you need a specific custom mip bias for a Texture, create a custom sampler that samples from TextureInput, SamplerInput, UV, and MipBias. To do this, enter the following script into the Node Settings ' Body field. The images below display this example:
Out = SAMPLE_TEXTURE2D_BIAS(TextureInput, SamplerInput, UV, MipBias);