DLSS 5 neural rendering of the presented frame (DARNER_NR), off by default #80

Open
Chun11qing wants to merge 1 commit from Chun11qing/Darner:dlss5-neural-render into main
First-time contributor

Adds DLSS 5 neural rendering of the presented frame, through the community DLSS 5 Neural Render runtime (NGX feature 18) and its host bridge (dlssnr_host.dll). It is off unless asked for, and the bridge is not shipped.

What it is

A pass over a finished frame: the frame is read back, handed to the bridge, and uploaded again. It rebuilds detail and tone of what the title already drew; it is not a ray tracer and does not solve light. Because it is a post pass it asks nothing of the card's NGX features, so it runs on a card below the 50 series.

One call per frame, and why 1X-4X is not four of them

A second dlssnr_process over the same frame costs about ten times the first on this bridge - measured on an RTX 5070 Ti at 2560x1440: 27 ms for the first call, 341 ms for a second call over the same frame. Stacking passes is therefore not usable.

DARNER_NR=1..4 (F1: OFF / 1X / 2X / 3X / 4X) is one call with the network's own strength numbers multiplied - intensity, local tone, structure, skin structure. The upstream tool offers those uncapped and notes that extra passes add noise. Measured in one run: 32.5 ms in the network at 1X against 31.6 ms at 4X, the same figure within noise.

Standing aside

At the start of a run (district loading, a shader storm) the title's own frame is already far behind, and the pass would only deepen it: measured 3 frames a second while loading with the pass on. The pass now measures the title's own frame time (gap between presents less what the pass itself took) and, above 150 ms, steps out of the way until the title is on its feet. Logged both ways:

neural rendering: standing aside while the title is this far behind title_ms=489 held=1
neural rendering: back on as the title caught up held=7

Cost

RTX 5070 Ti, 2560x1440, Series S scene upscaled: 1-15 ms read-back (a wait for the card, so it grows with the scene) + 31-33 ms network + ~1 ms upload - roughly 33 ms light, 48 ms in a heavy district. It is a large share of a 30 ms frame, so the default is off.

Where it shows

  • F1 -> PICTURE: DLSS 5 NEURAL RENDER (off, 1X-4X) and its five numbers (intensity, structure, skin, local tone, style), all live.
  • locales/en.json and locales/zh-CN.json carry the new keys.
  • DARNER_NR* added to the launcher's KEPT list, so darner play no longer clears them.

What is not included

The bridge and runtime are third-party community builds: they are not in this repository and nothing downloads them. The pass looks for dlssnr_host.dll / nvngx_dlssnr.dll beside darner.exe, in a dlss5/ folder beside it, or at DARNER_NR_HOST / DARNER_NR_RUNTIME. Without them it stays off and says what it looked for, once, in the log. Only an 8-bit back buffer (R8G8B8A8 / B8G8R8A8) is handed over; any other format leaves the pass off rather than guess.

docs/dlss.md has the switches, the placements and the measurements.

Tested on Windows 11, RTX 5070 Ti, driver 616.64, Xbox Series S profile with the native 1440p output, DLSS performance, frame generation 6X: the pass runs, every row changes the picture live, and a failed bridge call falls back to the title's own frame without stopping the game.

Adds DLSS 5 neural rendering of the presented frame, through the community DLSS 5 Neural Render runtime (NGX feature 18) and its host bridge (`dlssnr_host.dll`). It is off unless asked for, and the bridge is not shipped. ## What it is A pass over a *finished* frame: the frame is read back, handed to the bridge, and uploaded again. It rebuilds detail and tone of what the title already drew; it is not a ray tracer and does not solve light. Because it is a post pass it asks nothing of the card's NGX features, so it runs on a card below the 50 series. ## One call per frame, and why 1X-4X is not four of them A second `dlssnr_process` over the same frame costs about ten times the first on this bridge - measured on an RTX 5070 Ti at 2560x1440: **27 ms for the first call, 341 ms for a second call over the same frame**. Stacking passes is therefore not usable. `DARNER_NR=1..4` (F1: `OFF / 1X / 2X / 3X / 4X`) is one call with the network's own strength numbers multiplied - intensity, local tone, structure, skin structure. The upstream tool offers those uncapped and notes that extra passes add noise. Measured in one run: **32.5 ms in the network at 1X against 31.6 ms at 4X**, the same figure within noise. ## Standing aside At the start of a run (district loading, a shader storm) the title's own frame is already far behind, and the pass would only deepen it: measured 3 frames a second while loading with the pass on. The pass now measures the title's own frame time (gap between presents less what the pass itself took) and, above 150 ms, steps out of the way until the title is on its feet. Logged both ways: ``` neural rendering: standing aside while the title is this far behind title_ms=489 held=1 neural rendering: back on as the title caught up held=7 ``` ## Cost RTX 5070 Ti, 2560x1440, Series S scene upscaled: 1-15 ms read-back (a wait for the card, so it grows with the scene) + 31-33 ms network + ~1 ms upload - roughly 33 ms light, 48 ms in a heavy district. It is a large share of a 30 ms frame, so the default is **off**. ## Where it shows - F1 -> PICTURE: `DLSS 5 NEURAL RENDER` (off, 1X-4X) and its five numbers (intensity, structure, skin, local tone, style), all live. - `locales/en.json` and `locales/zh-CN.json` carry the new keys. - `DARNER_NR*` added to the launcher's `KEPT` list, so `darner play` no longer clears them. ## What is not included The bridge and runtime are third-party community builds: they are not in this repository and nothing downloads them. The pass looks for `dlssnr_host.dll` / `nvngx_dlssnr.dll` beside `darner.exe`, in a `dlss5/` folder beside it, or at `DARNER_NR_HOST` / `DARNER_NR_RUNTIME`. Without them it stays off and says what it looked for, once, in the log. Only an 8-bit back buffer (`R8G8B8A8` / `B8G8R8A8`) is handed over; any other format leaves the pass off rather than guess. `docs/dlss.md` has the switches, the placements and the measurements. Tested on Windows 11, RTX 5070 Ti, driver 616.64, Xbox Series S profile with the native 1440p output, DLSS performance, frame generation 6X: the pass runs, every row changes the picture live, and a failed bridge call falls back to the title's own frame without stopping the game.
The community DLSS 5 Neural Render runtime (NGX feature 18) through its host
bridge (dlssnr_host.dll): the finished frame is read back, handed over, and
uploaded again. It is a pass over a done frame, not a ray tracer, and it asks
nothing of the card's own NGX features, so a card below the 50 series runs it.

One call per frame. A second call over the same frame costs ten times the
first on this bridge (measured: 27 ms against 341 ms), so DARNER_NR=1..4 is
not one to four passes: it multiplies the network's own strength numbers and
makes the single call. Measured 32.5 ms at 1X against 31.6 ms at 4X, the same
figure within noise.

While the title is far behind -- a district loading, a shader storm at the
start -- the pass steps aside until the title's own frame is back under
150 ms, so a start is not made slower still. The log says when it does, and
when it comes back.

F1 has DLSS 5 NEURAL RENDER (off, 1X to 4X) and its five numbers on the
PICTURE page, live, in English and Simplified Chinese.

Off by default: at 1440p it is 33 to 48 ms of a frame. The bridge is not part
of this repository and is not downloaded; without it the pass stays off and
says so once in the log. Only an 8-bit back buffer is handed over.

docs/dlss.md has the switches, the placements it looks in, and the numbers.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'dlss5-neural-render:Chun11qing-dlss5-neural-render'
git switch 'Chun11qing-dlss5-neural-render'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'Chun11qing-dlss5-neural-render'
git switch 'Chun11qing-dlss5-neural-render'
git rebase 'main'
git switch 'main'
git merge --ff-only 'Chun11qing-dlss5-neural-render'
git switch 'Chun11qing-dlss5-neural-render'
git rebase 'main'
git switch 'main'
git merge --no-ff 'Chun11qing-dlss5-neural-render'
git switch 'main'
git merge --squash 'Chun11qing-dlss5-neural-render'
git switch 'main'
git merge --ff-only 'Chun11qing-dlss5-neural-render'
git switch 'main'
git merge 'Chun11qing-dlss5-neural-render'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!80
No description provided.