feat(dlss): DLSS 5 neural rendering when NVIDIA's nvngx_dlssnr.dll is in place #2503

Merged
HumanBean merged 13 commits from pmwork-personal/Longshot:feat/dlss5-drop-in into main 2026-11-25 19:07:33 +00:00
Member

Type: feat · Risk: medium · Tested on: Windows 11, RTX 5090 · Needs: Windows, NVIDIA RTX 50 with NVIDIA's nvngx_dlssnr.dll, Linux build

Summary

DLSS 5 is NVIDIA's neural rendering model: it adds detail to faces, skin and surfaces. This PR brings TheDevil's DLSS 5
work (#619 and #620, from HypeZ85's Hookshot PR 1590) to current main as a drop-in: a player puts NVIDIA's own
nvngx_dlssnr.dll in the game's ngx folder (or %LOCALAPPDATA%\Longshot\ngx), and DLSS 5 appears on the Graphics
tab under the Upscaler's rows; without the file there is no row and no message. The Graphics tab gets three rows (DLSS 5,
a Default/Custom preset tuned in the game, and DLSS 5 settings, which opens a page with the Bloodborne PC port's tuning
rows); the preset says "Custom" once a row on the page is moved. It ran in the game on
an RTX 5090 with NVIDIA's unchanged, signed file: 43,800 frames through every row and preset, no failure; with DLSS 5 Off
(the default) it measures the same as main.

Credits

  • HypeZ85 (Valerio85): the original DLSS 5 integration, Hookshot PR 1590 (a1f730de): NGX feature 18 and its
    DLSSNR.* parameters.
  • TheDevil: brought it to Longshot in #173, #619 and #620 (the NGX path, the lifecycle and fallbacks, the HDR and
    scaled proxies, the NR time and VRAM lines, most of the tests). This PR starts from #619/#620's code as one commit
    with TheDevil as co-author, then changes it as below.
  • The OptiScaler DLSS-NR fork (Dagherbou/OptiScaler_DLSSNR,
    GPL-3.0): the public source of how the model is driven, and the composition the Bloodborne port's follows.
  • The Bloodborne PC port (PMWork): the rows and the composition (detail strength, colour strength, highlight guard);
    its blend between the picture's own colour and the model's follows RenoDX's DLSS 5 addon (clshortfuse).

Breakdown

  • Who it helps: players on an NVIDIA RTX GPU who have NVIDIA's DLSS 5 file (its FP8 model runs on RTX 50), with
    NVIDIA DLSS, DLAA or AMD FSR as the Upscaler.
  • What was wrong: #619/#620 had their own DLSS 5 page in vk_menu.cpp's table (Enable, Intensity, NR resolution
    scale, Stage, Compare, Retry detection), shown in every NGX build, conflicting with main's menu modules, and had not run
    in the game.
  • What changes: a menu module gpu/vk/menu/dlss5.cpp: three rows on the Graphics tab, the tuning rows on a DLSS 5
    settings page; the rows show only when the DLL is found where NGX searches;
    the model runs after the upscaler only (no jitter there, so it keeps its history); its picture comes back through the
    Bloodborne port's composition; the four model strengths are sent only at Model strengths Applied; a model resolution
    change settles 350 ms before the model is made again.
  • What does not change: everything with DLSS 5 Off (the default) or without the file: no row, no allocation, no
    dispatch; DLSS, DLAA, FSR, XeSS and frame generation as on main. Longshot does not include, download or change NVIDIA's
    file.
  • How it was checked: game-free tests (the rows, no DLL = no rows, the preset and Custom, the DLL search, the chain,
    the composite's blend run on the CPU); headless runs through the control bridge; a 25-minute screen run on an RTX 5090
    through every row; a DLSS 5 Off A/B against main.
  • What is still open: a Linux build (the Test Farm); RTX 20/30/40 (NVIDIA's FP8 model is for RTX 50: the row says
    why it does not start); AMD FSR as the Upscaler with DLSS 5 on screen.
  • Risk: medium: a new pass after the upscaler while DLSS 5 is On; Off is main's path.

Why

#619 and #620 showed DLSS 5 runs through NGX's normal API with NVIDIA's signed file. The review on #619 asked for a run in
the game, fewer player rows, the parameters' source, and checks cut with srccut. This PR:

  • ran it in the game with NVIDIA's unchanged, signed nvngx_dlssnr.dll 310.9.16.0 (Testing);
  • shows nothing to players without the file, and puts the rows in a module of their own: no slider on the Graphics
    tab, the tuning rows on a page of their own;
  • names the sources (Credits): the feature number and the parameter names come from HypeZ85's Hookshot PR 1590 and the
    public OptiScaler DLSS-NR fork; nothing is decompiled, no NVIDIA file is in the repository, and the player supplies
    NVIDIA's file;
  • keeps the tuning rows for now on purpose, on the DLSS 5 settings page: the maintainer tuning DLSS 5 for Longshot
    uses them to find the default; the plan is to drop the sliders once it is settled and keep the Default preset;
  • answers the correctness questions: the model no longer resets every frame (after the upscaler there is no jitter);
    NGX is checked before anything is made; version.dll comes from System32.

What changed

  • gpu/vk/menu/dlss5.cpp, dlss5.h (new): on the Graphics tab right after Sharpness, DLSS 5, DLSS 5 preset (Default,
    Custom) and DLSS 5 settings, no heading of their own (the menu draws a section's title over rows all hidden); the
    DLSS 5 settings page holds Model resolution, Detail strength, Colour strength, Style, Model strengths, Intensity, Local
    structure, Local tone, Skin structure, Automatic skin mask and Highlight guard; the rows past On show while On; the
    four strengths locked unless Applied; every DLSS 5 row's help starts with [EXPERIMENTAL]; keys in
    tests/test_menu_ini_keys.py's FROZEN. gpu/vk/vk_menu.cpp: the page's
    slot (TAB_DLSS5, beside the Simulated turf page's; Back returns to Graphics).
  • gpu/vk/vk_dlss.cpp, vk_dlss.h: DLSS 5 (NGX feature 18) from #619/#620, after the upscaler only; nr_runtime() /
    dlss_nr_offered() look for the DLL in every folder NGX searches (runtime_dirs); the strengths sent only at Applied;
    the model's preset 2 (the Bloodborne port's); DLSS's own prepare, evaluate, release and dlss_retry as on main.
  • gpu/vk/dlss_nr_settings.h, dlss_nr_support.h: the model's settings and their settle, the working size, why DLSS 5
    does not run (messages for the row's line).
  • gpu/vk/shaders/dlss_nr_composite.comp (+ header, glslang 16.6.0): detail strength (a power above 1), the two-sided
    highlight guard, colour strength (OkLab chroma above 1, as much as the detail strength takes of the model's picture up
    to 1, so detail 0 is the upscaler's picture at any colour strength; the Bloodborne port adds it at any detail, and from
    detail 1 the two are the same).
  • gpu/vk/vk_temporal.cpp: DLSS 5 after the upscaler's evaluation, before the HUD.
  • gpu/vk/vk_menu.cpp: RX_VK_DLSS_NR at the start; the FPS counter's NR time and NR VRAM lines (Dev level). With
    DLSS 5 Off and nothing of it made, the chain returns before DLSS's lock; the DLL is looked for once a run.
  • Left out of #619/#620: the DLSS 5 page, Compare, Retry detection, Stage (Before), RX_VK_DLSS_NR_INTENSITY and the menu
    translations (the texts changed; translations can follow).
  • Docs: docs/user/dlss5.md (new), the settings table, docs/dev/reference/switches.md, two docs/tested/ files.
  • Website and guide image: the site's settings check (website/src/repo-docs/graphics-settings.ts) gets the DLSS 5 rows'
    two conditions as badges and registers the preset and page rows, with a site test; scripts/screenshots/menu.cpp
    stands in for the menu's six new DLSS 5 calls; settings-graphics.png is kept after a source review
    (docs/user/images/guide/source-review-6b76485a.md, the manifest's review record).
  • Tests: test_dlss5_menu.py, test_dlss_nr_runtime.py (new); test_dlss_nr_chain.py (was _stage); the composite
    check runs the blend on the CPU; the checks that cut changed source follow it (test_pass_barrier,
    test_menu_slider_ends, test_menu_env_overrides); #619/#620's Compare, controls, i18n, menu and release checks go
    with what they checked.

Measurements

Verdict: with DLSS 5 Off (the default) the branch costs nothing measurable: median 83.6 fps against main's 81.7, within
the spread of the runs (main 77.5 to 81.8, the branch 77.3 to 86.6). DLSS 5 On is the player's choice and costs a lot of
GPU time (Risks).

Setup: Windows 11 Pro build 26300, NVIDIA GeForce RTX 5090, driver 621.24, AMD Ryzen 7 9800X3D, 64 GB; Kokiri Forest,
5120x2160 with NVIDIA DLAA; the presents counted over 60 s, headless, A B A B A B (details below)
Hardware: Windows 11 Pro build 26300; NVIDIA GeForce RTX 5090, driver 621.24; AMD Ryzen 7 9800X3D, 64 GB
Scene: Kokiri Forest (child), the repository's kokiri-start save, camera still; 5120x2160, NVIDIA DLAA before the bloom,
frame generation and V-Sync off, the frame cap off (HOS_FPS_MAX=1000), the tester's own settings otherwise (pinned
with HOS_OPTIONS_FILE, a fresh copy each run, no DLSS 5 key: Off)
Method: the game off-screen (HOS_HEADLESS=1) from the control bridge, each run a timing job of the PC's queue, A B A B A B;
a warm-up of 1,800 presents, then the presents counted over 60 s; the median of 3 runs each. Both sides on the shared
base of main 9046a8d7 (main alone, and this branch's pack over it), so the comparison is like for like (dev.py ab
would have built a base of its own)
Builds: main @ 9046a8d7; this PR @ ced68f16 (the same base). The head adds the settings page, the preset's name and
the self-review's fixes after it; with DLSS 5 Off they only take work away (the chain returns before its lock), so the
numbers hold

Before: main @ 9046a8d7 After: this PR @ ced68f16 (DLSS 5 Off)
fps, Kokiri Forest, 60 s 81.7 (77.5, 81.8, 81.7) 83.6 (77.3, 86.6, 83.6), within the spread

Every run: switches set (8): HOS_AUDIO_MUTE=1, HOS_CONTROL, HOS_DISCORD=0, HOS_FPS_MAX=1000, HOS_HEADLESS=1, HOS_OPTIONS_FILE, LONGSHOT_BUILD_NAME, RX_VK_FRAMEGEN=0; NVIDIA DLSS: feature 1 made ... 5120x2160 ... mode 5 ... (DLAA before the bloom); no DLSS 5 line on either side.

On main fb724339 (after #2286's Rust builder and #2411's game/ move; merged into this PR in 68b15b72 and 309593ca): not measured again. The merge changes no DLSS 5 code, and with DLSS 5 Off the chain returns at its first line, so the comparison above still holds; absolute fps on fb724339 differ from 9046a8d7's by #2286's builder, on both sides alike.

Flags and settings

Adds RX_VK_DLSS_NR, RX_VK_DLSS_NR_DEBUG, RX_VK_DLSS_NR_LINUX, RX_VK_NR_TEST_REJECT_INTENSITY and the options
file's dlss5 and dlss5_* keys.

Flag What it is Before this PR After this PR Effect Helps / doesn't help / untested Recommendation
RX_VK_DLSS_NR DLSS 5 for one run (none) =1/=0 over the DLSS 5 row on or off for A/B runs unset
RX_VK_DLSS_NR_DEBUG a view of DLSS 5 (none) 1..5: its input, the raw output, difference x20, depth, motion diagnosis only, never saved untested on screen unset
RX_VK_DLSS_NR_LINUX Linux DLSS 5 (none) =1 shows the rows and asks the native NGX an experiment untested (no native runtime) unset
RX_VK_NR_TEST_REJECT_INTENSITY fault injection (none) only in LONGSHOT_NR_TESTING builds none in ordinary builds tests only unset
dlss5, dlss5_* (options file) the DLSS 5 rows (none) Off; the Default preset (65%, detail 1.64, colour 1.26, Cinematic, Applied, intensity 1.62, local structure 1.22, local tone 1.14, skin 0.74, skin mask On, highlight guard 1.7x) the rows' values, hundredths and tenths tuned on an RTX 5090 at 5120x2160 Default

Testing

Tested: Windows 11, RTX 5090, driver 621.24, NVIDIA's nvngx_dlssnr.dll 310.9.16.0 (signed by NVIDIA, unchanged) in
the game's ngx folder:

  • Headless, through the control bridge (Kokiri Forest, DLAA): the DLSS 5 row listed only with the DLL found; On made
    feature 18 with Longshot's project ID ("DLSS 5 preflight: ... ready"); Model strengths Applied made it again with the
    four strengths, the preset row said Custom, choosing Longshot (now Default) put every row back; 50% made it at 1712x720; DLAA after
    the bloom (the SDR route) kept it running; Off let it go after 2 s. 4,421 frames, no failure.
  • On screen, about 25 minutes by hand (5120x2160, DLAA before the bloom): every row and style, model resolution 50 to
    100%, the four strengths, the skin mask, the preset, DLSS with dynamic resolution, DLAA again and HDR Native: NGX made
    the model 87 times in 35-170 ms of CPU each and evaluated 43,800 frames, no failure, no refused setting; many fast
    Off/On (the model kept within 2 s). The tester's values became the Default preset.
  • The model resolution's arrows: on screen, 100% to 65% made the model at each 5% step (7 makes, a hitch each);
    after the fix, headless, the same 7 steps 0.15 s apart made it once, at 3328x1408.
  • The head (d5c92e21), headless: DLSS 5 On from the tester's settings, then the page's Model resolution in 7 steps
    through the control bridge: one make, at 3328x1408; no Vulkan error in the log.
  • A/B with DLSS 5 Off against main: Measurements.
  • tests/run_all.py at the head d5c92e21: 910 pass, 24 fail, 55 skipped; 22 of the 24 fail on main 9046a8d7 on this PC
    too (test_auto_handheld, test_cmpflags, test_crash_dialog, test_dev_ab, test_dev_build, test_dev_migrate,
    test_fastfp_fma, test_float_add_subgroup, test_fma_soft, test_fpx_sticky, test_fpxkeep, test_game_menu_mouse_buttons,
    test_input_movie, test_linux_preflight, test_pads_after_menu, test_perf_report, test_portable_builder_startup,
    test_sdiv_overflow, test_spawn_emit, test_vbytes, test_vecfp, test_vfpx_elem); the other 2 (test_job_queue,
    test_sampler_admission) ran inside a job of the PC's queue and pass alone.
  • The website and guide fix (349bb6f4): the site's readGraphicsSettings and the new site test's checks pass with
    Node 24 (npm ci and the full site build not run here); the Guide screenshots job's three steps pass; the 14 Python
    checks that read the changed files pass; the screenshot fixture's menu sources, linked on Windows, leave the same
    symbols unresolved on main and here (none of DLSS 5's).
  • Detail strength 0 at any colour strength (2f3acd71): test_dlss_nr_composite.py checks detail 0 at colour 0, 1,
    1.26 and 2, the half step and the full boost from detail 1 (the detail-0 check fails on the old shader). Headless on
    the RTX 5090 (5120x2160, DLAA, DLSS 5 On at Default): detail 1.64, 0, 0.5 and 1.64 for 600 frames each: one model made,
    2,400 frames evaluated, no DLSS 5 refusal, no Vulkan error.

Not run here: a Linux build and Linux DLSS 5 (no native NR runtime here; the rows stay hidden without
RX_VK_DLSS_NR_LINUX=1); RTX 20/30/40; AMD FSR 3.1 / FSR 4 as the Upscaler with DLSS 5 on screen. No screenshots are
attached: with DLSS 5 Off (the default) the picture is main's, and with it On the look is the tester's preset.

Still to test:

  • Linux, any GPU: build the PR and start the game, expecting no DLSS 5 row and no change from main (the Test Farm,
    "@Beanstalk build this PR on Linux and start the game").
  • Windows, NVIDIA RTX 40 or older, with nvngx_dlssnr.dll in the ngx folder: DLSS 5 On, expecting the DLSS 5 row's line
    to say NVIDIA could not start it and the game to run on as with it Off (by hand).
  • Windows, NVIDIA RTX 50, with the DLL: AMD FSR 3.1 and FSR 4 as the Upscaler with DLSS 5 On, moving and changing the
    output resolution, expecting the picture as with DLSS as the Upscaler and no DLSS 5 refusal in the log (by hand).

Risks

What could break: with DLSS 5 On: a lot of GPU time (in the screen run at 5120x2160 with the model at 65% and HDR
Native, the presents were mostly 22-30 ms apart, against 77-86 fps with it Off in the A/B; not a controlled
measurement), the model's own video memory, and the picture where the model is wrong. With it Off or without the file:
nothing runs (the chain returns at its first line).

Turning it off: the DLSS 5 row Off (the default), RX_VK_DLSS_NR=0, or remove the file; revert the commit.

Compatibility: new keys in longshot_options.ini (dlss5, dlss5_*); no save, cache or ABI change.

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 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.
  • The SPIR-V headers regenerated (a shader changed).
  • Docs updated.
  • 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.

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

🤖 Generated with Claude Code

**Type:** feat · **Risk:** medium · **Tested on:** Windows 11, RTX 5090 · **Needs:** Windows, NVIDIA RTX 50 with NVIDIA's nvngx_dlssnr.dll, Linux build ## Summary DLSS 5 is NVIDIA's neural rendering model: it adds detail to faces, skin and surfaces. This PR brings TheDevil's DLSS 5 work (#619 and #620, from HypeZ85's Hookshot PR 1590) to current main as a drop-in: a player puts NVIDIA's own `nvngx_dlssnr.dll` in the game's `ngx` folder (or `%LOCALAPPDATA%\Longshot\ngx`), and DLSS 5 appears on the Graphics tab under the Upscaler's rows; without the file there is no row and no message. The Graphics tab gets three rows (DLSS 5, a Default/Custom preset tuned in the game, and DLSS 5 settings, which opens a page with the Bloodborne PC port's tuning rows); the preset says "Custom" once a row on the page is moved. It ran in the game on an RTX 5090 with NVIDIA's unchanged, signed file: 43,800 frames through every row and preset, no failure; with DLSS 5 Off (the default) it measures the same as main. ### Credits - **HypeZ85 (Valerio85)**: the original DLSS 5 integration, Hookshot PR 1590 (`a1f730de`): NGX feature 18 and its `DLSSNR.*` parameters. - **TheDevil**: brought it to Longshot in #173, #619 and #620 (the NGX path, the lifecycle and fallbacks, the HDR and scaled proxies, the NR time and VRAM lines, most of the tests). This PR starts from #619/#620's code as one commit with TheDevil as co-author, then changes it as below. - **The OptiScaler DLSS-NR fork** ([Dagherbou/OptiScaler_DLSSNR](https://github.com/Dagherbou/OptiScaler_DLSSNR), GPL-3.0): the public source of how the model is driven, and the composition the Bloodborne port's follows. - **The Bloodborne PC port** (PMWork): the rows and the composition (detail strength, colour strength, highlight guard); its blend between the picture's own colour and the model's follows **RenoDX's DLSS 5 addon (clshortfuse)**. ### Breakdown - **Who it helps:** players on an NVIDIA RTX GPU who have NVIDIA's DLSS 5 file (its FP8 model runs on RTX 50), with NVIDIA DLSS, DLAA or AMD FSR as the Upscaler. - **What was wrong:** #619/#620 had their own DLSS 5 page in `vk_menu.cpp`'s table (Enable, Intensity, NR resolution scale, Stage, Compare, Retry detection), shown in every NGX build, conflicting with main's menu modules, and had not run in the game. - **What changes:** a menu module `gpu/vk/menu/dlss5.cpp`: three rows on the Graphics tab, the tuning rows on a DLSS 5 settings page; the rows show only when the DLL is found where NGX searches; the model runs after the upscaler only (no jitter there, so it keeps its history); its picture comes back through the Bloodborne port's composition; the four model strengths are sent only at Model strengths Applied; a model resolution change settles 350 ms before the model is made again. - **What does not change:** everything with DLSS 5 Off (the default) or without the file: no row, no allocation, no dispatch; DLSS, DLAA, FSR, XeSS and frame generation as on main. Longshot does not include, download or change NVIDIA's file. - **How it was checked:** game-free tests (the rows, no DLL = no rows, the preset and Custom, the DLL search, the chain, the composite's blend run on the CPU); headless runs through the control bridge; a 25-minute screen run on an RTX 5090 through every row; a DLSS 5 Off A/B against main. - **What is still open:** a Linux build (the Test Farm); RTX 20/30/40 (NVIDIA's FP8 model is for RTX 50: the row says why it does not start); AMD FSR as the Upscaler with DLSS 5 on screen. - **Risk:** medium: a new pass after the upscaler while DLSS 5 is On; Off is main's path. ### Why #619 and #620 showed DLSS 5 runs through NGX's normal API with NVIDIA's signed file. The review on #619 asked for a run in the game, fewer player rows, the parameters' source, and checks cut with `srccut`. This PR: - **ran it in the game** with NVIDIA's unchanged, signed `nvngx_dlssnr.dll` 310.9.16.0 (Testing); - **shows nothing** to players without the file, and puts the rows in a module of their own: no slider on the Graphics tab, the tuning rows on a page of their own; - **names the sources** (Credits): the feature number and the parameter names come from HypeZ85's Hookshot PR 1590 and the public OptiScaler DLSS-NR fork; nothing is decompiled, no NVIDIA file is in the repository, and the player supplies NVIDIA's file; - **keeps the tuning rows for now on purpose**, on the DLSS 5 settings page: the maintainer tuning DLSS 5 for Longshot uses them to find the default; the plan is to drop the sliders once it is settled and keep the Default preset; - answers the correctness questions: the model no longer resets every frame (after the upscaler there is no jitter); NGX is checked before anything is made; `version.dll` comes from System32. ### What changed - `gpu/vk/menu/dlss5.cpp`, `dlss5.h` (new): on the Graphics tab right after Sharpness, DLSS 5, DLSS 5 preset (Default, Custom) and DLSS 5 settings, no heading of their own (the menu draws a section's title over rows all hidden); the DLSS 5 settings page holds Model resolution, Detail strength, Colour strength, Style, Model strengths, Intensity, Local structure, Local tone, Skin structure, Automatic skin mask and Highlight guard; the rows past On show while On; the four strengths locked unless Applied; every DLSS 5 row's help starts with `[EXPERIMENTAL]`; keys in `tests/test_menu_ini_keys.py`'s FROZEN. `gpu/vk/vk_menu.cpp`: the page's slot (`TAB_DLSS5`, beside the Simulated turf page's; Back returns to Graphics). - `gpu/vk/vk_dlss.cpp`, `vk_dlss.h`: DLSS 5 (NGX feature 18) from #619/#620, after the upscaler only; `nr_runtime()` / `dlss_nr_offered()` look for the DLL in every folder NGX searches (`runtime_dirs`); the strengths sent only at Applied; the model's preset 2 (the Bloodborne port's); DLSS's own `prepare`, `evaluate`, `release` and `dlss_retry` as on main. - `gpu/vk/dlss_nr_settings.h`, `dlss_nr_support.h`: the model's settings and their settle, the working size, why DLSS 5 does not run (messages for the row's line). - `gpu/vk/shaders/dlss_nr_composite.comp` (+ header, glslang 16.6.0): detail strength (a power above 1), the two-sided highlight guard, colour strength (OkLab chroma above 1, as much as the detail strength takes of the model's picture up to 1, so detail 0 is the upscaler's picture at any colour strength; the Bloodborne port adds it at any detail, and from detail 1 the two are the same). - `gpu/vk/vk_temporal.cpp`: DLSS 5 after the upscaler's evaluation, before the HUD. - `gpu/vk/vk_menu.cpp`: `RX_VK_DLSS_NR` at the start; the FPS counter's NR time and NR VRAM lines (Dev level). With DLSS 5 Off and nothing of it made, the chain returns before DLSS's lock; the DLL is looked for once a run. - Left out of #619/#620: the DLSS 5 page, Compare, Retry detection, Stage (Before), `RX_VK_DLSS_NR_INTENSITY` and the menu translations (the texts changed; translations can follow). - Docs: `docs/user/dlss5.md` (new), the settings table, `docs/dev/reference/switches.md`, two `docs/tested/` files. - Website and guide image: the site's settings check (`website/src/repo-docs/graphics-settings.ts`) gets the DLSS 5 rows' two conditions as badges and registers the preset and page rows, with a site test; `scripts/screenshots/menu.cpp` stands in for the menu's six new DLSS 5 calls; `settings-graphics.png` is kept after a source review (`docs/user/images/guide/source-review-6b76485a.md`, the manifest's review record). - Tests: `test_dlss5_menu.py`, `test_dlss_nr_runtime.py` (new); `test_dlss_nr_chain.py` (was `_stage`); the composite check runs the blend on the CPU; the checks that cut changed source follow it (`test_pass_barrier`, `test_menu_slider_ends`, `test_menu_env_overrides`); #619/#620's Compare, controls, i18n, menu and release checks go with what they checked. ## Measurements **Verdict:** with DLSS 5 Off (the default) the branch costs nothing measurable: median 83.6 fps against main's 81.7, within the spread of the runs (main 77.5 to 81.8, the branch 77.3 to 86.6). DLSS 5 On is the player's choice and costs a lot of GPU time (Risks). Setup: Windows 11 Pro build 26300, NVIDIA GeForce RTX 5090, driver 621.24, AMD Ryzen 7 9800X3D, 64 GB; Kokiri Forest, 5120x2160 with NVIDIA DLAA; the presents counted over 60 s, headless, A B A B A B (details below) Hardware: Windows 11 Pro build 26300; NVIDIA GeForce RTX 5090, driver 621.24; AMD Ryzen 7 9800X3D, 64 GB Scene: Kokiri Forest (child), the repository's kokiri-start save, camera still; 5120x2160, NVIDIA DLAA before the bloom, frame generation and V-Sync off, the frame cap off (HOS_FPS_MAX=1000), the tester's own settings otherwise (pinned with HOS_OPTIONS_FILE, a fresh copy each run, no DLSS 5 key: Off) Method: the game off-screen (HOS_HEADLESS=1) from the control bridge, each run a timing job of the PC's queue, A B A B A B; a warm-up of 1,800 presents, then the presents counted over 60 s; the median of 3 runs each. Both sides on the shared base of main 9046a8d7 (main alone, and this branch's pack over it), so the comparison is like for like (`dev.py ab` would have built a base of its own) Builds: main @ 9046a8d7; this PR @ ced68f16 (the same base). The head adds the settings page, the preset's name and the self-review's fixes after it; with DLSS 5 Off they only take work away (the chain returns before its lock), so the numbers hold | | Before: main @ 9046a8d7 | After: this PR @ ced68f16 (DLSS 5 Off) | |---|---|---| | fps, Kokiri Forest, 60 s | 81.7 (77.5, 81.8, 81.7) | 83.6 (77.3, 86.6, 83.6), within the spread | Every run: `switches set (8): HOS_AUDIO_MUTE=1, HOS_CONTROL, HOS_DISCORD=0, HOS_FPS_MAX=1000, HOS_HEADLESS=1, HOS_OPTIONS_FILE, LONGSHOT_BUILD_NAME, RX_VK_FRAMEGEN=0`; `NVIDIA DLSS: feature 1 made ... 5120x2160 ... mode 5 ... (DLAA before the bloom)`; no DLSS 5 line on either side. **On main fb724339** (after #2286's Rust builder and #2411's `game/` move; merged into this PR in 68b15b72 and 309593ca): not measured again. The merge changes no DLSS 5 code, and with DLSS 5 Off the chain returns at its first line, so the comparison above still holds; absolute fps on fb724339 differ from 9046a8d7's by #2286's builder, on both sides alike. ### Flags and settings Adds `RX_VK_DLSS_NR`, `RX_VK_DLSS_NR_DEBUG`, `RX_VK_DLSS_NR_LINUX`, `RX_VK_NR_TEST_REJECT_INTENSITY` and the options file's `dlss5` and `dlss5_*` keys. | Flag | What it is | Before this PR | After this PR | Effect | Helps / doesn't help / untested | Recommendation | |---|---|---|---|---|---|---| | `RX_VK_DLSS_NR` | DLSS 5 for one run | (none) | `=1`/`=0` over the DLSS 5 row | on or off | for A/B runs | unset | | `RX_VK_DLSS_NR_DEBUG` | a view of DLSS 5 | (none) | `1`..`5`: its input, the raw output, difference x20, depth, motion | diagnosis only, never saved | untested on screen | unset | | `RX_VK_DLSS_NR_LINUX` | Linux DLSS 5 | (none) | `=1` shows the rows and asks the native NGX | an experiment | untested (no native runtime) | unset | | `RX_VK_NR_TEST_REJECT_INTENSITY` | fault injection | (none) | only in `LONGSHOT_NR_TESTING` builds | none in ordinary builds | tests only | unset | | `dlss5`, `dlss5_*` (options file) | the DLSS 5 rows | (none) | Off; the Default preset (65%, detail 1.64, colour 1.26, Cinematic, Applied, intensity 1.62, local structure 1.22, local tone 1.14, skin 0.74, skin mask On, highlight guard 1.7x) | the rows' values, hundredths and tenths | tuned on an RTX 5090 at 5120x2160 | Default | ## Testing **Tested:** Windows 11, RTX 5090, driver 621.24, NVIDIA's `nvngx_dlssnr.dll` 310.9.16.0 (signed by NVIDIA, unchanged) in the game's `ngx` folder: - **Headless, through the control bridge** (Kokiri Forest, DLAA): the DLSS 5 row listed only with the DLL found; On made feature 18 with Longshot's project ID ("DLSS 5 preflight: ... ready"); Model strengths Applied made it again with the four strengths, the preset row said Custom, choosing Longshot (now Default) put every row back; 50% made it at 1712x720; DLAA after the bloom (the SDR route) kept it running; Off let it go after 2 s. 4,421 frames, no failure. - **On screen, about 25 minutes by hand** (5120x2160, DLAA before the bloom): every row and style, model resolution 50 to 100%, the four strengths, the skin mask, the preset, DLSS with dynamic resolution, DLAA again and HDR Native: NGX made the model 87 times in 35-170 ms of CPU each and evaluated 43,800 frames, no failure, no refused setting; many fast Off/On (the model kept within 2 s). The tester's values became the Default preset. - **The model resolution's arrows**: on screen, 100% to 65% made the model at each 5% step (7 makes, a hitch each); after the fix, headless, the same 7 steps 0.15 s apart made it once, at 3328x1408. - **The head (d5c92e21), headless**: DLSS 5 On from the tester's settings, then the page's Model resolution in 7 steps through the control bridge: one make, at 3328x1408; no Vulkan error in the log. - **A/B with DLSS 5 Off** against main: Measurements. - `tests/run_all.py` at the head d5c92e21: 910 pass, 24 fail, 55 skipped; 22 of the 24 fail on main 9046a8d7 on this PC too (test_auto_handheld, test_cmpflags, test_crash_dialog, test_dev_ab, test_dev_build, test_dev_migrate, test_fastfp_fma, test_float_add_subgroup, test_fma_soft, test_fpx_sticky, test_fpxkeep, test_game_menu_mouse_buttons, test_input_movie, test_linux_preflight, test_pads_after_menu, test_perf_report, test_portable_builder_startup, test_sdiv_overflow, test_spawn_emit, test_vbytes, test_vecfp, test_vfpx_elem); the other 2 (test_job_queue, test_sampler_admission) ran inside a job of the PC's queue and pass alone. - **The website and guide fix (349bb6f4)**: the site's `readGraphicsSettings` and the new site test's checks pass with Node 24 (`npm ci` and the full site build not run here); the Guide screenshots job's three steps pass; the 14 Python checks that read the changed files pass; the screenshot fixture's menu sources, linked on Windows, leave the same symbols unresolved on main and here (none of DLSS 5's). - **Detail strength 0 at any colour strength (2f3acd71)**: `test_dlss_nr_composite.py` checks detail 0 at colour 0, 1, 1.26 and 2, the half step and the full boost from detail 1 (the detail-0 check fails on the old shader). Headless on the RTX 5090 (5120x2160, DLAA, DLSS 5 On at Default): detail 1.64, 0, 0.5 and 1.64 for 600 frames each: one model made, 2,400 frames evaluated, no DLSS 5 refusal, no Vulkan error. Not run here: a Linux build and Linux DLSS 5 (no native NR runtime here; the rows stay hidden without `RX_VK_DLSS_NR_LINUX=1`); RTX 20/30/40; AMD FSR 3.1 / FSR 4 as the Upscaler with DLSS 5 on screen. No screenshots are attached: with DLSS 5 Off (the default) the picture is main's, and with it On the look is the tester's preset. **Still to test:** - Linux, any GPU: build the PR and start the game, expecting no DLSS 5 row and no change from main (the Test Farm, "@Beanstalk build this PR on Linux and start the game"). - Windows, NVIDIA RTX 40 or older, with nvngx_dlssnr.dll in the ngx folder: DLSS 5 On, expecting the DLSS 5 row's line to say NVIDIA could not start it and the game to run on as with it Off (by hand). - Windows, NVIDIA RTX 50, with the DLL: AMD FSR 3.1 and FSR 4 as the Upscaler with DLSS 5 On, moving and changing the output resolution, expecting the picture as with DLSS as the Upscaler and no DLSS 5 refusal in the log (by hand). ## Risks **What could break:** with DLSS 5 On: a lot of GPU time (in the screen run at 5120x2160 with the model at 65% and HDR Native, the presents were mostly 22-30 ms apart, against 77-86 fps with it Off in the A/B; not a controlled measurement), the model's own video memory, and the picture where the model is wrong. With it Off or without the file: nothing runs (the chain returns at its first line). **Turning it off:** the DLSS 5 row Off (the default), `RX_VK_DLSS_NR=0`, or remove the file; revert the commit. **Compatibility:** new keys in `longshot_options.ini` (`dlss5`, `dlss5_*`); no save, cache or ABI change. ## 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 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. - [x] The SPIR-V headers regenerated (a shader changed). - [x] Docs updated. - [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. Co-Authored-By: vivens12345671-netizen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
TheDevil's #619 (NR through the regular NGX path) and #620 (NR over Native HDR, NR
resolution scale) as one change on main 9046a8d7, their conflicts with main resolved:
- vk_dlss.cpp: main's retry Refusal (s.refusal) kept; #620's drop_nr() and the mutex
  around dlss_retry() kept.
- vk_menu.cpp: main's stepped sliders (#2383) and unsaved rows kept; #620's NR sliders,
  NR row lock, NR row preparation and NR ini parsing added to them.
- menu_i18n.h: both sides' new entries, in sorted order.
- tests/test_framegen_by_row.py: #620's structural cut of the options loop.

Original work: HypeZ85 (Valerio85), Hookshot PR #1590 (a1f730de); ported to Longshot by
TheDevil in #173, #619 and #620.

Not yet: three game-free tests whose text cuts moved with main's menu code
(test_audio_output_menu, test_dlss_nr_menu, test_dlss_nr_release).

Co-Authored-By: vivens12345671-netizen <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The DLSS 5 work of #619/#620 (the previous commit) made drop-in, with the Bloodborne PC port's
controls:

- gpu/vk/menu/dlss5.cpp (new): 13 rows on the Graphics tab right under the Upscaler's (after
  Sharpness): DLSS 5 On/Off, a DLSS 5 preset (Longshot, the Bloodborne port's settings, or Custom
  once a row is moved), model resolution, detail strength, colour strength, style, model
  strengths, intensity, local structure, local tone, skin structure, automatic skin mask,
  highlight guard. Shown only when vk_dlss.cpp dlss_nr_offered() finds nvngx_dlssnr.dll in a
  folder NGX searches (RX_VK_DLSS_DIR, the game's ngx folder, LOCALAPPDATA's Longshot/ngx), on an
  NVIDIA GPU, with DLSS, DLAA or FSR; the rows past On only while On. No heading of their own:
  the menu draws a title over rows all hidden.
- vk_menu.cpp: #620's DLSS 5 page, Compare, Retry detection and Stage out (main's text back, with
  the 12 checks that followed it); kept: RX_VK_DLSS_NR and the FPS counter's NR time and NR VRAM.
- Renderer: after the upscaler only (the Before path and TemporalFrame::nr_stage out; evaluate,
  prepare, release and dlss_retry as on main); the composite always runs with the model and
  takes Bloodborne's blend (detail strength, a two-sided highlight guard, colour strength with
  OkLab chroma above 1); the four strengths sent only at Model strengths Applied; the model's
  preset 2, as Bloodborne asks. RX_VK_DLSS_NR_INTENSITY and #620's menu translations out.
- Tests: test_dlss5_menu.py and test_dlss_nr_runtime.py (new), test_dlss_nr_chain.py (was
  _stage), the composite check runs the blend on the CPU; Compare, controls, i18n, menu and
  release checks out with what they checked.
- Docs: docs/user/dlss5.md (from docs/), the settings table, switches.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The DLSS 5 preset's values (and the options' defaults) from a screen run in Kokiri Forest, an
RTX 5090 at 5120x2160 with DLAA: model resolution 65%, detail strength 1.64, colour strength
1.26, Cinematic, model strengths Applied, intensity 1.62, local structure 1.22, local tone 1.14,
skin structure 0.74, automatic skin mask On, highlight guard 1.7x. Docs and the menu check follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The model resolution row's arrows, stepped from 100% to 65%, made the model again at each 5%
step: 7 makes of 57 to 172 ms of CPU, a hitch each, in a screen run at 5120x2160. A size from the
row now takes once it has held for 350 ms (dlss_nr_settings.h Settled), as the model's other
settings do; the first takes at once, and a new picture size still remakes the model at once.
Headless on an RTX 5090: the same 7 steps, 0.15 s apart, made the model once, at 3328x1408.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Graphics tab keeps three DLSS 5 rows under Sharpness: DLSS 5, DLSS 5 preset and DLSS 5 settings,
which opens a page (vk_menu.cpp TAB_DLSS5, beside the Simulated turf page; Back returns to Graphics)
with the 11 tuning rows: Model resolution, Detail strength, Colour strength, Style, Model strengths,
Intensity, Local structure, Local tone, Skin structure, Automatic skin mask, Highlight guard. Their
keys stay as they were. The settings table lists the page as one line; docs/user/dlss5.md says
where the rows are. Two docs/tested files: the DLSS 5 Off A/B and the screen run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Prathyush's word for the tuned values: Default (was Longshot) in the row, its help, the code
(kDlss5Default) and the docs. Model strengths is Applied at first (the default since the tuned
preset).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(dlss): DLSS 5 Off takes no lock and makes nothing, whatever RX_VK_DLSS_NR_DEBUG says
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
Website / Website preview, build (pull_request) Has been skipped
Website / Website preview, upload (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 8s
PR description / Description follows the template (pull_request_target) Successful in 14s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 16s
CI / Workflow lint (actionlint) (pull_request) Successful in 17s
Third-party parts / As their notes say (pull_request) Successful in 18s
CI / Website build and checks (pull_request) Failing after 19s
Website / Website builds (pull_request) Failing after 29s
d5c92e2163
From the self-review of the whole change:
- RX_VK_DLSS_NR_DEBUG with DLSS 5 Off made the input pipeline and images each frame, and with a
  view of the model's output let them go after 2 s and made them again every frame. Off is now Off
  whatever the debug view (its views are of DLSS 5 On).
- With DLSS 5 Off and nothing of it made, the chain returns before DLSS's State::mu, which NGX's
  first start can hold on the menu's or the present's thread.
- nvngx_dlssnr.dll is looked for once a run (the rows' answer): the check each second while On
  reads no folder, also on a GPU that is not NVIDIA's.
- The dump (RX_VK_DUMP) takes the model's output only: its input is the chain's image, made
  without transfer use. Comments that said the model's reset restarts DLSS's history now say what
  it does; nr_runtime is [[maybe_unused]] on Linux.
- test_dlss_nr_chain: Off with each debug view makes nothing; Off with nothing made takes no lock.

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

Tested in game: Windows 11 Pro 26300, RTX 5090, NVIDIA 621.24, NVIDIA's signed nvngx_dlssnr.dll 310.9.16.0 in the game's ngx folder: about 25 minutes on screen in Kokiri Forest at 5120x2160 with DLAA, every DLSS 5 row and style, the preset, model resolution 50-100%, DLSS with dynamic resolution, DLAA again and HDR Native; NGX made feature 18 87 times and evaluated 43,800 frames after the upscaler with no failure. Headless on the head d5c92e21: DLSS 5 On, the settings page's model resolution in 7 steps made the model once. With DLSS 5 Off: the same fps as main in a 3+3-run A/B.

Tested in game: Windows 11 Pro 26300, RTX 5090, NVIDIA 621.24, NVIDIA's signed nvngx_dlssnr.dll 310.9.16.0 in the game's ngx folder: about 25 minutes on screen in Kokiri Forest at 5120x2160 with DLAA, every DLSS 5 row and style, the preset, model resolution 50-100%, DLSS with dynamic resolution, DLAA again and HDR Native; NGX made feature 18 87 times and evaluated 43,800 frames after the upscaler with no failure. Headless on the head d5c92e21: DLSS 5 On, the settings page's model resolution in 7 steps made the model once. With DLSS 5 Off: the same fps as main in a 3+3-run A/B.
Member
@review
BeanBot left a comment

Recommendation: Request changes. At the default colour strength, setting Detail strength to zero still changes the picture’s saturation, although that setting promises the upscaler’s picture. The feature’s visual result, enabled cost, and untested platform paths also need evidence before merge.

Adds an optional NVIDIA neural-rendering pass after the temporal upscaler, with a settings page and diagnostics. It ran on an RTX 5090, but adds substantial GPU work when enabled and its default composition can alter colour even when detail is set to zero.

Blocking (4): must change before merging.

  1. L1 gpu/vk/shaders/dlss_nr_composite.comp:71: Colour amplification still runs when Detail strength is zero, so zero does not return the upscaler's picture as the row promises. (more on the line) Do: Make zero detail an identity regardless of colour strength, and add a composite test using detail 0 and colour greater than 1.
  2. L5: The check Guide screenshots / Guide images and local UI source review (pull_request) fails on this head and passes on the base branch: Failing after 16s.
  3. L6: The check CI / Website build and checks (pull_request) fails on this head and passes on the base branch: Failing after 19s.
  4. L7: The check Website / Website builds (pull_request) fails on this head and passes on the base branch: Failing after 29s.

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

  • L2: The new default look and its enabled GPU cost have not been compared with the original picture under controlled conditions. When: A player enabling the feature receives the tuned colour and detail settings and may lose substantial frame rate; the reported 22–30 ms presents were not measured against an equivalent Off run, and no comparison images are attached. Do: Capture the same scene with the feature Off and On at the head, including screenshots and interleaved frame-time, 1% low and VRAM measurements at a player-relevant resolution.
  • L3: The FSR-to-DLSS 5 path has not been exercised on screen. When: A player selecting FSR with DLSS 5 enabled takes the new depth, motion and composition path, but the recorded screen run used NVIDIA upscalers. Do: Run FSR 3.1 and FSR 4 with DLSS 5 on an NVIDIA system, including motion and a resolution change, and check the picture and log.
  • L4: The changed platform code has not yet been built and started on Linux, and the unsupported older-RTX fallback has not been run. When: Linux players and Windows players with older RTX cards can take platform or capability paths that the RTX 5090 Windows run did not exercise. Do: Build and start the head on Linux with the default switches, and try the supplied DLL on an older RTX card to verify a clear fallback and continued gameplay.

@fix can do L1, L5, L6 and L7.

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

Does it help: Unproven visually: the author reports 43,800 evaluated frames on an RTX 5090 but supplies no before-and-after images. With DLSS 5 off, three headless runs per side measured medians of 81.7 fps on main and 83.6 fps on an earlier PR commit, within the reported run-to-run spread; there is no controlled enabled-cost comparison.

Other systems: The new pass can follow DLSS, DLAA and FSR, including HDR and dynamic resolution. The reported Windows run covers DLAA, DLSS dynamic resolution and HDR on an RTX 5090; FSR on screen, older RTX cards and a Linux build and start remain untested. The off-path comparison is headless and predates the final commits.

Switches: RX_VK_DLSS_NR defaults to the saved row, which defaults Off; RX_VK_DLSS_NR_DEBUG defaults to 0; RX_VK_DLSS_NR_LINUX defaults Off; RX_VK_NR_TEST_REJECT_INTENSITY is unset and only acts in test builds. These have switch-table entries. The saved DLSS 5 controls default to the author's tuned preset; its visual suitability beyond the tested scene is unproven.

Reviewed: d5c92e2163 against 9046a8d750: Read the repository's AGENTS.md, CONTRIBUTING.md, PR template and relevant standards; the commit log, rendering and menu diffs, DLSS 5 settings and support headers, shaders, menu module, and portions of the new tests and recorded runs. Skimmed generated SPIR-V and did not read every changed test or every unchanged portion of the large renderer files in full. docs/review-checklist.md was absent.; nothing run (a code review).

Checked and fine:

  • The PR records AI assistance in its commits.
  • The added switch names have entries in switches.def.
  • The reported screen run exercised settings changes, HDR and DLSS dynamic resolution on an RTX 5090.
  • No vendor runtime or game-derived output is apparent among the listed changed files.

Testing: Read-only review; no builds, scripts or tests were run. The supplied CI reports three head-only failures, which the review bot handles separately.

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


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

**Recommendation: Request changes.** At the default colour strength, setting Detail strength to zero still changes the picture’s saturation, although that setting promises the upscaler’s picture. The feature’s visual result, enabled cost, and untested platform paths also need evidence before merge. Adds an optional NVIDIA neural-rendering pass after the temporal upscaler, with a settings page and diagnostics. It ran on an RTX 5090, but adds substantial GPU work when enabled and its default composition can alter colour even when detail is set to zero. **Blocking (4)**: must change before merging. 1. **L1** `gpu/vk/shaders/dlss_nr_composite.comp:71`: Colour amplification still runs when Detail strength is zero, so zero does not return the upscaler's picture as the row promises. (more on the line) **Do:** Make zero detail an identity regardless of colour strength, and add a composite test using detail 0 and colour greater than 1. 2. **L5**: The check `Guide screenshots / Guide images and local UI source review (pull_request)` fails on this head and passes on the base branch: Failing after 16s. 3. **L6**: The check `CI / Website build and checks (pull_request)` fails on this head and passes on the base branch: Failing after 19s. 4. **L7**: The check `Website / Website builds (pull_request)` fails on this head and passes on the base branch: Failing after 29s. **Testing before merging (3)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The new default look and its enabled GPU cost have not been compared with the original picture under controlled conditions. *When:* A player enabling the feature receives the tuned colour and detail settings and may lose substantial frame rate; the reported 22–30 ms presents were not measured against an equivalent Off run, and no comparison images are attached. **Do:** Capture the same scene with the feature Off and On at the head, including screenshots and interleaved frame-time, 1% low and VRAM measurements at a player-relevant resolution. - **L3**: The FSR-to-DLSS 5 path has not been exercised on screen. *When:* A player selecting FSR with DLSS 5 enabled takes the new depth, motion and composition path, but the recorded screen run used NVIDIA upscalers. **Do:** Run FSR 3.1 and FSR 4 with DLSS 5 on an NVIDIA system, including motion and a resolution change, and check the picture and log. - **L4**: The changed platform code has not yet been built and started on Linux, and the unsupported older-RTX fallback has not been run. *When:* Linux players and Windows players with older RTX cards can take platform or capability paths that the RTX 5090 Windows run did not exercise. **Do:** Build and start the head on Linux with the default switches, and try the supplied DLL on an older RTX card to verify a clear fallback and continued gameplay. `@fix` can do L1, L5, L6 and L7. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven visually: the author reports 43,800 evaluated frames on an RTX 5090 but supplies no before-and-after images. With DLSS 5 off, three headless runs per side measured medians of 81.7 fps on main and 83.6 fps on an earlier PR commit, within the reported run-to-run spread; there is no controlled enabled-cost comparison. **Other systems:** The new pass can follow DLSS, DLAA and FSR, including HDR and dynamic resolution. The reported Windows run covers DLAA, DLSS dynamic resolution and HDR on an RTX 5090; FSR on screen, older RTX cards and a Linux build and start remain untested. The off-path comparison is headless and predates the final commits. **Switches:** RX_VK_DLSS_NR defaults to the saved row, which defaults Off; RX_VK_DLSS_NR_DEBUG defaults to 0; RX_VK_DLSS_NR_LINUX defaults Off; RX_VK_NR_TEST_REJECT_INTENSITY is unset and only acts in test builds. These have switch-table entries. The saved DLSS 5 controls default to the author's tuned preset; its visual suitability beyond the tested scene is unproven. **Reviewed:** d5c92e2163c1 against 9046a8d75019: Read the repository's AGENTS.md, CONTRIBUTING.md, PR template and relevant standards; the commit log, rendering and menu diffs, DLSS 5 settings and support headers, shaders, menu module, and portions of the new tests and recorded runs. Skimmed generated SPIR-V and did not read every changed test or every unchanged portion of the large renderer files in full. docs/review-checklist.md was absent.; nothing run (a code review). **Checked and fine:** - The PR records AI assistance in its commits. - The added switch names have entries in switches.def. - The reported screen run exercised settings changes, HDR and DLSS dynamic resolution on an RTX 5090. - No vendor runtime or game-derived output is apparent among the listed changed files. **Testing:** Read-only review; no builds, scripts or tests were run. The supplied CI reports three head-only failures, which the review bot handles separately. **Overlaps and merge order:** Not checked; network access is unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -0,0 +68,4 @@
float amplified = pow(max(ratio, 1e-6), 1.0 + max(pc.detail - 1.0, 0.0));
float guard = max(pc.guard, 1.0);
float bounded = clamp(amplified, 1.0 / guard, guard);
up *= bounded / max(ratio, 1e-6);
Member

L1 (blocking): Colour amplification still runs when Detail strength is zero, so zero does not return the upscaler's picture as the row promises.

When: With the default colour strength of 1.26 and Detail strength set to 0, the blend initially selects the original pixel, then the OkLab chroma multiplication increases its saturation. This affects both the full-resolution path and the scaled residual path.

Do: Make zero detail an identity regardless of colour strength, and add a composite test using detail 0 and colour greater than 1.

**L1** (blocking): Colour amplification still runs when Detail strength is zero, so zero does not return the upscaler's picture as the row promises. *When:* With the default colour strength of 1.26 and Detail strength set to 0, the blend initially selects the original pixel, then the OkLab chroma multiplication increases its saturation. This affects both the full-resolution path and the scaled residual path. **Do:** Make zero detail an identity regardless of colour strength, and add a composite test using detail 0 and colour greater than 1.
- website/src/repo-docs/graphics-settings.ts: badges for DLSS 5's conditions ("shown only with NVIDIA's
  `nvngx_dlssnr.dll`", "shown while DLSS 5 is On"); the DLSS 5 preset (a view of the page's rows) and the DLSS 5
  settings page row registered as Dynamic resolution's and Simulated turf's are. The site's build stopped at "The
  table names no condition for DLSS 5". A site test for both.
- docs/user/graphics-and-controls.md: the DLSS 5 preset's line names its condition.
- scripts/screenshots/menu.cpp: stand-ins for the menu's six new DLSS 5 calls (no DLL: no DLSS 5 row).
- docs/user/images/guide: settings-graphics.png kept after reviewing the six changed UI sources and five new ones
  (source-review-2c4516b8.md); the manifest's review record and fixture hash follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(dlss): DLSS 5's detail strength 0 is the upscaler's picture at any colour strength
All checks were successful
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
Website / Website preview, build (pull_request) Has been skipped
Website / Website preview, upload (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 6s
CI / Workflow lint (actionlint) (pull_request) Successful in 12s
Guide screenshots / Guide images and local UI source review (pull_request) Successful in 13s
Third-party parts / As their notes say (pull_request) Successful in 14s
CI / Website build and checks (pull_request) Successful in 1m12s
Website / Website builds (pull_request) Successful in 1m14s
PR description / Description follows the template (pull_request_target) Successful in 8s
2f3acd718c
The composite's extra chroma above colour strength 1 ran at any detail strength, so detail 0 with the default colour
1.26 still saturated the upscaler's picture, though the row says 0 is the upscaler's alone (BeanBot's review, L1). It now
follows the detail strength up to 1: none at 0, all of it from 1. From detail 1 the shader does the same operations as
before, so the Default preset (detail 1.64) looks the same. The Bloodborne port's composite adds it at any detail;
docs/user/dlss5.md says where this differs.

- gpu/vk/shaders/dlss_nr_composite.comp, its header (glslang 16.6.0, vulkan1.3).
- tests/test_dlss_nr_composite.py: detail 0 at colour 0, 1, 1.26 and 2; the half step at detail 0.5; the full boost
  from detail 1. The detail-0 check fails on the old shader.
- Headless on an RTX 5090 (5120x2160, DLAA, DLSS 5 On, Default): detail 1.64, 0, 0.5, 1.64 for 600 frames each: one
  model made, 2,400 frames evaluated, no DLSS 5 refusal, no Vulkan error.

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

Thanks for the review. At the new head:

  • L1 (fixed, 2f3acd71): the extra chroma above colour strength 1 now follows Detail strength up to 1: none at 0, all of
    it from 1. Detail 0 is the upscaler's picture at any colour strength, as its row says. From detail 1 the shader does the
    same operations as before, so the Default preset (detail 1.64) looks the same. The Bloodborne port's composite adds the
    chroma at any detail; the PR description and docs/user/dlss5.md say where this differs. tests/test_dlss_nr_composite.py
    now checks detail 0 at colour 0, 1, 1.26 and 2, the half step at detail 0.5 and the full boost from detail 1; the
    detail-0 check fails on the old shader. Headless on the RTX 5090 (5120x2160, DLAA, DLSS 5 On at Default): detail 1.64, 0, 0.5 and 1.64 for 600
    frames each: one model made, 2,400 frames evaluated, no DLSS 5 refusal, no Vulkan error.
  • L5, L6, L7 (fixed, 349bb6f4): the website's settings check now knows the DLSS 5 rows' two conditions and registers
    the preset and page rows, with a site test. The Graphics guide image is kept after a source review
    (docs/user/images/guide/source-review-2c4516b8.md): with no DLSS 5 file the fixture, like a PC without it, shows no
    DLSS 5 row. The fixture gets stand-ins for the menu's six new DLSS 5 calls.
  • L2: DLSS 5 is Off by default, and Off measures the same as main (Measurements). The On cost depends on the model
    resolution; the FPS counter's Dev level shows DLSS 5's GPU time and VRAM. Whether an On comparison is needed before
    merge is for the maintainers.
  • L3, L4: in Still to test: FSR 3.1 and FSR 4 with DLSS 5 on screen (by hand, RTX 50), a Linux build and start (Test
    Farm), an older RTX with the DLL (by hand).
Thanks for the review. At the new head: - **L1** (fixed, 2f3acd71): the extra chroma above colour strength 1 now follows Detail strength up to 1: none at 0, all of it from 1. Detail 0 is the upscaler's picture at any colour strength, as its row says. From detail 1 the shader does the same operations as before, so the Default preset (detail 1.64) looks the same. The Bloodborne port's composite adds the chroma at any detail; the PR description and `docs/user/dlss5.md` say where this differs. `tests/test_dlss_nr_composite.py` now checks detail 0 at colour 0, 1, 1.26 and 2, the half step at detail 0.5 and the full boost from detail 1; the detail-0 check fails on the old shader. Headless on the RTX 5090 (5120x2160, DLAA, DLSS 5 On at Default): detail 1.64, 0, 0.5 and 1.64 for 600 frames each: one model made, 2,400 frames evaluated, no DLSS 5 refusal, no Vulkan error. - **L5, L6, L7** (fixed, 349bb6f4): the website's settings check now knows the DLSS 5 rows' two conditions and registers the preset and page rows, with a site test. The Graphics guide image is kept after a source review (`docs/user/images/guide/source-review-2c4516b8.md`): with no DLSS 5 file the fixture, like a PC without it, shows no DLSS 5 row. The fixture gets stand-ins for the menu's six new DLSS 5 calls. - **L2**: DLSS 5 is Off by default, and Off measures the same as main (Measurements). The On cost depends on the model resolution; the FPS counter's Dev level shows DLSS 5's GPU time and VRAM. Whether an On comparison is needed before merge is for the maintainers. - **L3, L4**: in Still to test: FSR 3.1 and FSR 4 with DLSS 5 on screen (by hand, RTX 50), a Linux build and start (Test Farm), an older RTX with the DLL (by hand).
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The detail-strength fix addresses the reported colour amplification. The enabled look and cost, FSR path, Linux startup, and older RTX fallback still need the runs identified in the ledger. Recommend approval; not approved on the forge.

Adds optional DLSS 5 neural rendering and tuning controls for players who supply NVIDIA's runtime. It adds a rendering pass and settings complexity, with a substantial GPU cost when enabled.

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

  • L2: The new default look and its enabled GPU cost have not been compared with the original picture under controlled conditions. When: A player enabling the feature receives the tuned colour and detail settings and may lose substantial frame rate; the reported 22–30 ms presents were not measured against an equivalent Off run, and no comparison images are attached. Do: Capture the same scene with the feature Off and On at the head, including screenshots and interleaved frame-time, 1% low and VRAM measurements at a player-relevant resolution.
  • L3: The FSR-to-DLSS 5 path has not been exercised on screen. When: A player selecting FSR with DLSS 5 enabled takes the new depth, motion and composition path, but the recorded screen run used NVIDIA upscalers. Do: Run FSR 3.1 and FSR 4 with DLSS 5 on an NVIDIA system, including motion and a resolution change, and check the picture and log.
  • L4: The changed platform code has not yet been built and started on Linux, and the unsupported older-RTX fallback has not been run. When: Linux players and Windows players with older RTX cards can take platform or capability paths that the RTX 5090 Windows run did not exercise. Do: Build and start the head on Linux with the default switches, and try the supplied DLL on an older RTX card to verify a clear fallback and continued gameplay.

Since the last review (on d5c92e2163)
Resolved: L1 (Colour amplification still runs when Detail strength is zero, so zero does not return the…); L5 (The check Guide screenshots / Guide images and local UI source review (pull_request) fai…); L6 (The check CI / Website build and checks (pull_request) fails on this head and passes on…); L7 (The check Website / Website builds (pull_request) fails on this head and passes on the b…)
Still open: L2 (The new default look and its enabled GPU cost have not been compared with the original pic…); L3 (The FSR-to-DLSS 5 path has not been exercised on screen.); L4 (The changed platform code has not yet been built and started on Linux, and the unsupported…)

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

Does it help: Unproven for the enabled visual result and cost: there is no controlled comparison with the original picture. The reported Off comparison was 81.7 versus 83.6 median FPS across three runs per side on an RTX 5090, within the run-to-run spread.

Other systems: The RTX 5090 DLAA path ran on screen; FSR with DLSS 5, Linux build and startup, and older RTX fallback remain untested. The default-off path was measured on Windows with NVIDIA hardware.

Switches: RX_VK_DLSS_NR overrides the saved Off default; RX_VK_DLSS_NR_DEBUG and RX_VK_DLSS_NR_LINUX default unset; RX_VK_NR_TEST_REJECT_INTENSITY is restricted to testing builds. The dlss5 options default to Off with a tuned preset; the Off default is supported by the reported measurements.

Reviewed: 2f3acd718c against 9046a8d750: Read the composite shader, changed website settings parser and screenshot fixture diff, repository rules and pull request template; skimmed the recorded runs, shader and documentation changes. The full original pull request diff, generated headers, and all changed code files were not read in full.; nothing run (a code review).

Checked and fine:

  • The detail-zero change preserves the previous chroma boost at detail strength 1 and above.
  • The website parser registers the DLSS 5 preset and settings page and recognizes their stated visibility conditions.

Testing: No commands from the project or tests were run. The author reports a Windows RTX 5090 screen run and headless checks; the outstanding hardware runs are listed in the ledger.

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


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

**Recommendation: Approve.** The code is ready: only testing is left. The detail-strength fix addresses the reported colour amplification. The enabled look and cost, FSR path, Linux startup, and older RTX fallback still need the runs identified in the ledger. Recommend approval; not approved on the forge. Adds optional DLSS 5 neural rendering and tuning controls for players who supply NVIDIA's runtime. It adds a rendering pass and settings complexity, with a substantial GPU cost when enabled. **Testing before merging (3)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The new default look and its enabled GPU cost have not been compared with the original picture under controlled conditions. *When:* A player enabling the feature receives the tuned colour and detail settings and may lose substantial frame rate; the reported 22–30 ms presents were not measured against an equivalent Off run, and no comparison images are attached. **Do:** Capture the same scene with the feature Off and On at the head, including screenshots and interleaved frame-time, 1% low and VRAM measurements at a player-relevant resolution. - **L3**: The FSR-to-DLSS 5 path has not been exercised on screen. *When:* A player selecting FSR with DLSS 5 enabled takes the new depth, motion and composition path, but the recorded screen run used NVIDIA upscalers. **Do:** Run FSR 3.1 and FSR 4 with DLSS 5 on an NVIDIA system, including motion and a resolution change, and check the picture and log. - **L4**: The changed platform code has not yet been built and started on Linux, and the unsupported older-RTX fallback has not been run. *When:* Linux players and Windows players with older RTX cards can take platform or capability paths that the RTX 5090 Windows run did not exercise. **Do:** Build and start the head on Linux with the default switches, and try the supplied DLL on an older RTX card to verify a clear fallback and continued gameplay. **Since the last review** (on d5c92e2163c1) Resolved: L1 (Colour amplification still runs when Detail strength is zero, so zero does not return the…); L5 (The check `Guide screenshots / Guide images and local UI source review (pull_request)` fai…); L6 (The check `CI / Website build and checks (pull_request)` fails on this head and passes on…); L7 (The check `Website / Website builds (pull_request)` fails on this head and passes on the b…) Still open: L2 (The new default look and its enabled GPU cost have not been compared with the original pic…); L3 (The FSR-to-DLSS 5 path has not been exercised on screen.); L4 (The changed platform code has not yet been built and started on Linux, and the unsupported…) <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for the enabled visual result and cost: there is no controlled comparison with the original picture. The reported Off comparison was 81.7 versus 83.6 median FPS across three runs per side on an RTX 5090, within the run-to-run spread. **Other systems:** The RTX 5090 DLAA path ran on screen; FSR with DLSS 5, Linux build and startup, and older RTX fallback remain untested. The default-off path was measured on Windows with NVIDIA hardware. **Switches:** RX_VK_DLSS_NR overrides the saved Off default; RX_VK_DLSS_NR_DEBUG and RX_VK_DLSS_NR_LINUX default unset; RX_VK_NR_TEST_REJECT_INTENSITY is restricted to testing builds. The dlss5 options default to Off with a tuned preset; the Off default is supported by the reported measurements. **Reviewed:** 2f3acd718c27 against 9046a8d75019: Read the composite shader, changed website settings parser and screenshot fixture diff, repository rules and pull request template; skimmed the recorded runs, shader and documentation changes. The full original pull request diff, generated headers, and all changed code files were not read in full.; nothing run (a code review). **Checked and fine:** - The detail-zero change preserves the previous chroma boost at detail strength 1 and above. - The website parser registers the DLSS 5 preset and settings page and recognizes their stated visibility conditions. **Testing:** No commands from the project or tests were run. The author reports a Windows RTX 5090 screen run and headless checks; the outstanding hardware runs are listed in the ledger. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
feat(dlss): every DLSS 5 row's help says [EXPERIMENTAL]
All checks were successful
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
Website / Website preview, build (pull_request) Has been skipped
Website / Website preview, upload (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 7s
PR description / Description follows the template (pull_request_target) Successful in 9s
Guide screenshots / Guide images and local UI source review (pull_request) Successful in 12s
Third-party parts / As their notes say (pull_request) Successful in 14s
CI / Workflow lint (actionlint) (pull_request) Successful in 16s
Website / Website builds (pull_request) Successful in 2m20s
CI / Website build and checks (pull_request) Successful in 2m20s
7492ea7ac9
Prathyush's ask: the help text of each DLSS 5 row (DLSS 5, DLSS 5 preset, DLSS 5 settings and the eleven rows of the
DLSS 5 settings page) starts with "[EXPERIMENTAL]", wrapped again to 120 columns. No other text changes.

settings-graphics.png keeps its review: gpu/vk/menu/dlss5.cpp is one of its reviewed sources, and its DLSS 5 rows stay
hidden without NVIDIA's file, as in the fixture. The review record moves to sha256:6b76485a
(source-review-6b76485a.md, renamed from 2c4516b8).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two conflicts, both in docs and the website:
- website/src/repo-docs/graphics-settings.ts: the coverage condition keeps #2503's `!dlss5Page` and #2411's
  `!row.gameRow`.
- docs/user/images/guide/manifest.json: settings-graphics.png's review records the inputs both sides changed at the
  merge (gpu/vk/menu_module.h, vk_menu.cpp, vk_menu.h, vk_temporal.h, scripts/screenshots/menu.cpp) and main's hashes
  for the rest; gpu/vk/oot_cheat_items.h left the list (#2411 moved it to game/). The image is unchanged
  (source-review-2503-fb724339.md); scripts/check_guide_screenshots.py --review-sources passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
test(dlss5): the menu check links game/menu's rows, as compile_menu does since #2411
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 26s
CI / What the change needs (pull_request) Successful in 30s
CI / Workflow lint (actionlint) (pull_request) Successful in 46s
Guide screenshots / Guide images and local UI source review (pull_request) Successful in 50s
Third-party parts / As their notes say (pull_request) Successful in 55s
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Failing after 48s
CI / Website build and checks (pull_request) Successful in 1m24s
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Successful in 1m27s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 43s
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Successful in 23s
CI / Lint (pre-commit, ShellCheck) (pull_request) Failing after 6m45s
CI / longshot-builder end to end (synthetic game) (pull_request) Successful in 2m32s
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Failing after 9m26s
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Failing after 10m4s
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Failing after 11m11s
PR description / Description follows the template (pull_request_target) Successful in 22s
309593ca2f
gpu/vk/menu/game_rows.cpp (#2411) asks game/menu/rows.c for game_menu_rows directly under MENU_LAYOUT_ONLY; this
check compiles the menu's modules itself, for its own renderer stand-ins, and did not link it ("undefined symbol:
game_menu_rows").

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

Merged main fb724339 (68b15b72, 309593ca). The two conflicts were docs and website only (the guide manifest's review hashes, graphics-settings.ts's coverage condition), and test_dlss5_menu now links game/menu's rows as compile_menu does since #2411. The A/B compared main and this change with DLSS 5 Off; the merge changes no DLSS 5 code, which does nothing while DLSS 5 is Off, so that comparison still holds (absolute FPS on fb724339 differ by #2286's builder, on both sides). The renderer compiles on the merge, and run_all.py --changed passes except for main's own failures on this PC. CI part 1/4 failed only in downloading glslang (curl 56); a re-run should pass.

Merged main fb724339 (68b15b72, 309593ca). The two conflicts were docs and website only (the guide manifest's review hashes, `graphics-settings.ts`'s coverage condition), and `test_dlss5_menu` now links `game/menu`'s rows as `compile_menu` does since #2411. The A/B compared main and this change with DLSS 5 Off; the merge changes no DLSS 5 code, which does nothing while DLSS 5 is Off, so that comparison still holds (absolute FPS on fb724339 differ by #2286's builder, on both sides). The renderer compiles on the merge, and `run_all.py --changed` passes except for main's own failures on this PC. CI part 1/4 failed only in downloading glslang (curl 56); a re-run should pass.
test: the 17 ruff findings of the new Lint check in the changed tests
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 12s
CI / What the change needs (pull_request) Successful in 13s
PR description / Description follows the template (pull_request_target) Successful in 17s
Guide screenshots / Guide images and local UI source review (pull_request) Successful in 23s
CI / Workflow lint (actionlint) (pull_request) Successful in 24s
Third-party parts / As their notes say (pull_request) Successful in 25s
CI / Lint (pre-commit, ShellCheck) (pull_request) Failing after 2m46s
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Failing after 3m0s
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Failing after 2m20s
CI / Website build and checks (pull_request) Successful in 1m46s
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Successful in 2m11s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 1m25s
CI / longshot-builder end to end (synthetic game) (pull_request) Successful in 2m26s
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Successful in 40s
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Failing after 11m40s
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Failing after 13m24s
500358d403
Forgejo's Lint (#2538, #2548) runs ruff on what a pull request changes. Each one-line statement is on its own line
(E701, E702: test_dlss_nr_actions.py, test_dlss_nr_composite.py), the unused srccut imports are gone (F401:
test_dlss_nr_lifecycle.py, test_dlss_nr_settings.py, test_dlss_nr_support.py), and so are two that main has too in
files this change touches: test_recorder_sync.py's unused `sys` (F401) and test_menu_ini_keys.py's second
"grass_distance" key (F601). No check changes what it checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
@review
HumanBean removed their assignment 2026-11-25 19:03:15 +00:00
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. DLSS 5 ran on an RTX 5090, but its enabled default look and cost still need a controlled comparison, and the FSR, Linux and older-RTX paths remain untested. Recommend approval; not approved on the forge.

The change adds an optional DLSS 5 pass and tuning controls for players who supply NVIDIA's runtime. It is off by default; enabling it adds GPU work and changes the picture.

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

  • L2: The new default look and its enabled GPU cost have not been compared with the original picture under controlled conditions. When: A player enabling the feature receives the tuned colour and detail settings and may lose substantial frame rate; the reported 22–30 ms presents were not measured against an equivalent Off run, and no comparison images are attached. Do: Capture the same scene with the feature Off and On at the head, including screenshots and interleaved frame-time, 1% low and VRAM measurements at a player-relevant resolution.
  • L3: The FSR-to-DLSS 5 path has not been exercised on screen. When: A player selecting FSR with DLSS 5 enabled takes the new depth, motion and composition path, but the recorded screen run used NVIDIA upscalers. Do: Run FSR 3.1 and FSR 4 with DLSS 5 on an NVIDIA system, including motion and a resolution change, and check the picture and log.
  • L4: The changed platform code has not yet been built and started on Linux, and the unsupported older-RTX fallback has not been run. When: Linux players and Windows players with older RTX cards can take platform or capability paths that the RTX 5090 Windows run did not exercise. Do: Build and start the head on Linux with the default switches, and try the supplied DLL on an older RTX card to verify a clear fallback and continued gameplay.

Since the last review (on 2f3acd718c)
Still open: L2 (The new default look and its enabled GPU cost have not been compared with the original pic…); L3 (The FSR-to-DLSS 5 path has not been exercised on screen.); L4 (The changed platform code has not yet been built and started on Linux, and the unsupported…)

Checks: Failing on this head, which is behind its base, where it passes: CI / Lint (pre-commit, ShellCheck) (pull_request). @rebase (or @fix) brings it up to date and runs it again; not held against it. Still running: 9 checks.

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

Does it help: Unproven for the enabled default look and cost: no controlled on/off visual and GPU-time comparison is recorded. With DLSS 5 off, the earlier three-run medians were 81.7 fps on main and 83.6 fps on the branch, within the reported run-to-run spread; these measurements predate the merge to the current base.

Other systems: The recorded on-screen run covers Windows and an RTX 5090 with DLAA, dynamic-resolution DLSS and HDR Native. FSR 3.1 and FSR 4 with DLSS 5 on screen, Linux build and startup, and the older-RTX fallback remain open. CI is still running.

Switches: RX_VK_DLSS_NR is unset by default and overrides the saved Off setting; RX_VK_DLSS_NR_DEBUG defaults to 0; RX_VK_DLSS_NR_LINUX defaults off; RX_VK_NR_TEST_REJECT_INTENSITY is available only in testing builds. The saved DLSS 5 setting defaults Off. These are reasonable defaults for an experimental feature, subject to the outstanding runs.

Reviewed: 500358d403 against fb724339ae: Read the since-ledger changes in the DLSS 5 menu and test files, the DLSS 5 menu diff, the settings and support headers, and the recorded-run summaries. The full base diff and all changed code files were not read in full; generated files and the guide manifest were not fully reviewed.; nothing run (a code review).

Checked and fine:

  • The since-ledger menu changes add the experimental label without changing the controls' behavior.
  • The recorded RTX 5090 run exercised the settings and evaluated 43,800 frames without a reported failure.

Testing: No tests or project code were run during this review. The author reports a Windows RTX 5090 game run and an off-state A/B; CI remains in progress.

Overlaps and merge order: Not checked.


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. DLSS 5 ran on an RTX 5090, but its enabled default look and cost still need a controlled comparison, and the FSR, Linux and older-RTX paths remain untested. Recommend approval; not approved on the forge. The change adds an optional DLSS 5 pass and tuning controls for players who supply NVIDIA's runtime. It is off by default; enabling it adds GPU work and changes the picture. **Testing before merging (3)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The new default look and its enabled GPU cost have not been compared with the original picture under controlled conditions. *When:* A player enabling the feature receives the tuned colour and detail settings and may lose substantial frame rate; the reported 22–30 ms presents were not measured against an equivalent Off run, and no comparison images are attached. **Do:** Capture the same scene with the feature Off and On at the head, including screenshots and interleaved frame-time, 1% low and VRAM measurements at a player-relevant resolution. - **L3**: The FSR-to-DLSS 5 path has not been exercised on screen. *When:* A player selecting FSR with DLSS 5 enabled takes the new depth, motion and composition path, but the recorded screen run used NVIDIA upscalers. **Do:** Run FSR 3.1 and FSR 4 with DLSS 5 on an NVIDIA system, including motion and a resolution change, and check the picture and log. - **L4**: The changed platform code has not yet been built and started on Linux, and the unsupported older-RTX fallback has not been run. *When:* Linux players and Windows players with older RTX cards can take platform or capability paths that the RTX 5090 Windows run did not exercise. **Do:** Build and start the head on Linux with the default switches, and try the supplied DLL on an older RTX card to verify a clear fallback and continued gameplay. **Since the last review** (on 2f3acd718c27) Still open: L2 (The new default look and its enabled GPU cost have not been compared with the original pic…); L3 (The FSR-to-DLSS 5 path has not been exercised on screen.); L4 (The changed platform code has not yet been built and started on Linux, and the unsupported…) **Checks:** Failing on this head, which is behind its base, where it passes: `CI / Lint (pre-commit, ShellCheck) (pull_request)`. `@rebase` (or `@fix`) brings it up to date and runs it again; not held against it. Still running: 9 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for the enabled default look and cost: no controlled on/off visual and GPU-time comparison is recorded. With DLSS 5 off, the earlier three-run medians were 81.7 fps on main and 83.6 fps on the branch, within the reported run-to-run spread; these measurements predate the merge to the current base. **Other systems:** The recorded on-screen run covers Windows and an RTX 5090 with DLAA, dynamic-resolution DLSS and HDR Native. FSR 3.1 and FSR 4 with DLSS 5 on screen, Linux build and startup, and the older-RTX fallback remain open. CI is still running. **Switches:** RX_VK_DLSS_NR is unset by default and overrides the saved Off setting; RX_VK_DLSS_NR_DEBUG defaults to 0; RX_VK_DLSS_NR_LINUX defaults off; RX_VK_NR_TEST_REJECT_INTENSITY is available only in testing builds. The saved DLSS 5 setting defaults Off. These are reasonable defaults for an experimental feature, subject to the outstanding runs. **Reviewed:** 500358d403c3 against fb724339aeee: Read the since-ledger changes in the DLSS 5 menu and test files, the DLSS 5 menu diff, the settings and support headers, and the recorded-run summaries. The full base diff and all changed code files were not read in full; generated files and the guide manifest were not fully reviewed.; nothing run (a code review). **Checked and fine:** - The since-ledger menu changes add the experimental label without changing the controls' behavior. - The recorded RTX 5090 run exercised the settings and evaluated 43,800 frames without a reported failure. **Testing:** No tests or project code were run during this review. The author reports a Windows RTX 5090 game run and an off-state A/B; CI remains in progress. **Overlaps and merge order:** Not checked. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch feat/dlss5-drop-in 2026-11-25 19:07:34 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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!2503
No description provided.