DLSS Unlocked NR-v0.10.5 Speeds Up Super Resolution and Ray Reconstruction on RTX 20 and 30 GPUs
The article's text, from Joho no Todai's page.
The developer released the stable NR-v0.10.5 build of DLSS Unlocked at 11:17 UTC on December 5. Its underlying OptiScaler-NR-PreSR-MFG v0.10.5 includes dlssg_for_sm86 0.4.3, which was released at 18:30 UTC on December 3.
Developers have already been working on Frame Generation mods for older GPUs. Frame Generation inserts AI-generated frames between the frames rendered by a game, making displayed motion smoother.
This update adds options to speed up the AI processing behind Super Resolution and Ray Reconstruction. Super Resolution (SR) produces higher-resolution images from frames rendered at a lower resolution. Ray Reconstruction (RR) uses AI to denoise ray-traced images and recover detail.
Version 0.4.0 of dlssg_for_sm86 already used 8-bit integers (INT8) to accelerate Super Resolution. Version 0.4.3 extends the approach to Ray Reconstruction and lets users choose precision- or performance-focused implementations for both.
The interesting part is that it can reduce the time the game spends rendering a frame in the first place. Higher frame rates before Frame Generation can benefit players who prefer to leave it off, too.
Ray Reconstruction takes about 4.9 ms less on an RTX 3080 Ti
The developer's dlssg_for_sm86 0.4.3 documentation includes results from a GeForce RTX 3080 Ti. The GPU clock was fixed, and data captured from actual games was replayed offline to measure AI processing time.
In a 4K path-traced scene, NVIDIA's 16-bit floating-point (FP16) implementation took 16.607 ms. The precision-focused Mixed mode took 12.255 ms, and Performance mode took 11.702 ms.
Performance mode cut processing time by about 29.5%, shaving about 4.9 ms off one Ray Reconstruction pass. Across the two measured scenes, AI processing was 1.41–1.42x as fast in performance mode and 1.34–1.36x as fast in precision mode.
The two optimized modes were about 0.55 ms apart. In this scene, precision mode delivered nearly 90% of the time savings of performance mode. Players who prioritize image quality have reason to try the speedup too.
Tuning Super Resolution for the GPU
In Super Resolution, performance mode recorded 1.57–1.60x AI processing speed with preset M and 1.64–1.77x with preset L. Precision mode reached 1.37–1.39x with M and 1.20–1.34x with L. All results are relative to NVIDIA's FP16 implementation on an RTX 3080 Ti. The maximum of 1.77x refers to the speed of one full inference pass.
When introducing DLSS 4.5 Super Resolution, NVIDIA explained that the RTX 20 and 30 series lack hardware support for 8-bit floating-point (FP8) math, making presets M and L more demanding on those cards. It recommended that users seeking a balance of image quality and speed consider staying with preset K.
The dlssg_for_sm86 developer created an implementation that runs some FP16 operations in INT8. Performance mode also uses distillation across several games and neural network pruning. Distillation trains one model to reproduce another model's behavior. Pruning removes parameters such as weights from a model. Both help trim the workload while preserving image quality.
Ampere-based RTX 30 cards also use a hardware feature called 2:4 structured sparsity. Two weights in every group of four consecutive values are set to zero, and calculations focus on the nonzero values. Super Resolution's performance mode applies the speedup to the model's core while keeping layers dense where they matter for details such as thin lines. Ray Reconstruction's performance mode speeds up input processing and post-processing while preserving precision in the core reconstruction stages.
For Turing-based RTX 20 models, the developer provides a dense implementation that processes zero-valued entries as well. The 0.4.3 documentation says some measurements of the new performance implementation on RTX 20 hardware are still pending. Hardware testing is needed to establish the size of the gains on those cards.
The automatic Super Resolution modes, precision-focused Auto-INT8 and performance-focused Auto-PERF, retain the game's original DLSS implementation for DLAA, Quality, and Balanced, among other settings. They use the optimized implementations of presets M and L for Performance and Ultra Performance, respectively. Users can also select a fixed preset.
How much faster do games actually run?
AI processing is only one part of a game's rendering pipeline. Even if Super Resolution runs up to 1.77x as fast, the frame-rate gain will be smaller when upscaling accounts for less of the rendering time and the other stages take as long as before.
With 4K resolution, DLSS Performance, ray tracing, and Ray Reconstruction enabled, the developer estimates that Cyberpunk 2077 and Phantom Blade Zero could gain about 7 fps without generated frames, an increase of about 15%. For Super Resolution, the developer cites a test scene in Phantom Blade Zero that went from 50 fps to about 55 fps.
In-game measurements in The Witcher 3 on a GeForce RTX 3070 went from 47.15 fps to 50.85 fps at 4K output with 1080p internal rendering, DLSS Performance, and preset M in precision mode. That was an increase of about 7.85% with Frame Generation disabled.
On October 14 (UTC), a GeForce RTX 3060 Laptop GPU user posted results from the older 0.4.0 release. In a static scene in PRAGMATA Sketchbook at 1440p, preset M in Quality mode went from 7.9 ms to 5.8 ms for Super Resolution, and the frame rate rose from 51.5 fps to 56.8 fps.
The test used different DLSS library versions with the optimization on and off, so the full difference can't be attributed to INT8. It's still worth noting that users observed lower processing times and higher frame rates with the earlier release.
A user with a 6 GB RTX 3060 reported about 10–15% higher average frame rates with INT8 Ray Reconstruction, along with steadier frame times and better texture loading.
The user said the game went from fluctuating below 30 fps to holding close to 30 fps. They used the quality-focused setting and said they saw no loss of image quality.
For people playing around 30 fps, steadier frame intervals and textures loading when needed can matter as much as a higher average frame rate.
Comparing image quality yourself
Performance mode can produce visual artifacts in scenes absent from the training data, on unusual materials, or under extreme lighting. The developer added a way to compare image quality as well as performance.
Assigning a comparison hotkey lets you switch between the optimized code and NVIDIA's FP16 implementation without restarting the game. It can also display GPU processing times in-game, so you can compare image quality and speed in the games you actually play.
On December 4, an RTX 3080 user tried Ray Reconstruction from 0.4.3 in Phantom Blade Zero and reported flickering lights and green specks in both precision and performance modes. The developer replied that they had also seen flickering with 621-series drivers and that it did not occur with 610.88 on their system.
On December 5, the reporter added that they had removed the driver, tried clean installs of 621.14 and 621.40, and recompiled shaders. They said the lighting flicker was greatly reduced and the green artifacts and crashes stopped. They concluded that 621.47 was the cause. When artifacts appear, it can help to check the driver and the behavior of NVIDIA's FP16 version as well as the effect of switching to INT8.
Distributions and requirements
Version 0.4.3 also consolidates the Ray Reconstruction compute kernels into one DLL, compresses files, and removes unnecessary files. The custom kernels for Super Resolution and Ray Reconstruction shrank from 295.3 MB to 30.8 MB, a reduction of about 89.6%.
The separate OptiScaler-NR-PreSR-MFG v0.10.5 distribution offers roughly 186 MB of optional libraries and other files needed for optimized Super Resolution and Ray Reconstruction. Without them, it uses the game's original DLSS. The standalone DLSS Unlocked package includes these files. The core package contains only the main DLL and configuration files. When components such as the Frame Generation module change, the developer recommends updating with the installer or the standalone package.
Accelerated Ray Reconstruction requires NVIDIA's R580 driver branch or later. At the time v0.10.5 was released, the developer said it had not been thoroughly tested across multiple games.
Frame Generation also has a performance mode that uses INT8 to speed up processing and reduce VRAM use. When the game starts generating frames for the first time in that mode, it may freeze or show a black screen for 20 to 35 seconds before recovering. The default is the quality-focused Quality mode.
The developer had not tested Super Resolution or Ray Reconstruction acceleration under Linux and Proton when v0.10.5 shipped. If CUDA verification fails, the optimizations disable themselves automatically. Frame Generation is unaffected.
DLSS Unlocked is an unofficial tool independent of NVIDIA. Its developer intends it for single-player and offline games and cautions against using it in multiplayer games or games with anti-cheat systems.
Software can change what an older GPU is worth
For owners of older GPUs, getting more out of features they already use matters alongside adding new ones. Saving a few milliseconds on upscaling can free that time for other rendering work.
The project is also an effort to adapt software to hardware that is already out there. On RTX 30 GPUs in particular, it taps structured sparsity that the hardware already supports.
More ways to keep using the GPU you already own are welcome. Unofficial code also leaves users with the work of checking compatibility and image quality for themselves. I'd like to see manufacturers offer these kinds of optimizations as official features.
