fix(vk): DLSS Frame Generation through Streamline is given the picture from before the HUD (#1075) #3202

Merged
HumanBean merged 5 commits from pmwork-personal/Longshot:fix/dlssg-sl-hudless into main 2026-12-05 02:31:30 +00:00
Member

Summary

#2933 gave NVIDIA DLSS Frame Generation through NGX the picture from before the HUD, so the frames it makes leave the
hearts, the minimap and its arrow, and the button prompts where they are (#1075). DLSS FG through NVIDIA Streamline
(#2456) did not get it: Streamline's DLSS-G makes its frames from the swapchain image, the HUD in it, and can move the
HUD with the scene. Jiro113 asked for the same here.

Streamline takes a HUD-less colour (kBufferTypeHUDLessColor), and its guide wants it in the swapchain image's own
form: the same size or extent, colour space and post-processing. This gives it that:

  • The copy before the HUD (framegen_hud_before, HumanBean's, as for FSR 3.1 and NGX) is also made while Streamline's
    DLSS-G makes the frames, and do_present makes the picture's sampled view for it where its own present needs none
    (SDR at the window's size).
  • At each game frame's present, after the picture's own copy into the swapchain image, framegen_hudless_for_dlssg
    copies the frame's crop into an image of its own, makes the HUD-less picture from it with the passes NGX's uses
    (hud_source; in Native HDR hudless_pq), then takes it the way the picture just went: the window's scale pass, the
    HDR pass, into the picture's place in an image of the swapchain's size and format (black beside it, as the bars).
  • dlssg_hudless tags it on the frame's token with eOnlyValidNow, so Streamline copies it in the present's command
    buffer, with the back buffer's extent (told again with it, as the two must be the same). A game frame without one (a
    menu, a movie, a reduced Output resolution, a mod's output effect on the picture, which would run twice a present, an
    sRGB view of the picture, the Insert menu open) removes the tag, so last frame's is not used, and while the present
    cannot use a copy none is made; the picture's size is still kept then, so a size changed meanwhile (the Output
    resolution back to full) is seen when that ends.
  • The painter's overlays (the FPS counter, mod windows) are drawn after it and are not in it, so DLSS-G keeps them in
    place too.
  • RX_VK_DLSSG_HUDLESS=0 gives the swapchain image alone, as before. UI recomposition (kBufferTypeUIAlpha) is not
    asked: a follow-up if the HUD-less picture alone is not enough.

On the RTX 5090 here, main's Streamline DLSS-G already kept the minimap and the hearts in place in the frames it made
(Testing), as #2933 found for NGX. So this gives DLSS-G the input Streamline asks for, with no harm seen and a small cost
(Measurements); whether it removes a smear on other GPUs needs those GPUs (Still to test).

Read first: gpu/vk/vk_framegen.cpp framegen_hudless_for_dlssg, then gpu/vk/vk_dlssg.cpp dlssg_hudless, then
gpu/vk/vk_replay.cpp present_image_with_trial (the call) and do_present (the view), then
tests/test_dlssg_hudless.py (the Streamline part).

See #1075.

Testing

Tested:

  • Checks: tests/test_dlssg_hudless.py runs the real framegen_hud_before, hud_source, hudless_pq and
    framegen_hudless_for_dlssg with spies for Vulkan and the present's passes, with Streamline making the frames: the
    copy before the HUD made; the HUD-less picture made from a frame copy of its own, then through the scale pass (and in
    HDR the HDR pass, with or without the scale pass) into the picture's place in an image of the swapchain's size and
    format, black beside bars; the usual SDR present without the scale pass; a crop at an offset; none without a copy
    since, with no view, with DLSS-G paused or not asked, with the Insert menu open, or with a mod's output effect on, and
    that copy never taken by a later present; the copies and the HUD-less picture back after a reduced Output resolution
    is turned off, and after the picture's size changed while an output effect was on (each fails on a6805b86); Native HDR's 10-bit copy encoded under the HUD; RX_VK_DLSSG_HUDLESS=0 (a
    run of its own). It fails on main a87eb850 ("Streamline's DLSS-G making the frames: the picture is not copied before
    the game draws its HUD") and passes here. tests/test_dlssg.py checks the tag (the HUD-less buffer, eOnlyValidNow
    in the present's command buffer, the back buffer's extent with it, sl::Extent's field order, the tag removed when
    none), its place in the present, and do_present's view. The fixtures that cut hud_source or the present follow
    the new arguments and calls.
  • The whole suite (tests/run_all.py, Windows, llvm-mingw, 8 at once): main a87eb850 835 passed, 10 failed, 59 skipped;
    this branch (efbace64) 840 passed and the same 10 failures (test_dlssg, test_no_game_title, test_parity_gates, test_present_acquire_ahead,
    test_present_geometry_trace, test_present_held_image, test_present_image_free, test_sync_watch_event,
    test_turf_budget, test_ui_renderer), none only here (test_present_aspect and test_present_aspect_vulkan pass
    with the stand-ins added). test_dlssg fails on main at "vk_draw.cpp reads the Upscaler row's setting"; its other
    checks, the new ones among them, pass here. The renderer builds with DLSS and Streamline (dev.py vk), no warnings.
  • In the game: Windows 11, RTX 5090, driver 621.47, Streamline 2.14.16 (NVIDIA's OTA plugins), DLAA, DLSS FG 3x through
    Streamline, the Graveyard (the minimap and the hearts on screen), the camera turned by the control bridge, the screen
    recorded (ffmpeg's Desktop Duplication: a 2138x900 window, as in fullscreen it sees only a few of a game's frames),
    the window in front (Streamline pauses DLSS-G while it is not: the counter then says 60 FPS, Base 60).
    • This PR, SDR: the counter at 180 FPS (Base 60, DLSS FG); the log's vk: Streamline DLSS Frame Generation: given the picture from before the HUD (HUD-less colour, ...), then of the last 600 game presents 600 with DLSS-G on, 600 of them given the HUD-less picture, nothing refused. Over the 24 recorded frames with the most camera motion
      the minimap stays in place, its edges clean, the floor moving behind it; only the view cone turns.
    • Main's path (RX_VK_DLSSG_HUDLESS=0), SDR: DLSS-G made frames too (91 FPS at that moment); the minimap the same:
      in place, edges clean.
    • This PR, Native HDR (paper white 400): 180 FPS; Native HDR: the HUD-less picture under the HUD encoded as HDR10 (PQ of Rec. 2020 at paper white 400 nits), the HUD-less picture in the HDR10 swapchain's format, 600 of 600, none
      refused; the minimap and the hearts in place with no edge or colour step.

Still to test:

  • Windows, an RTX 40 or another GPU where the HUD smeared under DLSS FG through Streamline, Streamline's runtime beside
    the game: turn the camera by the minimap and the hearts with RX_VK_DLSSG_HUDLESS=0 and without, expecting the HUD in
    place without it and the 600-present line counting the HUD-less picture (by hand, Streamline's runtime beside the
    game)
  • Windows, fullscreen at the screen's size, the game in front: the same check (by hand)

Measurements

Verdict: with Streamline's DLSS-G making frames (the game window in front), the HUD-less picture costs about
0.7 ms a game frame at 5120x2160 (median 14.66 against 13.98 ms, 68.4 against 71.6 fps: -4.5 %), every run with it
below every run without, and about 0.4 GiB of VRAM (+398 MiB of the game's dedicated memory), about what its images give
(nine of 42 MiB at this size). On this GPU main's path already keeps the HUD in place, so here it is cost without a seen
gain. RX_VK_DLSSG_HUDLESS ships on, as RX_VK_DLSS_FG_HUDLESS does for NGX (#2933): DLSS-G gets the input
Streamline's guide asks for, for the GPUs and scenes where the HUD smears; =0 turns it off.

Setup: Windows 11, RTX 5090, driver 621.47, Streamline 2.14.16; dev.py ab --env RX_VK_DLSSG_HUDLESS=0 --framegen --set HOS_WINDOW_NOACTIVATE=0 --warmup 40 (one build, the switch set against unset; HOS_WINDOW_NOACTIVATE=0 so each
game window opens in front, as Streamline pauses DLSS-G while it is not); fullscreen 5120x2160, DLAA, DLSS FG 3x through Streamline, Native HDR (paper white 400), uncapped, V-Sync off; Hyrule Field (child);
60 s each after at least 40 s of warm-up, A, B interleaved, three each, nobody at the PC. Each run's window was in front
from before its measured 60 s to its end (the game log's hid: game window ... lines; in the three runs whose
Streamline sl.log was kept, DLSS-G enabled before the span and no pause in it). VRAM: Windows' per-process counter
(GPU Process Memory, Dedicated Usage) every 3 s, the median over each run's measured 60 s.

Before: main @ 46ae5b43 (main's path: RX_VK_DLSSG_HUDLESS=0, in this PR's build) After: this PR @ efbace64
fps (each run; median) 71.4 / 72.2 / 71.6 (71.6) 66.8 / 68.4 / 69.5 (68.4)
median frame time 13.98 ms 14.66 ms
p99 frame time 16.20 ms 16.66 ms
1% low fps 61.7 60.0
the game's dedicated VRAM (each run; median) 13129 / 13193 / 13396 MiB (13193) 13618 / 13590 / 13510 MiB (13590)
test_dlssg_hudless.py (Streamline part; main @ a87eb850) fails: no copy before the HUD passes

Earlier, with DLSS-G paused (that A/B's windows opened behind; a 2138x900 window, SDR, DLAA, on main
a87eb850): 8.88 against 9.11 ms median, about 0.2 ms, the passes alone at about a sixth of the pixels.

Risks

  • Under Streamline only (dlssg_active(), DLSS-G making frames); NGX's, FSR 3.1's and the renderer's own frame
    generation run as before (hud_source takes the frame as a view and format now; its passes are the same).
  • Cost while DLSS-G makes frames through Streamline: the HUD copies as for NGX, plus a frame copy (4 bytes a pixel) and
    an image of the swapchain's size (4 bytes a pixel); per frame a copy pass, the mask pass, the scale and HDR passes
    again, a blit, and Streamline's own copy: about 0.7 ms a game frame and 0.4 GiB at 5120x2160 (Measurements).
  • Not given (the tag removed, as before this): a mod's output effect on the picture, an sRGB view of the picture, the
    Insert menu open, a reduced Output resolution. Where a crop of the picture is scaled, the HUD-less copy is scaled
    from its crop alone, so the 1 to 3 pixels along the picture's edges can differ from the swapchain image's (DLSS-G
    keeps them in place, as HUD).
  • Off: RX_VK_DLSSG_HUDLESS=0 (a revert is enough too). Nothing changes in saves or settings.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows: the renderer with DLSS and
    Streamline; Linux: CI's renderer build, on the push)
  • Screenshots of the same spot on main and here, for a change that shows on screen. (main's path by its switch,
    in a comment)
  • Docs updated. (docs/dev/reference/upscalers.md: DLSS FG through Streamline, The HUD)
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

Credit: Jiro113 (DLSS FG through Streamline, #2456, and the ask), HumanBean (the HUD copies and HUD-less colour for FSR
3.1, #1103, #1464, #1487, #1538, which #2933 and this hand to DLSS-G).

Co-Authored-By: Claude Opus 5.5 [email protected]

🤖 Generated with Claude Code

## Summary #2933 gave NVIDIA DLSS Frame Generation through NGX the picture from before the HUD, so the frames it makes leave the hearts, the minimap and its arrow, and the button prompts where they are (#1075). DLSS FG through NVIDIA Streamline (#2456) did not get it: Streamline's DLSS-G makes its frames from the swapchain image, the HUD in it, and can move the HUD with the scene. Jiro113 asked for the same here. Streamline takes a HUD-less colour (`kBufferTypeHUDLessColor`), and its guide wants it in the swapchain image's own form: the same size or extent, colour space and post-processing. This gives it that: - The copy before the HUD (`framegen_hud_before`, HumanBean's, as for FSR 3.1 and NGX) is also made while Streamline's DLSS-G makes the frames, and `do_present` makes the picture's sampled view for it where its own present needs none (SDR at the window's size). - At each game frame's present, after the picture's own copy into the swapchain image, `framegen_hudless_for_dlssg` copies the frame's crop into an image of its own, makes the HUD-less picture from it with the passes NGX's uses (`hud_source`; in Native HDR `hudless_pq`), then takes it the way the picture just went: the window's scale pass, the HDR pass, into the picture's place in an image of the swapchain's size and format (black beside it, as the bars). - `dlssg_hudless` tags it on the frame's token with `eOnlyValidNow`, so Streamline copies it in the present's command buffer, with the back buffer's extent (told again with it, as the two must be the same). A game frame without one (a menu, a movie, a reduced Output resolution, a mod's output effect on the picture, which would run twice a present, an sRGB view of the picture, the Insert menu open) removes the tag, so last frame's is not used, and while the present cannot use a copy none is made; the picture's size is still kept then, so a size changed meanwhile (the Output resolution back to full) is seen when that ends. - The painter's overlays (the FPS counter, mod windows) are drawn after it and are not in it, so DLSS-G keeps them in place too. - `RX_VK_DLSSG_HUDLESS=0` gives the swapchain image alone, as before. UI recomposition (`kBufferTypeUIAlpha`) is not asked: a follow-up if the HUD-less picture alone is not enough. On the RTX 5090 here, main's Streamline DLSS-G already kept the minimap and the hearts in place in the frames it made (Testing), as #2933 found for NGX. So this gives DLSS-G the input Streamline asks for, with no harm seen and a small cost (Measurements); whether it removes a smear on other GPUs needs those GPUs (Still to test). Read first: `gpu/vk/vk_framegen.cpp` `framegen_hudless_for_dlssg`, then `gpu/vk/vk_dlssg.cpp` `dlssg_hudless`, then `gpu/vk/vk_replay.cpp` `present_image_with_trial` (the call) and `do_present` (the view), then `tests/test_dlssg_hudless.py` (the Streamline part). See #1075. ## Testing **Tested:** - Checks: `tests/test_dlssg_hudless.py` runs the real `framegen_hud_before`, `hud_source`, `hudless_pq` and `framegen_hudless_for_dlssg` with spies for Vulkan and the present's passes, with Streamline making the frames: the copy before the HUD made; the HUD-less picture made from a frame copy of its own, then through the scale pass (and in HDR the HDR pass, with or without the scale pass) into the picture's place in an image of the swapchain's size and format, black beside bars; the usual SDR present without the scale pass; a crop at an offset; none without a copy since, with no view, with DLSS-G paused or not asked, with the Insert menu open, or with a mod's output effect on, and that copy never taken by a later present; the copies and the HUD-less picture back after a reduced Output resolution is turned off, and after the picture's size changed while an output effect was on (each fails on a6805b86); Native HDR's 10-bit copy encoded under the HUD; `RX_VK_DLSSG_HUDLESS=0` (a run of its own). It fails on main a87eb850 ("Streamline's DLSS-G making the frames: the picture is not copied before the game draws its HUD") and passes here. `tests/test_dlssg.py` checks the tag (the HUD-less buffer, `eOnlyValidNow` in the present's command buffer, the back buffer's extent with it, sl::Extent's field order, the tag removed when none), its place in the present, and `do_present`'s view. The fixtures that cut `hud_source` or the present follow the new arguments and calls. - The whole suite (`tests/run_all.py`, Windows, llvm-mingw, 8 at once): main a87eb850 835 passed, 10 failed, 59 skipped; this branch (efbace64) 840 passed and the same 10 failures (`test_dlssg`, `test_no_game_title`, `test_parity_gates`, `test_present_acquire_ahead`, `test_present_geometry_trace`, `test_present_held_image`, `test_present_image_free`, `test_sync_watch_event`, `test_turf_budget`, `test_ui_renderer`), none only here (`test_present_aspect` and `test_present_aspect_vulkan` pass with the stand-ins added). `test_dlssg` fails on main at "vk_draw.cpp reads the Upscaler row's setting"; its other checks, the new ones among them, pass here. The renderer builds with DLSS and Streamline (`dev.py vk`), no warnings. - In the game: Windows 11, RTX 5090, driver 621.47, Streamline 2.14.16 (NVIDIA's OTA plugins), DLAA, DLSS FG 3x through Streamline, the Graveyard (the minimap and the hearts on screen), the camera turned by the control bridge, the screen recorded (ffmpeg's Desktop Duplication: a 2138x900 window, as in fullscreen it sees only a few of a game's frames), the window in front (Streamline pauses DLSS-G while it is not: the counter then says 60 FPS, Base 60). - This PR, SDR: the counter at 180 FPS (Base 60, DLSS FG); the log's `vk: Streamline DLSS Frame Generation: given the picture from before the HUD (HUD-less colour, ...)`, then `of the last 600 game presents 600 with DLSS-G on, 600 of them given the HUD-less picture`, nothing refused. Over the 24 recorded frames with the most camera motion the minimap stays in place, its edges clean, the floor moving behind it; only the view cone turns. - Main's path (`RX_VK_DLSSG_HUDLESS=0`), SDR: DLSS-G made frames too (91 FPS at that moment); the minimap the same: in place, edges clean. - This PR, Native HDR (paper white 400): 180 FPS; `Native HDR: the HUD-less picture under the HUD encoded as HDR10 (PQ of Rec. 2020 at paper white 400 nits)`, the HUD-less picture in the HDR10 swapchain's format, 600 of 600, none refused; the minimap and the hearts in place with no edge or colour step. **Still to test:** - Windows, an RTX 40 or another GPU where the HUD smeared under DLSS FG through Streamline, Streamline's runtime beside the game: turn the camera by the minimap and the hearts with `RX_VK_DLSSG_HUDLESS=0` and without, expecting the HUD in place without it and the 600-present line counting the HUD-less picture (by hand, Streamline's runtime beside the game) - Windows, fullscreen at the screen's size, the game in front: the same check (by hand) ## Measurements **Verdict:** with Streamline's DLSS-G making frames (the game window in front), the HUD-less picture costs about 0.7 ms a game frame at 5120x2160 (median 14.66 against 13.98 ms, 68.4 against 71.6 fps: -4.5 %), every run with it below every run without, and about 0.4 GiB of VRAM (+398 MiB of the game's dedicated memory), about what its images give (nine of 42 MiB at this size). On this GPU main's path already keeps the HUD in place, so here it is cost without a seen gain. `RX_VK_DLSSG_HUDLESS` ships on, as `RX_VK_DLSS_FG_HUDLESS` does for NGX (#2933): DLSS-G gets the input Streamline's guide asks for, for the GPUs and scenes where the HUD smears; `=0` turns it off. Setup: Windows 11, RTX 5090, driver 621.47, Streamline 2.14.16; `dev.py ab --env RX_VK_DLSSG_HUDLESS=0 --framegen --set HOS_WINDOW_NOACTIVATE=0 --warmup 40` (one build, the switch set against unset; `HOS_WINDOW_NOACTIVATE=0` so each game window opens in front, as Streamline pauses DLSS-G while it is not); fullscreen 5120x2160, DLAA, DLSS FG 3x through Streamline, Native HDR (paper white 400), uncapped, V-Sync off; Hyrule Field (child); 60 s each after at least 40 s of warm-up, A, B interleaved, three each, nobody at the PC. Each run's window was in front from before its measured 60 s to its end (the game log's `hid: game window ...` lines; in the three runs whose Streamline `sl.log` was kept, DLSS-G enabled before the span and no pause in it). VRAM: Windows' per-process counter (GPU Process Memory, Dedicated Usage) every 3 s, the median over each run's measured 60 s. | | Before: main @ 46ae5b43 (main's path: `RX_VK_DLSSG_HUDLESS=0`, in this PR's build) | After: this PR @ efbace64 | |---|---|---| | fps (each run; median) | 71.4 / 72.2 / 71.6 (71.6) | 66.8 / 68.4 / 69.5 (68.4) | | median frame time | 13.98 ms | 14.66 ms | | p99 frame time | 16.20 ms | 16.66 ms | | 1% low fps | 61.7 | 60.0 | | the game's dedicated VRAM (each run; median) | 13129 / 13193 / 13396 MiB (13193) | 13618 / 13590 / 13510 MiB (13590) | | `test_dlssg_hudless.py` (Streamline part; main @ a87eb850) | fails: no copy before the HUD | passes | Earlier, with DLSS-G paused (that A/B's windows opened behind; a 2138x900 window, SDR, DLAA, on main a87eb850): 8.88 against 9.11 ms median, about 0.2 ms, the passes alone at about a sixth of the pixels. ## Risks - Under Streamline only (`dlssg_active()`, DLSS-G making frames); NGX's, FSR 3.1's and the renderer's own frame generation run as before (`hud_source` takes the frame as a view and format now; its passes are the same). - Cost while DLSS-G makes frames through Streamline: the HUD copies as for NGX, plus a frame copy (4 bytes a pixel) and an image of the swapchain's size (4 bytes a pixel); per frame a copy pass, the mask pass, the scale and HDR passes again, a blit, and Streamline's own copy: about 0.7 ms a game frame and 0.4 GiB at 5120x2160 (Measurements). - Not given (the tag removed, as before this): a mod's output effect on the picture, an sRGB view of the picture, the Insert menu open, a reduced Output resolution. Where a crop of the picture is scaled, the HUD-less copy is scaled from its crop alone, so the 1 to 3 pixels along the picture's edges can differ from the swapchain image's (DLSS-G keeps them in place, as HUD). - Off: `RX_VK_DLSSG_HUDLESS=0` (a revert is enough too). Nothing changes in saves or settings. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows: the renderer with DLSS and Streamline; Linux: CI's renderer build, on the push) - [x] Screenshots of the same spot on `main` and here, for a change that shows on screen. (main's path by its switch, in a comment) - [x] Docs updated. (`docs/dev/reference/upscalers.md`: DLSS FG through Streamline, **The HUD**) - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. Credit: Jiro113 (DLSS FG through Streamline, #2456, and the ask), HumanBean (the HUD copies and HUD-less colour for FSR 3.1, #1103, #1464, #1487, #1538, which #2933 and this hand to DLSS-G). Co-Authored-By: Claude Opus 5.5 <[email protected]> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
test_dlssg_hudless.py: a case with NVIDIA Streamline making DLSS FG's frames (frame generation here
off): the picture copied before the HUD, and at the present the HUD-less picture made from a copy of
the frame of its own, taken into the swapchain image's form as the picture is (the window's scale
pass, the HDR pass, at the picture's place, black beside it); none without a copy since, with DLSS-G
paused or not asked, or with a mod's output effect on; Native HDR encoded as for NGX; and
RX_VK_DLSSG_HUDLESS=0 (a run of its own). It fails on main a87eb850: under Streamline the picture is
never copied before the HUD.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Streamline's DLSS-G makes its frames from the swapchain image, the HUD in it, so it can move the
hearts, the minimap and the prompts with the scene, as NGX's could (#2933). It now gets the HUD-less
colour (kBufferTypeHUDLessColor) in the swapchain image's own form, as Streamline asks.

- vk_framegen.cpp: the copy before the HUD is made while Streamline's DLSS-G makes the frames
  (dlssg_takes_hud). framegen_hudless_for_dlssg, at each game frame's present after the picture's
  own copy: the frame's crop copied into an image of its own (hud.frame), the HUD-less picture made
  from it as for NGX (hud_source, hudless_pq in Native HDR), then through the window's scale pass
  and the HDR pass into the picture's place in an image of the swapchain's size and format (hud.bb).
  None while a mod's output effect is on (it would run twice a frame). hud_source takes the frame as
  a view and format; the HUD passes have their own nearest sampler where frame generation's is not
  made.
- vk_dlssg.cpp: dlssg_hudless tags it on the frame's token (eOnlyValidNow: Streamline copies it in
  the present's command buffer), with the back buffer's extent; a frame without one removes the tag.
  The log says it once, and every 600 game presents how many were given it.
- vk_replay.cpp present_image_with_trial: calls both before the painter's overlays and
  dlssg_before_present.
- RX_VK_DLSSG_HUDLESS (kill switch, on); UI recomposition not asked yet.
- Tests: test_dlssg.py checks the tag and its place in the present; the fixtures that cut
  hud_source (test_fsr3fi_hud_mask, test_temporal_present_bandwidth, present_source_crop_test.cpp)
  follow its new arguments. Docs: upscalers.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- do_present makes the picture's sampled view while Streamline's DLSS-G takes the HUD-less picture,
  also where its own present does not scale it (SDR at the window's size, the filter Off: the usual
  case, where there was no view and so never a HUD-less picture).
- framegen_hudless_for_dlssg: a copy from before the HUD is never taken as a later frame's (hud.fresh
  cleared on every early return); while the present cannot use one (no view, an sRGB view, a mod's
  output effect, an image not made at this size, Native HDR's encode not made) framegen_hud_before
  makes none (hud.sl_unused); an image not made is tried again at the next size, Native HDR's
  failure no longer turns SDR's off. None with the Insert menu open (DLSS-G off under it).
- dlssg_hudless tells the back buffer's extent again with the HUD-less one (they must be the same;
  dlssg_inputs tells the last present's, and only with inputs); the 600-present count only after
  Streamline took the tag.
- Tests: no view; the usual present without the scale pass; a crop at an offset; Expanded HDR
  without the scale pass; the copy after an output effect; the Insert menu; the extent's field order
  and the do_present view in test_dlssg.py. Docs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(vk): Streamline's HUD-less picture: no copy from before the Insert menu, none that cannot be used
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
a6805b869b
- framegen_hudless_for_dlssg: with DLSS-G not taking the picture (the Insert menu open, paused), a copy
  made before is let go too, so it is not taken after the menu closes on a frame with no copy of its
  own (the second review).
- hud.sl_unused also for a copy that is not the presented picture's size (a reduced Output
  resolution) and Native HDR's mask or HDR pass not made: no copy each frame that is never used.
- Tests: the menu opened between a copy and its present; a reduced Output resolution; the blit's
  source in the scaled case.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Tested in game: Windows 11, RTX 5090, driver 621.47, Streamline 2.14.16, DLAA, DLSS FG 3x through Streamline, the Graveyard: SDR and Native HDR at a 2138x900 window in front; the log gives DLSS-G the HUD-less picture on 600 of 600 game presents, none refused; the minimap and hearts stay in place in the recorded frames; main's path (RX_VK_DLSSG_HUDLESS=0) compared

Tested in game: Windows 11, RTX 5090, driver 621.47, Streamline 2.14.16, DLAA, DLSS FG 3x through Streamline, the Graveyard: SDR and Native HDR at a 2138x900 window in front; the log gives DLSS-G the HUD-less picture on 600 of 600 game presents, none refused; the minimap and hearts stay in place in the recorded frames; main's path (RX_VK_DLSSG_HUDLESS=0) compared
Author
Member

The minimap in the frames on screen while the camera turns (Windows 11, RTX 5090, DLAA, DLSS FG 3x through Streamline, the Graveyard, a 2138x900 window recorded with ffmpeg's Desktop Duplication). Each sheet is the 24 recorded frames with the most camera motion, in order; made frames and the game's own among them.

Main's path (RX_VK_DLSSG_HUDLESS=0), SDR: the minimap already in place here.
main's path

This PR, SDR (the counter at 180 FPS, Base 60):
this PR, SDR

This PR, Native HDR at paper white 400: the minimap and the hearts, no edge round them.
this PR, Native HDR, minimap
this PR, Native HDR, hearts

The minimap in the frames on screen while the camera turns (Windows 11, RTX 5090, DLAA, DLSS FG 3x through Streamline, the Graveyard, a 2138x900 window recorded with ffmpeg's Desktop Duplication). Each sheet is the 24 recorded frames with the most camera motion, in order; made frames and the game's own among them. **Main's path** (`RX_VK_DLSSG_HUDLESS=0`), SDR: the minimap already in place here. ![main's path](https://git.magicbean.dev/attachments/38ea14bb-df83-497d-80bf-1f9bd430e417) **This PR**, SDR (the counter at 180 FPS, Base 60): ![this PR, SDR](https://git.magicbean.dev/attachments/b2ae08ee-cf43-48f0-a809-6650ede66cd1) **This PR**, Native HDR at paper white 400: the minimap and the hearts, no edge round them. ![this PR, Native HDR, minimap](https://git.magicbean.dev/attachments/cd71b967-4bd5-4348-83c7-389f19a94e59) ![this PR, Native HDR, hearts](https://git.magicbean.dev/attachments/a520b696-1a45-43a2-98da-6ce6ae16a19d)
Owner
@review
BeanBot left a comment

Recommendation: Request changes. HUD-less capture can remain disabled after an output effect is turned off and the picture size has changed.

The change supplies Streamline DLSS Frame Generation with a HUD-less image in swapchain form. It adds image allocations and per-frame GPU work; the reported RTX 5090 runs show a median 0.23 ms frame-time increase with DLSS-G paused, while both paths kept the HUD in place.

Blocking (1): must change before merging.

  1. L1 gpu/vk/vk_framegen.cpp:1917: Suppressing capture while sl_unused is set can prevent the stored picture dimensions from ever updating. (more on the line) Do: Allow capture to probe or update the picture dimensions after the disabling condition changes, and add a test that changes size while capture is suppressed and then resumes it.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2 gpu/vk/vk_framegen.cpp:2024: The cost with Streamline actually generating frames, including its copy and the additional VRAM, has not been measured. (more on the line) Do: Measure repeated switch-off and switch-on runs with DLSS-G active at a representative display resolution, including frame times and VRAM, on affected RTX hardware. (@fix does its part first: Avoid redundant image copies or repeated scale passes where the same output can safely be reused.)

@fix can do L1 and L2.

Questions (1) (not confirmed from the code; they don't hold the recommendation)

  • gpu/vk/vk_dlssg.cpp:845: On a Streamline DLSS-G setup that reproduces the HUD smear with the switch off, does turning it on remove the smear?

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven. The game-free test shows the new capture and tag path is exercised, but on the RTX 5090 the minimap and hearts were already stable with the switch off. The reported three-pair measurement went from 111.8 to 109.4 median FPS and 8.88 to 9.11 ms median frame time; its spread overlaps and DLSS-G was paused.

Other systems: The new work is gated to Streamline DLSS-G, but hud_source is shared with NGX and FSR 3.1. The PR reports an RTX 5090 Windows windowed run in SDR and Native HDR; a GPU reproducing the original smear, fullscreen, and performance with DLSS-G actually generating frames remain untested. Linux and Windows renderer checks are still running.

Switches: RX_VK_DLSSG_HUDLESS is added as a kill switch, default on, with a switches.def row and documentation. Whether on is the right default remains unproven: the reported hardware showed no visible benefit and the active-generation cost has not been measured.

Reviewed: a6805b869b against 46ae5b43d3: Read the repository rules, standards and PR template; reviewed the full production diff, commit messages, changed test and documentation diffs, and the surrounding HUD capture, Streamline tagging and present paths. The large production and test files were read selectively around the changes and their callers, not in full. Recorded runs were reviewed from the PR and comments; linked images could not be inspected.; nothing run (a code review).

Checked and fine:

  • The switch has a table row and documentation, and the commits record AI assistance.
  • No game-derived files, generated shader output, third-party changes, or renderer API version changes appear in the diff.
  • The existing HUD source tests were updated for the new arguments; the new test exercises both switch states.
  • The PR reports both SDR and Native HDR in-game runs and identifies the checks that also failed on its stated baseline.

Testing: No code or tests were run for this review. The PR reports game-free checks and Windows RTX 5090 runs; Forgejo CI is still running.

Overlaps and merge order: Not checked; network access is unavailable.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** HUD-less capture can remain disabled after an output effect is turned off and the picture size has changed. The change supplies Streamline DLSS Frame Generation with a HUD-less image in swapchain form. It adds image allocations and per-frame GPU work; the reported RTX 5090 runs show a median 0.23 ms frame-time increase with DLSS-G paused, while both paths kept the HUD in place. **Blocking (1)**: must change before merging. 1. **L1** `gpu/vk/vk_framegen.cpp:1917`: Suppressing capture while sl_unused is set can prevent the stored picture dimensions from ever updating. (more on the line) **Do:** Allow capture to probe or update the picture dimensions after the disabling condition changes, and add a test that changes size while capture is suppressed and then resumes it. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/vk_framegen.cpp:2024`: The cost with Streamline actually generating frames, including its copy and the additional VRAM, has not been measured. (more on the line) **Do:** Measure repeated switch-off and switch-on runs with DLSS-G active at a representative display resolution, including frame times and VRAM, on affected RTX hardware. *(`@fix` does its part first: Avoid redundant image copies or repeated scale passes where the same output can safely be reused.)* `@fix` can do L1 and L2. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - `gpu/vk/vk_dlssg.cpp:845`: On a Streamline DLSS-G setup that reproduces the HUD smear with the switch off, does turning it on remove the smear? **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven. The game-free test shows the new capture and tag path is exercised, but on the RTX 5090 the minimap and hearts were already stable with the switch off. The reported three-pair measurement went from 111.8 to 109.4 median FPS and 8.88 to 9.11 ms median frame time; its spread overlaps and DLSS-G was paused. **Other systems:** The new work is gated to Streamline DLSS-G, but hud_source is shared with NGX and FSR 3.1. The PR reports an RTX 5090 Windows windowed run in SDR and Native HDR; a GPU reproducing the original smear, fullscreen, and performance with DLSS-G actually generating frames remain untested. Linux and Windows renderer checks are still running. **Switches:** RX_VK_DLSSG_HUDLESS is added as a kill switch, default on, with a switches.def row and documentation. Whether on is the right default remains unproven: the reported hardware showed no visible benefit and the active-generation cost has not been measured. **Reviewed:** a6805b869b42 against 46ae5b43d33e: Read the repository rules, standards and PR template; reviewed the full production diff, commit messages, changed test and documentation diffs, and the surrounding HUD capture, Streamline tagging and present paths. The large production and test files were read selectively around the changes and their callers, not in full. Recorded runs were reviewed from the PR and comments; linked images could not be inspected.; nothing run (a code review). **Checked and fine:** - The switch has a table row and documentation, and the commits record AI assistance. - No game-derived files, generated shader output, third-party changes, or renderer API version changes appear in the diff. - The existing HUD source tests were updated for the new arguments; the new test exercises both switch states. - The PR reports both SDR and Native HDR in-game runs and identifies the checks that also failed on its stated baseline. **Testing:** No code or tests were run for this review. The PR reports game-free checks and Windows RTX 5090 runs; Forgejo CI is still running. **Overlaps and merge order:** Not checked; network access is unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -1876,3 +1915,3 @@
return;
std::lock_guard lk(hud.mu);
if (hud.failed) return;
if (hud.failed || (!framegen_on() && hud.sl_unused)) return; // (Streamline's present could not use it: none)
Member

L1 (blocking): Suppressing capture while sl_unused is set can prevent the stored picture dimensions from ever updating.

When: Enable an output effect so a present sets sl_unused, change the presented picture size while the effect is enabled, then disable the effect. framegen_hud_before still returns before updating hud.pw and hud.ph; the present sees those old dimensions differ from sw and sh and sets sl_unused again, so subsequent frames never provide HUD-less colour.

Do: Allow capture to probe or update the picture dimensions after the disabling condition changes, and add a test that changes size while capture is suppressed and then resumes it.

**L1** (blocking): Suppressing capture while sl_unused is set can prevent the stored picture dimensions from ever updating. *When:* Enable an output effect so a present sets sl_unused, change the presented picture size while the effect is enabled, then disable the effect. framegen_hud_before still returns before updating hud.pw and hud.ph; the present sees those old dimensions differ from sw and sh and sets sl_unused again, so subsequent frames never provide HUD-less colour. **Do:** Allow capture to probe or update the picture dimensions after the disabling condition changes, and add a test that changes size while capture is suppressed and then resumes it.
@ -1898,0 +2021,4 @@
}
// (as vk_replay.cpp present_image_with_trial takes the picture: the scale pass, then the HDR pass, else the picture)
const VkImage scaled =
allow_scale ? framegen_scale(cmd, hud.hudless.view, hud.hudless.image, w, h, nullptr, rect.w, rect.h, native_pq)
Member

L2 (should fix): The cost with Streamline actually generating frames, including its copy and the additional VRAM, has not been measured.

When: The reported A/B ran with the windows unfocused and DLSS-G paused, so it cannot show the combined GPU and memory cost for players using frame generation.

Do: Measure repeated switch-off and switch-on runs with DLSS-G active at a representative display resolution, including frame times and VRAM, on affected RTX hardware.

**L2** (should fix): The cost with Streamline actually generating frames, including its copy and the additional VRAM, has not been measured. *When:* The reported A/B ran with the windows unfocused and DLSS-G paused, so it cannot show the combined GPU and memory cost for players using frame generation. **Do:** Measure repeated switch-off and switch-on runs with DLSS-G active at a representative display resolution, including frame times and VRAM, on affected RTX hardware.
HumanBean added this to the v4 milestone 2026-12-04 21:30:46 +00:00
fix(vk): Streamline's HUD-less picture: a size changed while it was held off is seen once it is not
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
PR description / Title and description (pull_request_target) Failing after 6s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 23s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 13m34s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m18s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 10m39s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m22s
CI / Website build and checks (pull_request) Failing after 38s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 48m40s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m4s
efbace64fe
While Streamline's present could not use a copy from before the HUD (a reduced Output resolution, a mod's output
effect on, no view of the picture), framegen_hud_before returned before it kept the picture's size. A size changed
then stayed unseen: with the Output resolution back to full, or the picture's size changed while the effect was on and
the effect then off, the present still saw the copy's old size, took it for a reduced Output resolution, and held the
copies off for good. The size is now kept before that return, so the copies and the HUD-less picture come again on the
second present after what held them off ends. The copies retired at a new size meanwhile are freed at the present
(hud_free_dead), as hud_source, which frees them too, does not run then.

test_dlssg_hudless: the picture's size changed while an output effect was on, then the effect off; and a reduced
Output resolution turned off: each time the picture copied again and the HUD-less picture made at the picture's size
(both fail without the fix). upscalers.md: the size kept, and the blurred sides near the HUD.

Found by BeanBot's review of #3202 (L1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Thanks for the review.

L1, fixed in efbace64: framegen_hud_before now keeps the picture's size before it returns for a present that cannot
use the copy. The same lock-out had a more common way in, too: a reduced Output resolution makes the picture smaller
than the presented one, and once the setting went back to full the copy's reduced size was kept, so the HUD-less
picture never came back. Now a size changed while the copies are held off (a reduced Output resolution, a mod's output
effect, no view of the picture) is seen once that ends, and the copies and the HUD-less picture come again on the
second present after it. The copies retired at a new size meanwhile are freed at the present. tests/test_dlssg_hudless.py
has both cases (an output effect on, the picture from 2560x1440 to 3840x2160, the effect off; a reduced Output
resolution turned off): each fails on a6805b86 and passes on efbace64.

L2, not measured yet with DLSS-G making frames. Streamline pauses DLSS-G while the game window is not in front, and
dev.py ab's game windows are not in front, so its A/B measures the passes' own cost only (the PR says so). The memory
the PR adds, from the images it makes (none on main under Streamline, none with RX_VK_DLSSG_HUDLESS=0), at 3840x2160:

  • the picture before and after the HUD, two of each (the mask's pair alternates): 4 x 33 MB (R11G11B10), or 4 x 66 MB
    when the picture is RGBA16F;
  • this present's frame copy, the mask's source and the HUD-less picture: 3 x 33 MB;
  • the HUD-less picture in the swapchain's size and format, which Streamline is given: 33 MB, and Streamline's own copy
    of it (it is tagged valid only now): 33 MB.

That is about 300 MB (about 430 MB with an RGBA16F picture); at 2560x1440 about 0.44 times that. A frame-time and VRAM
measurement with DLSS-G making frames needs a run with the game window in front and nobody at the PC (the switch off and on, three runs each, frame times
and VRAM); it follows in this PR when run. The description is updated for efbace64.

Question (does it remove the smear where there is one): not answered on this PC. On the RTX 5090 main's Streamline
DLSS-G already keeps the HUD in place, so the PR's "Still to test" asks for a run on an RTX 40 or another GPU that shows
the smear, with and without RX_VK_DLSSG_HUDLESS=0, the game window in front.

Thanks for the review. **L1, fixed in efbace64:** `framegen_hud_before` now keeps the picture's size before it returns for a present that cannot use the copy. The same lock-out had a more common way in, too: a reduced Output resolution makes the picture smaller than the presented one, and once the setting went back to full the copy's reduced size was kept, so the HUD-less picture never came back. Now a size changed while the copies are held off (a reduced Output resolution, a mod's output effect, no view of the picture) is seen once that ends, and the copies and the HUD-less picture come again on the second present after it. The copies retired at a new size meanwhile are freed at the present. `tests/test_dlssg_hudless.py` has both cases (an output effect on, the picture from 2560x1440 to 3840x2160, the effect off; a reduced Output resolution turned off): each fails on a6805b86 and passes on efbace64. **L2, not measured yet with DLSS-G making frames.** Streamline pauses DLSS-G while the game window is not in front, and `dev.py ab`'s game windows are not in front, so its A/B measures the passes' own cost only (the PR says so). The memory the PR adds, from the images it makes (none on main under Streamline, none with `RX_VK_DLSSG_HUDLESS=0`), at 3840x2160: - the picture before and after the HUD, two of each (the mask's pair alternates): 4 x 33 MB (R11G11B10), or 4 x 66 MB when the picture is RGBA16F; - this present's frame copy, the mask's source and the HUD-less picture: 3 x 33 MB; - the HUD-less picture in the swapchain's size and format, which Streamline is given: 33 MB, and Streamline's own copy of it (it is tagged valid only now): 33 MB. That is about 300 MB (about 430 MB with an RGBA16F picture); at 2560x1440 about 0.44 times that. A frame-time and VRAM measurement with DLSS-G making frames needs a run with the game window in front and nobody at the PC (the switch off and on, three runs each, frame times and VRAM); it follows in this PR when run. The description is updated for efbace64. **Question (does it remove the smear where there is one):** not answered on this PC. On the RTX 5090 main's Streamline DLSS-G already keeps the HUD in place, so the PR's "Still to test" asks for a run on an RTX 40 or another GPU that shows the smear, with and without `RX_VK_DLSSG_HUDLESS=0`, the game window in front.
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The size recovery fix addresses the capture lockout, but the cost while Streamline is generating frames remains unmeasured. The reported RTX 5090 comparison also did not show the original HUD smear, so the player-facing benefit remains unproven. Recommend approval; not approved on the forge.

The change supplies Streamline DLSS Frame Generation with a HUD-less picture, intended to keep HUD elements stationary in generated frames. It adds image copies and rendering passes; the reported paused-generation comparison costs about 0.23 ms per game frame and an estimated 300 MB at 4K.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2 gpu/vk/vk_framegen.cpp:2024: The cost with Streamline actually generating frames, including its copy and the additional VRAM, has not been measured. When: The reported A/B ran with the windows unfocused and DLSS-G paused, so it cannot show the combined GPU and memory cost for players using frame generation. Do: Measure repeated switch-off and switch-on runs with DLSS-G active at a representative display resolution, including frame times and VRAM, on affected RTX hardware. (@fix does its part first: Avoid redundant image copies or repeated scale passes where the same output can safely be reused.)

@fix can do L2.

Since the last review (on a6805b869b)
Resolved: L1 (Suppressing capture while sl_unused is set can prevent the stored picture dimensions from…)
Still open: L2 (The cost with Streamline actually generating frames, including its copy and the additional…)

Checks: Still running: 11 checks.

Also noticed (1; not asked for, not blocking)
  • A comparison on hardware that exhibits the HUD smear would establish whether the HUD-less input fixes it.
More: does it help, other systems, switches, what was read

Does it help: Unproven: on the RTX 5090, the HUD stayed in place both with and without the change. The PR reports a median frame time of 8.88 ms without the feature and 9.11 ms with it, measured with DLSS-G paused; the cost and benefit while it generates frames remain unmeasured.

Other systems: The changed path targets Streamline DLSS-G. The shared HUD capture and masking code also serves NGX and FSR 3.1; the reported game run covers Windows and an RTX 5090, while Linux build checks and other affected hardware runs remain pending.

Switches: RX_VK_DLSSG_HUDLESS is added, default on; setting it to 0 restores the previous Streamline path. The default's benefit and cost during frame generation remain unproven.

Reviewed: efbace64fe against 46ae5b43d3: Read the changed framegen capture, retirement and present logic, the changes since the prior head, the new recovery test cases, AGENTS.md, CONTRIBUTING.md and the pull request template. The remaining changed files and full base diff were not read in full; the PR's recorded runs were reviewed from its description and comments.; nothing run (a code review).

Checked and fine:

  • The recovery test exercises both a size change while an output effect suppresses capture and a return from reduced Output resolution.
  • Retired captures remain protected by the existing frame-age and GPU timeline checks.

Testing: No commands that build or run project code were executed. The author reports game-free tests and Windows RTX 5090 SDR and HDR runs; CI is still running.

Overlaps and merge order: Not checked; network access is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The size recovery fix addresses the capture lockout, but the cost while Streamline is generating frames remains unmeasured. The reported RTX 5090 comparison also did not show the original HUD smear, so the player-facing benefit remains unproven. Recommend approval; not approved on the forge. The change supplies Streamline DLSS Frame Generation with a HUD-less picture, intended to keep HUD elements stationary in generated frames. It adds image copies and rendering passes; the reported paused-generation comparison costs about 0.23 ms per game frame and an estimated 300 MB at 4K. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/vk_framegen.cpp:2024`: The cost with Streamline actually generating frames, including its copy and the additional VRAM, has not been measured. *When:* The reported A/B ran with the windows unfocused and DLSS-G paused, so it cannot show the combined GPU and memory cost for players using frame generation. **Do:** Measure repeated switch-off and switch-on runs with DLSS-G active at a representative display resolution, including frame times and VRAM, on affected RTX hardware. *(`@fix` does its part first: Avoid redundant image copies or repeated scale passes where the same output can safely be reused.)* `@fix` can do L2. **Since the last review** (on a6805b869b42) Resolved: L1 (Suppressing capture while sl_unused is set can prevent the stored picture dimensions from…) Still open: L2 (The cost with Streamline actually generating frames, including its copy and the additional…) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - A comparison on hardware that exhibits the HUD smear would establish whether the HUD-less input fixes it. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: on the RTX 5090, the HUD stayed in place both with and without the change. The PR reports a median frame time of 8.88 ms without the feature and 9.11 ms with it, measured with DLSS-G paused; the cost and benefit while it generates frames remain unmeasured. **Other systems:** The changed path targets Streamline DLSS-G. The shared HUD capture and masking code also serves NGX and FSR 3.1; the reported game run covers Windows and an RTX 5090, while Linux build checks and other affected hardware runs remain pending. **Switches:** RX_VK_DLSSG_HUDLESS is added, default on; setting it to 0 restores the previous Streamline path. The default's benefit and cost during frame generation remain unproven. **Reviewed:** efbace64fe07 against 46ae5b43d33e: Read the changed framegen capture, retirement and present logic, the changes since the prior head, the new recovery test cases, AGENTS.md, CONTRIBUTING.md and the pull request template. The remaining changed files and full base diff were not read in full; the PR's recorded runs were reviewed from its description and comments.; nothing run (a code review). **Checked and fine:** - The recovery test exercises both a size change while an output effect suppresses capture and a return from reduced Output resolution. - Retired captures remain protected by the existing frame-age and GPU timeline checks. **Testing:** No commands that build or run project code were executed. The author reports game-free tests and Windows RTX 5090 SDR and HDR runs; CI is still running. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Author
Member

L2 from the review, measured with Streamline's DLSS-G making frames: at 5120x2160 (fullscreen, DLAA, DLSS FG 3x
through Streamline, Native HDR, uncapped, Hyrule Field) the HUD-less picture costs about 0.7 ms a game frame (median
14.66 against 13.98 ms; 68.4 against 71.6 fps, -4.5 %; every run with it below every run without) and about 0.4 GiB
of VRAM (+398 MiB of the game's dedicated memory, about what its nine images of 42 MiB give at this size).

The first A/B could not show this: dev.py ab opens each game window behind the one in front
(HOS_WINDOW_NOACTIVATE=1), and Streamline pauses DLSS-G while the window is not in front. This one set
HOS_WINDOW_NOACTIVATE=0 (a window that still opened behind was brought to the front during its warm-up), and each
run's window was in front for its whole measured 60 s: the game log's hid: game window ... lines, and Streamline's
sl.log (DLSS-G enabled before the span, no pause in it) in the three runs where it was kept. The table, the setup and
the VRAM method are in the description (Measurements).

On this RTX 5090 main's path already keeps the HUD in place, so here this is cost without a seen gain.
RX_VK_DLSSG_HUDLESS stays on, as RX_VK_DLSS_FG_HUDLESS is for NGX (#2933), for the GPUs and scenes where the HUD
smears; =0 turns it off. Whether it should ship on where no smear shows is the maintainers' call.

L2 from the review, measured with Streamline's DLSS-G making frames: at 5120x2160 (fullscreen, DLAA, DLSS FG 3x through Streamline, Native HDR, uncapped, Hyrule Field) the HUD-less picture costs about 0.7 ms a game frame (median 14.66 against 13.98 ms; 68.4 against 71.6 fps, -4.5 %; every run with it below every run without) and about 0.4 GiB of VRAM (+398 MiB of the game's dedicated memory, about what its nine images of 42 MiB give at this size). The first A/B could not show this: `dev.py ab` opens each game window behind the one in front (`HOS_WINDOW_NOACTIVATE=1`), and Streamline pauses DLSS-G while the window is not in front. This one set `HOS_WINDOW_NOACTIVATE=0` (a window that still opened behind was brought to the front during its warm-up), and each run's window was in front for its whole measured 60 s: the game log's `hid: game window ...` lines, and Streamline's `sl.log` (DLSS-G enabled before the span, no pause in it) in the three runs where it was kept. The table, the setup and the VRAM method are in the description (Measurements). On this RTX 5090 main's path already keeps the HUD in place, so here this is cost without a seen gain. `RX_VK_DLSSG_HUDLESS` stays on, as `RX_VK_DLSS_FG_HUDLESS` is for NGX (#2933), for the GPUs and scenes where the HUD smears; `=0` turns it off. Whether it should ship on where no smear shows is the maintainers' call.
pmwork-personal changed title from WIP: fix(vk): DLSS Frame Generation through Streamline is given the picture from before the HUD (#1075) to fix(vk): DLSS Frame Generation through Streamline is given the picture from before the HUD (#1075) 2026-12-05 02:19:41 +00:00
BeanBot left a comment

Recommendation: Approve. L2 is resolved: the reported run measures both frame time and dedicated VRAM while Streamline generates frames. The change supplies the intended HUD-less input, although its visual benefit on a system exhibiting the smear remains unproven. Recommend approval; not approved on the forge.

Streamline DLSS frame generation receives a picture from before the game HUD, processed to match the swapchain. This adds image copies and rendering passes, with a measured cost even on the tested GPU where the HUD was already stable.

Since the last review (on efbace64fe)
Resolved: L2 (The cost with Streamline actually generating frames, including its copy and the additional…)

Checks: Still running: 11 checks.

Also noticed (3; not asked for, not blocking)
  • A comparison on hardware that exhibits the HUD smear would establish whether the HUD-less input fixes it.
  • A comparison on a GPU and scene where the HUD smears would establish whether the default-on cost buys a visible improvement.
  • The reported fullscreen and affected-hardware checks remain outstanding, and CI is still running.
More: does it help, other systems, switches, what was read

Does it help: Unproven as a visual fix: the RTX 5090 test showed a stable HUD both with and without the change. The author's three interleaved runs at 5120×2160 with DLSS-G active measured median frame time rising from 13.98 to 14.66 ms, FPS falling from 71.6 to 68.4, and dedicated VRAM rising by 398 MiB.

Other systems: The new path runs with Streamline DLSS-G on supported Windows NVIDIA systems. The shared HUD source also serves NGX and FSR 3.1; their calls were adapted, but the reported in-game run covers Streamline on an RTX 5090 only. Linux renderer CI is still running.

Switches: RX_VK_DLSSG_HUDLESS is added and defaults on; setting it to 0 restores the previous Streamline input. The default incurs the measured cost where no visual gain was observed, so its benefit on affected hardware remains uncertain.

Reviewed: efbace64fe against 46ae5b43d3: Read AGENTS.md, CONTRIBUTING.md, the pull request template, and gpu/vk/vk_dlssg.h. Reviewed the relevant HUD capture, processing, tagging and present code and the reported measurements; the remaining changed files and diff were skimmed, not read in full. No docs/review-checklist.md was present.; nothing run (a code review).

Checked and fine:

  • The measured run kept the game window in front during the measured intervals.
  • The HUD-less image is tagged with the present command buffer and the matching back-buffer extent.

Testing: No commands that build or run the project were executed. The author reports game-free checks and Windows RTX 5090 SDR and Native HDR runs; the listed CI checks have not finished.

Overlaps and merge order: none found


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as pmwork-personal took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Approve.** L2 is resolved: the reported run measures both frame time and dedicated VRAM while Streamline generates frames. The change supplies the intended HUD-less input, although its visual benefit on a system exhibiting the smear remains unproven. Recommend approval; not approved on the forge. Streamline DLSS frame generation receives a picture from before the game HUD, processed to match the swapchain. This adds image copies and rendering passes, with a measured cost even on the tested GPU where the HUD was already stable. **Since the last review** (on efbace64fe07) Resolved: L2 (The cost with Streamline actually generating frames, including its copy and the additional…) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (3; not asked for, not blocking)</summary> - A comparison on hardware that exhibits the HUD smear would establish whether the HUD-less input fixes it. - A comparison on a GPU and scene where the HUD smears would establish whether the default-on cost buys a visible improvement. - The reported fullscreen and affected-hardware checks remain outstanding, and CI is still running. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven as a visual fix: the RTX 5090 test showed a stable HUD both with and without the change. The author's three interleaved runs at 5120×2160 with DLSS-G active measured median frame time rising from 13.98 to 14.66 ms, FPS falling from 71.6 to 68.4, and dedicated VRAM rising by 398 MiB. **Other systems:** The new path runs with Streamline DLSS-G on supported Windows NVIDIA systems. The shared HUD source also serves NGX and FSR 3.1; their calls were adapted, but the reported in-game run covers Streamline on an RTX 5090 only. Linux renderer CI is still running. **Switches:** RX_VK_DLSSG_HUDLESS is added and defaults on; setting it to 0 restores the previous Streamline input. The default incurs the measured cost where no visual gain was observed, so its benefit on affected hardware remains uncertain. **Reviewed:** efbace64fe07 against 46ae5b43d33e: Read AGENTS.md, CONTRIBUTING.md, the pull request template, and gpu/vk/vk_dlssg.h. Reviewed the relevant HUD capture, processing, tagging and present code and the reported measurements; the remaining changed files and diff were skimmed, not read in full. No docs/review-checklist.md was present.; nothing run (a code review). **Checked and fine:** - The measured run kept the game window in front during the measured intervals. - The HUD-less image is tagged with the present command buffer and the matching back-buffer extent. **Testing:** No commands that build or run the project were executed. The author reports game-free checks and Windows RTX 5090 SDR and Native HDR runs; the listed CI checks have not finished. **Overlaps and merge order:** none found </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as pmwork-personal took it out of WIP. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch fix/dlssg-sl-hudless 2026-12-05 02:31:31 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
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
MagicBeanDev/Longshot!3202
No description provided.