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

Closed
CristianCiubancan wants to merge 0 commits from upstream-pr/2223 into main
CristianCiubancan commented 2026-11-29 10:42:46 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CristianCiubancan on 2026-11-29T10:42:46Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5549932697 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2223). Originally posted by [CristianCiubancan](https://github.com/CristianCiubancan) on 2026-11-29T10:42:46Z. --- 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)
CristianCiubancan commented 2026-11-29 10:59:41 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CristianCiubancan on 2026-11-29T10:59:41Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7254806422 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2223#issuecomment-7254806422). Originally posted by [CristianCiubancan](https://github.com/CristianCiubancan) on 2026-11-29T10:59:41Z. --- 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 commented 2026-11-29 16:02:35 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CristianCiubancan on 2026-11-29T16:02:35Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7258570223 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2223#issuecomment-7258570223). Originally posted by [CristianCiubancan](https://github.com/CristianCiubancan) on 2026-11-29T16:02:35Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA!2223
No description provided.