DLSS at night: coloured fringes at dark edges against water reduced by about 92 %: the exposure is measured from the scene (#2117) #2223

Closed
github-bot wants to merge 0 commits from github-bot/gh-2223 into main AGit
Owner

@⁠CristianCiubancan on GitHub · 2026-11-29 10:42 UTC · original
CristianCiubancan:fix/dlss-exposure → main · +378 −2 · 2 files · 1 commits · closed without merging

For #2117. It reduces the fault by about 92 %; it does not remove it, so the issue should stay open.

What it changes

At night, DLSS draws saturated blue, pink, orange and green fringes on dark foliage and shorelines against water (#2117). The inputs DLSS gets are right: colour, depth, motion vectors (leaves carry their own motion) and jitter (18 positions within half a pixel) were all checked. The title passes no exposure, so DLSS used its own automatic exposure, and on this title's night scenes (colour about 0.005, about 5 by day) that goes wrong.

With this, where the title gives no exposure:

  • each upscaling copies a 16x9 grid of single texels of the colour into a read-back buffer (144 CopyTextureRegion calls and two transitions on the title's list; no shader, no descriptor heap, none of the list's state touched);
  • a few upscalings later the CPU takes their log-average luminance, which a few lamp pixels of thousands move little;
  • DLSS runs with use_auto_exposure off and the exposure_scale that brings that average to a grey of 0.25, moved a tenth of the way in stops per upscaling.

VICTORY_DLSS_EXPOSURE=0 leaves DLSS its own exposure; a number is another grey. Until the first measurement is back, and for a colour format other than R16G16B16A16_FLOAT, DLSS's own exposure is used as before. The report line "DLSS per frame" shows the scale.

How it was tested

  • GPU and profile: RTX 5070 Ti 16 GB, driver 610.88, Windows 11. Series X, 2560x1440, DLSS Quality, frame generation off, ray tracing off. main 829188e9.
  • Method: camera still, one recorded frame per setting, old and new alternating through a local live switch; strongly coloured pixels counted in the final picture.
  • Night, shore scenes:
Scene DLSS's own exposure This, grey 0.25
bushes at the waterline, run 2 2,446 and 2,561 168 and 142
the same shore, another view 2,258 and 2,745 207 and 189

Other greys on the first of them: 0.15 left 265, 0.35 left 318 with white sparkles beginning, 0.5 left 453 to 641 with more sparkles. The measured scale was 86 to 96 there.

  • Day, one scene, two takes each: no difference beyond that between takes (mean edge strength of a tree against the sky 24.3 and 23.6 before, 23.5 and 24.4 after; of ground foliage 19.2 and 19.7 before, 19.4 and 19.9 after). The scale was about 0.05.
  • For shader changes, the wave sizes tested: not a shader change.
  • cargo test passed for the crates it touches: yes (victory-gpu, 921 passed with --test-threads=1, six of them new).

Not tested: frame generation, Series S, other DLSS modes and presets, cutscenes, and whether the gradual change of the scale is visible when the scene's brightness changes quickly. About 8 % of the fringes remain; my guess, not shown, is water, which has no motion vectors of its own.

Picture (the same bushes at night, old and new alternating): added below.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: none found for DLSS exposure.

🤖 Generated with Claude Code

**@⁠CristianCiubancan** on GitHub · 2026-11-29 10:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2223) `CristianCiubancan:fix/dlss-exposure` → `main` · +378 −2 · 2 files · 1 commits · closed without merging For #2117. It reduces the fault by about 92 %; it does not remove it, so the issue should stay open. ## What it changes At night, DLSS draws saturated blue, pink, orange and green fringes on dark foliage and shorelines against water (#2117). The inputs DLSS gets are right: colour, depth, motion vectors (leaves carry their own motion) and jitter (18 positions within half a pixel) were all checked. The title passes no exposure, so DLSS used its own automatic exposure, and on this title's night scenes (colour about 0.005, about 5 by day) that goes wrong. With this, where the title gives no exposure: - each upscaling copies a 16x9 grid of single texels of the colour into a read-back buffer (144 CopyTextureRegion calls and two transitions on the title's list; no shader, no descriptor heap, none of the list's state touched); - a few upscalings later the CPU takes their log-average luminance, which a few lamp pixels of thousands move little; - DLSS runs with `use_auto_exposure` off and the `exposure_scale` that brings that average to a grey of 0.25, moved a tenth of the way in stops per upscaling. `VICTORY_DLSS_EXPOSURE=0` leaves DLSS its own exposure; a number is another grey. Until the first measurement is back, and for a colour format other than R16G16B16A16_FLOAT, DLSS's own exposure is used as before. The report line "DLSS per frame" shows the scale. ## How it was tested - GPU and profile: RTX 5070 Ti 16 GB, driver 610.88, Windows 11. Series X, 2560x1440, DLSS Quality, frame generation off, ray tracing off. main 829188e9. - Method: camera still, one recorded frame per setting, old and new alternating through a local live switch; strongly coloured pixels counted in the final picture. - Night, shore scenes: | Scene | DLSS's own exposure | This, grey 0.25 | |---|---|---| | bushes at the waterline, run 2 | 2,446 and 2,561 | 168 and 142 | | the same shore, another view | 2,258 and 2,745 | 207 and 189 | Other greys on the first of them: 0.15 left 265, 0.35 left 318 with white sparkles beginning, 0.5 left 453 to 641 with more sparkles. The measured scale was 86 to 96 there. - Day, one scene, two takes each: no difference beyond that between takes (mean edge strength of a tree against the sky 24.3 and 23.6 before, 23.5 and 24.4 after; of ground foliage 19.2 and 19.7 before, 19.4 and 19.9 after). The scale was about 0.05. - For shader changes, the wave sizes tested: not a shader change. - `cargo test` passed for the crates it touches: yes (victory-gpu, 921 passed with `--test-threads=1`, six of them new). Not tested: frame generation, Series S, other DLSS modes and presets, cutscenes, and whether the gradual change of the scale is visible when the scene's brightness changes quickly. About 8 % of the fringes remain; my guess, not shown, is water, which has no motion vectors of its own. Picture (the same bushes at night, old and new alternating): added below. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: none found for DLSS exposure. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The title's upscaling runs with automatic exposure, and so did DLSS in its
place. On night scenes (the colour DLSS gets is about 0.005 there, about 5
by day) dark edges against water came out with saturated fringes (#2117).
With DLSS's automatic exposure off and a scale that brings the scene to
mid-grey they mostly go.

A 16x9 grid of single texels of the colour is copied into a read-back
buffer each upscaling and read a few upscalings later; DLSS is given the
scale that brings their log-average to 0.25, a tenth of the way in stops
per upscaling. No shader and no state of the title's list is involved.
VICTORY_DLSS_EXPOSURE=0 leaves DLSS its own exposure; a number is another
grey. An exposure texture from the title still takes precedence.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 10:44:38 +00:00
Author
Owner

@⁠CristianCiubancan on GitHub · 2026-11-29 10:59 UTC · original

Hold this: in deep night (23:00) the scale goes to about 250 and the fringes come back. A ceiling is being tested; an update follows.

**@⁠CristianCiubancan** on GitHub · 2026-11-29 10:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2223#issuecomment-7254806422) Hold this: in deep night (23:00) the scale goes to about 250 and the fringes come back. A ceiling is being tested; an update follows.
github-bot closed this pull request 2026-11-29 16:04:29 +00:00
Author
Owner

@⁠CristianCiubancan on GitHub · 2026-11-29 16:02 UTC · original

Closing this: the cause is not DLSS's exposure.

The coloured noise this PR reduces is already in the scene colour before any upscaler runs, and it is there with DLSS off too. It is #1976: with VICTORY_ALIAS_TARGETS=0 it is gone on this card (RTX 5070 Ti, driver 610.88), measurement in #1976. The exposure scale only hid it by overexposing DLSS's input, at the cost of a dimmer picture.

Two things in the description were also wrong. For the default model at quality (preset K), use_auto_exposure on or off gives byte-identical output when no exposure texture is tagged, so "automatic exposure off" changed nothing; exposure_scale multiplies DLSS's own exposure of the network's input. Sorry for the noise.

**@⁠CristianCiubancan** on GitHub · 2026-11-29 16:02 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2223#issuecomment-7258570223) Closing this: the cause is not DLSS's exposure. The coloured noise this PR reduces is already in the scene colour before any upscaler runs, and it is there with DLSS off too. It is #1976: with `VICTORY_ALIAS_TARGETS=0` it is gone on this card (RTX 5070 Ti, driver 610.88), measurement in #1976. The exposure scale only hid it by overexposing DLSS's input, at the cost of a dimmer picture. Two things in the description were also wrong. For the default model at quality (preset K), `use_auto_exposure` on or off gives byte-identical output when no exposure texture is tagged, so "automatic exposure off" changed nothing; `exposure_scale` multiplies DLSS's own exposure of the network's input. Sorry for the noise.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
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
github/trustno1-coder--VIctory-NVIDIA!2223
No description provided.