feat(dlss): DLSS 5 on RTX 20, 30 and 40 with the community FP16 file (Windows) #2513

Merged
llun merged 20 commits from pmwork-personal/Longshot:feat/dlss5-fp16 into main 2026-11-25 19:36:44 +00:00
Member

Built on #2503 (DLSS 5 through NGX), which is merged (348ecdd8). main is merged in (4a5e9424), so the diff here
shows only this PR's own change.

Summary

DLSS 5 (#2503) runs only on RTX 50 cards: NVIDIA's own nvngx_dlssnr.dll is its FP8 model. The community FP16
conversion of that file runs on RTX 20, 30, 40 and 50 (the Bloodborne PC port uses it). It is a modified NVIDIA file, so
NGX refuses it. This PR adds a second path for that one file, Windows only, as the Bloodborne port runs it. NVIDIA's
signed file uses #2503's NGX path. Both paths now release the old feature before creating its replacement.

What a player does: put the FP16 file, named nvngx_dlssnr.dll, in an fp16 folder inside one of #2503's folders
(<game>\ngx\fp16, %LOCALAPPDATA%\Longshot\ngx\fp16, or RX_VK_DLSS_DIR's). Longshot does not include or download
it. Which file runs:

GPU Files in place Runs DLSS 5 model row
RTX 50 both the row's choice: Auto (NVIDIA's), NVIDIA or FP16 shown, applies after a restart
RTX 50 one that one not shown
RTX 20, 30, 40 the FP16 file the FP16 file not shown
RTX 20, 30, 40 NVIDIA's only nothing; the DLSS 5 row's line names the FP16 file not shown
Linux any no change from #2503 not shown
  • The direct path (gpu/vk/vk_dlss.cpp, NrDirect, nr_direct_load): the FP16 file loaded and started with its
    own NVSDK_NGX_VULKAN_Init_Ext; its feature made, evaluated and let go with its own CreateFeature,
    EvaluateFeature and ReleaseFeature; the same DLSSNR.* parameters in a block NGX allocates. nr_create_feature,
    nr_evaluate_feature, nr_release_feature, nr_new_params and nr_set_int choose the back end. Inputs, proxy,
    composite, settle and rows stay shared. On replacement, the old feature is released after its last GPU use before the
    new one is created; if creation fails, Longshot attempts to restore the last working settings.
  • The forwarder longshot_nvngx.dll_nr.dll (gpu/vk/dlss_nr_forwarder.c, 4 calls): the model refuses a caller
    whose module name lacks nvngx.dll, so each call goes through it. No tail call (a volatile result and
    disable_tail_calls). The Rust builder links it after the renderer on Windows with the NGX SDK
    (builder/crates/build-compile link_forwarder, through link::run, /Brepro) and puts it beside longshot_vk.dll
    (build-driver finished_files, so the installed note holds it); a pack carries it as a generated file.
  • The check (gpu/vk/dlss_nr_model.h): the FP16 file is used only when its size and SHA-256 are on the allow-list
    (the Bloodborne port's known file, 276,162,560 bytes, CDFA6C1E…3ED). Hashed once a run on its own thread (about
    0.6 s on a Ryzen 7 9800X3D; the recording thread does not wait for it, and the DLSS 5 rows appear after the file check
    finishes), through a handle that keeps others from
    writing, moving or deleting the file while the game runs. The model is loaded by that handle's final path and checked
    to be that file, so the file loaded is the file checked. NGX's signature check is not turned off, nothing is patched in
    memory, no Windows setting changes.
  • The row DLSS 5 model (gpu/vk/menu/dlss5.cpp, saved as dlss5_model, in FROZEN; RX_VK_DLSS_NR_MODEL over it).
    Its help starts with [EXPERIMENTAL], as every DLSS 5 row's does since #2503's 7492ea7a; the DLSS 5 row's help also
    names the FP16 file.
  • Read first: vk_dlss.cpp from struct NrDirect, nr_direct_load, nr_check_locked; dlss_nr_model.h;
    dlss_nr_forwarder.c.

Credit: the direct path and the forwarder are ported from the Bloodborne PC port's DLSS bridge (PMWork fork,
gpu/dlss_bridge, GPL-3.0-or-later), which follows the
OptiScaler DLSS-NR fork by Dagherbou (GPL-3.0); that fork found the
model's exports, the caller check and the tail-call trap. #2503's credits (HypeZ85/Valerio85, TheDevil, RenoDX) still
apply to the shared parts.

Testing

Tested: Head c627ccbd is 76252ff9 with main 3072dda4 (the Rust builder) merged in and the forwarder's
build ported to that builder. Built with dev.py pack on the shared base of 3072dda4: the builder linked
longshot_nvngx.dll_nr.dll (42 KB) after the renderer, and the pack put it beside longshot_vk.dll.
cargo test -p build-compile -p build-driver: the same 13 failures as on main 3072dda4 on this PC (paths, the PATH's
clang, time stamps), and one test that is flaky on both; cargo fmt --check and clippy clean. No game run on c627ccbd:
the DLSS 5 code was the same as at 76252ff9, where the runs below ran. The later changes to file checking and feature
replacement still need testing. Three CI checks fail on main 3072dda4 itself, not
by this PR: "Guide screenshots" (20 UI sources changed by #2286 since the settings-graphics.png review; this PR's own
sources are in the review) and both website builds (docs/user/common-issues.md, the same as main's, stops
format-common-issues.ts: "Help page group list changed: it must link each group in order").

At 76252ff9: Windows 11, RTX 5090, NVIDIA 621.24, the branch as a pack on main 9046a8d7 + #2503 (7492ea7a), headless (the control
bridge, no window), Kokiri Forest from the repository's kokiri-start save, DLAA, 2560x1440, my stable settings. Each
case in its own folder given as RX_VK_DLSS_DIR (the files copied in for the test only, never into the repository). In
each run: DLSS 5 On, Model resolution 65% then 50% (the feature made again), Off for 3 s (let go), On again (made
again); 1,900+ frames evaluated, no Vulkan error:

Run Files Choice Rows Ran Frames
A FP16 only – DLSS 5, no model row the FP16 file, direct 1,908
B both Auto (default) DLSS 5 model: Auto (restart) NVIDIA's file through NGX 1,945
C both dlss5_model=2 saved DLSS 5 model: FP16 (restart) the FP16 file, direct 1,911
D both saved FP16, RX_VK_DLSS_NR_MODEL=nvidia DLSS 5 model: NVIDIA (restart) NVIDIA's file through NGX 1,949
E NVIDIA's only – DLSS 5, no model row NVIDIA's file through NGX 1,920
F FP16 only, longshot_nvngx.dll_nr.dll taken away – DLSS 5 nothing; the line "longshot_nvngx.dll_nr.dll, which runs the FP16 model, is not beside longshot_vk.dll. Build the game again."; the game runs on –

B and D ran at 76252ff9; A, C, E and F on it before the rebase onto #2503's 7492ea7a, which changed only menu help
texts (the [EXPERIMENTAL] tag). The FP16 file's log: found in …\fp16 (SHA-256 cdfa6c1ec7848671..., the known file), DLSS 5 (FP16): the community FP16 model started, through longshot_nvngx.dll_nr.dll, feature created at 2224x936 … (the community FP16 file, direct).
A screenshot of run A's picture showed the Default preset's DLSS 5 look, nothing broken (not attached: it is the game's
picture). Prathyush also played it on his own screen (5120x2160, his save and settings, DLSS 5 On with the FP16 file
from the DLSS 5 model row): 2,400 frames evaluated at 3328x1408, "looks good". Checks: tests/run_all.py at 76252ff9: 914 passed, 23 failed, 55 skipped. 22 of them fail on main 9046a8d7 on
this PC too (auto_handheld, cmpflags, crash_dialog, dev_ab, dev_build, dev_migrate, fastfp_fma, float_add_subgroup,
fma_soft, fpx_sticky, fpxkeep, game_menu_mouse_buttons, input_movie, linux_preflight, pads_after_menu, perf_report,
portable_builder_startup, sdiv_overflow, spawn_emit, vbytes, vecfp, vfpx_elem); test_job_queue ran beside a GPU run
and passes alone. test_sampler_admission is timing-flaky here (it failed once on main 9046a8d7 too, and passed 6 of
6 alone both there and here). New checks: test_dlss_nr_model (the choice table for every GPU, file pair
and choice; SHA-256 against FIPS 180-4's examples; the allow-list), test_dlss_nr_fp16_files (the search, its order,
the size and hash check, the held file), test_dlss_nr_forwarder (each of the forwarder's four calls reaches the model
from a module named for its check; a forwarder built with a tail call fails it; both back ends' calls), and
test_dev_packs' renderer_beside. The guide image's source review: source-review-6d4a63a1.md
(check_guide_screenshots.py --review-sources passes). The site's settings check and its test pass (run with Node 24
without the markdown package: the one test that needs it fails here on #2503 too).

Still to test:

  • An RTX 20, 30 or 40 card, Windows, with the FP16 file in ngx\fp16 and DLAA or DLSS: turn DLSS 5 On, expecting the
    log line DLSS 5 (FP16): the community FP16 model started and frames evaluated, no DLSS 5 model row (by hand, a
    tester, or @Beanstalk once the farm has such a card).
  • The same on an 8 GB card: change Style, then Model resolution, then the window size, expecting the model made again
    each time and no "out of memory" line. The old feature is released after its last GPU use before the replacement is made (by hand or the Test Farm).
  • Linux build (CI / Test Farm): builds and runs as #2503 (the FP16 path is under _WIN32).

Measurements

Measurements against main are pending for the changed feature replacement. With the FP16 file, the model uses the same inputs; the file's check at the start is about 0.6 s on its own thread, which the frames do not wait for.

Risks

  • Only a Windows PC with the FP16 file in an fp16 folder reaches the direct path. Feature replacement also changes
    for NVIDIA's NGX path: the old feature is released before its replacement is made.
  • The FP16 file is a modified NVIDIA file that Longshot does not ship. Only the known hash is loaded; any other file is
    named in the log and not loaded.
  • A failure of the FP16 path (no forwarder, the model does not load or start) shows the DLSS 5 row's reason and leaves
    the upscaler's picture; it is not tried again until the next start. To turn it off: take the file out of fp16.
  • After updating: one new key, dlss5_model (Auto by default). Nothing else in longshot_options.ini, saves or caches.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit. (On main 348ecdd8, after #2503 merged: the
    diff is this change alone.)
  • 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.
    (RX_VK_DLSS_NR_MODEL: unset, the row's Auto.)
  • A check under tests/ that reads changed source is updated, not weakened. (test_dlss5_menu, test_menu_ini_keys,
    test_menu_env_overrides, test_dlss_nr_support; test_recorder_sync now also holds the direct path's create and
    evaluate to their boundary(B_DIRECT).)
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • #2503 is merged, and main is merged into this branch after it. (#2503: 348ecdd8; main merged in: 4a5e9424.)
  • 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: Claude Opus 5.5 [email protected]

🤖 Generated with Claude Code

**Built on #2503 (DLSS 5 through NGX), which is merged (348ecdd8).** `main` is merged in (4a5e9424), so the diff here shows only this PR's own change. ## Summary DLSS 5 (#2503) runs only on RTX 50 cards: NVIDIA's own `nvngx_dlssnr.dll` is its FP8 model. The community FP16 conversion of that file runs on RTX 20, 30, 40 and 50 (the Bloodborne PC port uses it). It is a modified NVIDIA file, so NGX refuses it. This PR adds a second path for that one file, Windows only, as the Bloodborne port runs it. NVIDIA's signed file uses #2503's NGX path. Both paths now release the old feature before creating its replacement. What a player does: put the FP16 file, named `nvngx_dlssnr.dll`, in an `fp16` folder inside one of #2503's folders (`<game>\ngx\fp16`, `%LOCALAPPDATA%\Longshot\ngx\fp16`, or `RX_VK_DLSS_DIR`'s). Longshot does not include or download it. Which file runs: | GPU | Files in place | Runs | DLSS 5 model row | |---|---|---|---| | RTX 50 | both | the row's choice: Auto (NVIDIA's), NVIDIA or FP16 | shown, applies after a restart | | RTX 50 | one | that one | not shown | | RTX 20, 30, 40 | the FP16 file | the FP16 file | not shown | | RTX 20, 30, 40 | NVIDIA's only | nothing; the DLSS 5 row's line names the FP16 file | not shown | | Linux | any | no change from #2503 | not shown | - **The direct path** (`gpu/vk/vk_dlss.cpp`, `NrDirect`, `nr_direct_load`): the FP16 file loaded and started with its own `NVSDK_NGX_VULKAN_Init_Ext`; its feature made, evaluated and let go with its own `CreateFeature`, `EvaluateFeature` and `ReleaseFeature`; the same `DLSSNR.*` parameters in a block NGX allocates. `nr_create_feature`, `nr_evaluate_feature`, `nr_release_feature`, `nr_new_params` and `nr_set_int` choose the back end. Inputs, proxy, composite, settle and rows stay shared. On replacement, the old feature is released after its last GPU use before the new one is created; if creation fails, Longshot attempts to restore the last working settings. - **The forwarder** `longshot_nvngx.dll_nr.dll` (`gpu/vk/dlss_nr_forwarder.c`, 4 calls): the model refuses a caller whose module name lacks `nvngx.dll`, so each call goes through it. No tail call (a volatile result and `disable_tail_calls`). The Rust builder links it after the renderer on Windows with the NGX SDK (`builder/crates/build-compile` `link_forwarder`, through `link::run`, `/Brepro`) and puts it beside `longshot_vk.dll` (`build-driver` `finished_files`, so the installed note holds it); a pack carries it as a generated file. - **The check** (`gpu/vk/dlss_nr_model.h`): the FP16 file is used only when its size and SHA-256 are on the allow-list (the Bloodborne port's known file, 276,162,560 bytes, `CDFA6C1E…3ED`). Hashed once a run on its own thread (about 0.6 s on a Ryzen 7 9800X3D; the recording thread does not wait for it, and the DLSS 5 rows appear after the file check finishes), through a handle that keeps others from writing, moving or deleting the file while the game runs. The model is loaded by that handle's final path and checked to be that file, so the file loaded is the file checked. NGX's signature check is not turned off, nothing is patched in memory, no Windows setting changes. - **The row** `DLSS 5 model` (`gpu/vk/menu/dlss5.cpp`, saved as `dlss5_model`, in FROZEN; `RX_VK_DLSS_NR_MODEL` over it). Its help starts with `[EXPERIMENTAL]`, as every DLSS 5 row's does since #2503's 7492ea7a; the DLSS 5 row's help also names the FP16 file. - Read first: `vk_dlss.cpp` from `struct NrDirect`, `nr_direct_load`, `nr_check_locked`; `dlss_nr_model.h`; `dlss_nr_forwarder.c`. Credit: the direct path and the forwarder are ported from the Bloodborne PC port's DLSS bridge (PMWork fork, `gpu/dlss_bridge`, GPL-3.0-or-later), which follows the [OptiScaler DLSS-NR fork](https://github.com/Dagherbou/OptiScaler_DLSSNR) by Dagherbou (GPL-3.0); that fork found the model's exports, the caller check and the tail-call trap. #2503's credits (HypeZ85/Valerio85, TheDevil, RenoDX) still apply to the shared parts. ## Testing **Tested:** Head c627ccbd is 76252ff9 with `main` 3072dda4 (the Rust builder) merged in and the forwarder's build ported to that builder. Built with `dev.py pack` on the shared base of 3072dda4: the builder linked `longshot_nvngx.dll_nr.dll` (42 KB) after the renderer, and the pack put it beside `longshot_vk.dll`. `cargo test -p build-compile -p build-driver`: the same 13 failures as on `main` 3072dda4 on this PC (paths, the PATH's clang, time stamps), and one test that is flaky on both; `cargo fmt --check` and clippy clean. No game run on c627ccbd: the DLSS 5 code was the same as at 76252ff9, where the runs below ran. The later changes to file checking and feature replacement still need testing. Three CI checks fail on `main` 3072dda4 itself, not by this PR: "Guide screenshots" (20 UI sources changed by #2286 since the settings-graphics.png review; this PR's own sources are in the review) and both website builds (`docs/user/common-issues.md`, the same as `main`'s, stops `format-common-issues.ts`: "Help page group list changed: it must link each group in order"). At 76252ff9: Windows 11, RTX 5090, NVIDIA 621.24, the branch as a pack on main 9046a8d7 + #2503 (7492ea7a), headless (the control bridge, no window), Kokiri Forest from the repository's `kokiri-start` save, DLAA, 2560x1440, my stable settings. Each case in its own folder given as `RX_VK_DLSS_DIR` (the files copied in for the test only, never into the repository). In each run: DLSS 5 On, Model resolution 65% then 50% (the feature made again), Off for 3 s (let go), On again (made again); 1,900+ frames evaluated, no Vulkan error: | Run | Files | Choice | Rows | Ran | Frames | |---|---|---|---|---|---| | A | FP16 only | – | DLSS 5, no model row | the FP16 file, direct | 1,908 | | B | both | Auto (default) | DLSS 5 model: Auto (restart) | NVIDIA's file through NGX | 1,945 | | C | both | `dlss5_model=2` saved | DLSS 5 model: FP16 (restart) | the FP16 file, direct | 1,911 | | D | both | saved FP16, `RX_VK_DLSS_NR_MODEL=nvidia` | DLSS 5 model: NVIDIA (restart) | NVIDIA's file through NGX | 1,949 | | E | NVIDIA's only | – | DLSS 5, no model row | NVIDIA's file through NGX | 1,920 | | F | FP16 only, `longshot_nvngx.dll_nr.dll` taken away | – | DLSS 5 | nothing; the line "longshot_nvngx.dll_nr.dll, which runs the FP16 model, is not beside longshot_vk.dll. Build the game again."; the game runs on | – | B and D ran at 76252ff9; A, C, E and F on it before the rebase onto #2503's 7492ea7a, which changed only menu help texts (the `[EXPERIMENTAL]` tag). The FP16 file's log: `found in …\fp16 (SHA-256 cdfa6c1ec7848671..., the known file)`, `DLSS 5 (FP16): the community FP16 model started, through longshot_nvngx.dll_nr.dll`, `feature created at 2224x936 … (the community FP16 file, direct)`. A screenshot of run A's picture showed the Default preset's DLSS 5 look, nothing broken (not attached: it is the game's picture). Prathyush also played it on his own screen (5120x2160, his save and settings, DLSS 5 On with the FP16 file from the DLSS 5 model row): 2,400 frames evaluated at 3328x1408, "looks good". Checks: `tests/run_all.py` at 76252ff9: 914 passed, 23 failed, 55 skipped. 22 of them fail on `main` 9046a8d7 on this PC too (auto_handheld, cmpflags, crash_dialog, dev_ab, dev_build, dev_migrate, fastfp_fma, float_add_subgroup, fma_soft, fpx_sticky, fpxkeep, game_menu_mouse_buttons, input_movie, linux_preflight, pads_after_menu, perf_report, portable_builder_startup, sdiv_overflow, spawn_emit, vbytes, vecfp, vfpx_elem); `test_job_queue` ran beside a GPU run and passes alone. `test_sampler_admission` is timing-flaky here (it failed once on `main` 9046a8d7 too, and passed 6 of 6 alone both there and here). New checks: `test_dlss_nr_model` (the choice table for every GPU, file pair and choice; SHA-256 against FIPS 180-4's examples; the allow-list), `test_dlss_nr_fp16_files` (the search, its order, the size and hash check, the held file), `test_dlss_nr_forwarder` (each of the forwarder's four calls reaches the model from a module named for its check; a forwarder built with a tail call fails it; both back ends' calls), and `test_dev_packs`' `renderer_beside`. The guide image's source review: `source-review-6d4a63a1.md` (`check_guide_screenshots.py --review-sources` passes). The site's settings check and its test pass (run with Node 24 without the markdown package: the one test that needs it fails here on #2503 too). **Still to test:** - An RTX 20, 30 or 40 card, Windows, with the FP16 file in `ngx\fp16` and DLAA or DLSS: turn DLSS 5 On, expecting the log line `DLSS 5 (FP16): the community FP16 model started` and frames evaluated, no DLSS 5 model row (by hand, a tester, or `@Beanstalk` once the farm has such a card). - The same on an 8 GB card: change Style, then Model resolution, then the window size, expecting the model made again each time and no "out of memory" line. The old feature is released after its last GPU use before the replacement is made (by hand or the Test Farm). - Linux build (CI / Test Farm): builds and runs as #2503 (the FP16 path is under `_WIN32`). ## Measurements Measurements against `main` are pending for the changed feature replacement. With the FP16 file, the model uses the same inputs; the file's check at the start is about 0.6 s on its own thread, which the frames do not wait for. ## Risks - Only a Windows PC with the FP16 file in an `fp16` folder reaches the direct path. Feature replacement also changes for NVIDIA's NGX path: the old feature is released before its replacement is made. - The FP16 file is a modified NVIDIA file that Longshot does not ship. Only the known hash is loaded; any other file is named in the log and not loaded. - A failure of the FP16 path (no forwarder, the model does not load or start) shows the DLSS 5 row's reason and leaves the upscaler's picture; it is not tried again until the next start. To turn it off: take the file out of `fp16`. - After updating: one new key, `dlss5_model` (Auto by default). Nothing else in `longshot_options.ini`, saves or caches. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. (On `main` 348ecdd8, after #2503 merged: the diff is this change alone.) - [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). - [ ] 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`. (`RX_VK_DLSS_NR_MODEL`: unset, the row's Auto.) - [x] A check under `tests/` that reads changed source is updated, not weakened. (`test_dlss5_menu`, `test_menu_ini_keys`, `test_menu_env_overrides`, `test_dlss_nr_support`; `test_recorder_sync` now also holds the direct path's create and evaluate to their `boundary(B_DIRECT)`.) - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [x] **#2503 is merged, and `main` is merged into this branch after it.** (#2503: 348ecdd8; `main` merged in: 4a5e9424.) - [ ] 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: 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) Has been skipped
Website / Website preview, build (pull_request) Has been skipped
Website / Website preview, upload (pull_request) Has been skipped
CI / Workflow lint (actionlint) (pull_request) Successful in 17s
Third-party parts / The same as upstream (pull_request) Has been skipped
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
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
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]>
- 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]>
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]>
feat(dlss): DLSS 5 on RTX 20, 30 and 40 with the community FP16 file (Windows)
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 13s
CI / Workflow lint (actionlint) (pull_request) Successful in 22s
Guide screenshots / Guide images and local UI source review (pull_request) Successful in 23s
Third-party parts / As their notes say (pull_request) Successful in 26s
PR description / Description follows the template (pull_request_target) Successful in 7s
Website / Website builds (pull_request) Successful in 1m36s
CI / Website build and checks (pull_request) Successful in 1m36s
76252ff947
NVIDIA's own nvngx_dlssnr.dll is its FP8 model, RTX 50 only, and keeps #2503's NGX path. The community FP16
conversion of it runs on RTX 20, 30, 40 and 50; NGX refuses a modified file, so it gets a second back end:

- gpu/vk/vk_dlss.cpp NrDirect: the model loaded and started with its own Init_Ext, its feature made, evaluated and
  let go with its own exports, each call through longshot_nvngx.dll_nr.dll (gpu/vk/dlss_nr_forwarder.c: the model
  refuses a caller whose module name lacks "nvngx.dll"). nr_create_feature / nr_evaluate_feature /
  nr_release_feature / nr_new_params / nr_set_int pick the back end; inputs, proxy, composite and rows are shared.
  Ported from the Bloodborne PC port's DLSS bridge (PMWork fork, GPL-3.0-or-later), after the OptiScaler DLSS-NR
  fork by Dagherbou (GPL-3.0).
- The FP16 file: <ngx folder>\fp16\nvngx_dlssnr.dll in RX_VK_DLSS_DIR, the game's ngx and LOCALAPPDATA's
  Longshot\ngx, used only when its size and SHA-256 are on the allow-list (gpu/vk/dlss_nr_model.h). Hashed once a
  run on a thread of its own (the recording thread does not wait for it: Issue::checking_files), held against
  writes, moves and deletes for the run, and loaded by that handle's final path, checked to be the same file.
- Which file runs (dlss_nr_model.h pick): an RTX 50 with both files, the new DLSS 5 model row (Auto = NVIDIA's,
  NVIDIA, FP16; saved as dlss5_model, after a restart; RX_VK_DLSS_NR_MODEL over it); one file, that one; RTX 20,
  30 and 40, the FP16 file. Linux: no change.
- nx2/build.py links the forwarder beside longshot_vk.dll (Windows with the NGX SDK), make_game.py ships it,
  a renderer pack carries it (packs.py renderer_beside).
- Tests: test_dlss_nr_model (choice table, SHA-256, allow-list), test_dlss_nr_fp16_files (the search, the size
  and hash check, the held file), test_dlss_nr_forwarder (each call's caller is the forwarder; both back ends'
  calls), test_dev_packs' renderer_beside; the menu, ini keys, env, support and recorder checks follow. Docs:
  dlss5.md, the settings table, its site check, switches; the guide image's source review.

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

Tested in game: Windows 11, RTX 5090, NVIDIA 621.24, Kokiri Forest: DLSS 5 with the community FP16 file through the new direct path and with NVIDIA's file through NGX, in every file and model-row case of the Testing table (headless, 1,900+ frames each, no Vulkan error), and the forwarder missing (DLSS 5 off with its reason, the game runs on). Prathyush also played it on his own screen at 5120x2160 with the FP16 file: 2,400 frames, looks good.

Tested in game: Windows 11, RTX 5090, NVIDIA 621.24, Kokiri Forest: DLSS 5 with the community FP16 file through the new direct path and with NVIDIA's file through NGX, in every file and model-row case of the Testing table (headless, 1,900+ frames each, no Vulkan error), and the forwarder missing (DLSS 5 off with its reason, the game runs on). Prathyush also played it on his own screen at 5120x2160 with the FP16 file: 2,400 frames, looks good.
Member
@review
BeanBot left a comment

Recommendation: Request changes. It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (L4) The FP16 path works in the reported RTX 5090 runs, but its intended RTX 20, 30 and 40 hardware and its low-memory behavior have not been tested. This branch also depends on #2503 merging first.

Adds DLSS 5 after the temporal upscaler and a Windows direct-loading path for a user-supplied, allow-listed FP16 model. It extends support to older RTX cards at the cost of model loading, GPU time and memory, and a first menu wait while the file is checked.

Blocking (1): must change before merging.

  1. L4: It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (for the author)

Should fix (1): not blocking, but worth doing before merging.

  • L1 gpu/vk/vk_dlss.cpp:1460: The first menu visibility check waits for the FP16 hash to finish. (more on the line) Do: Check whether the future is ready before reading it, and let the rows become visible when the result arrives.

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

  • L2 gpu/vk/vk_dlss.cpp:950: The direct path has not been exercised on the older RTX cards it is intended to enable. (more on the line) Do: Run the FP16 path on Windows with an RTX 20, 30 or 40 card, inspect the picture, and exercise creation and evaluation.
  • L3 gpu/vk/vk_dlss.cpp:511: Peak memory during model replacement is not measured on an 8 GB card. (more on the line) Do: Measure peak VRAM and exercise style, resolution and window-size changes with the FP16 model on an 8 GB card. (@fix does its part first: Reduce peak memory by releasing the old feature before creating its replacement, with an appropriate fallback if creation fails.)

@fix can do L1 and L3.

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

Does it help: Unproven on the intended RTX 20, 30 and 40 cards. The author reports over 1,900 evaluated frames per tested file-selection case on an RTX 5090 and a separate 2,400-frame on-screen run; the recorded DLSS 5 Off comparison on an earlier shared commit was within its run-to-run spread.

Other systems: The shared DLSS 5 chain also affects NVIDIA's signed model, DLSS, DLAA, FSR, HDR and pre-bloom paths. The reported runs cover Windows and an RTX 5090; Linux and the older RTX and 8 GB cases remain untested. With the feature off, an earlier shared-branch comparison on the 5090 showed no cost beyond the spread.

Switches: RX_VK_DLSS_NR defaults to the saved row, initially Off; RX_VK_DLSS_NR_DEBUG defaults to 0; RX_VK_DLSS_NR_LINUX defaults off; RX_VK_DLSS_NR_MODEL defaults to the saved Auto choice; RX_VK_NR_TEST_REJECT_INTENSITY is unset and effective only in test builds. The defaults are conservative, but the model choice and feature costs need the outstanding hardware runs. All have switch-table entries.

Reviewed: 76252ff947 against 9046a8d750: Read the repository rules, PR template, commit log, rendering and loader changes, model and settings headers, shaders, menu module, packaging diffs, and the reported runs. Skimmed generated SPIR-V headers, screenshot review records, website changes, and test fixtures; the full contents of every changed file and all surrounding callers were not read.; nothing run (a code review).

Checked and fine:

  • The FP16 file is opened without write or delete sharing, hashed through that handle, and the loaded module is checked against the held file.
  • The model selection is latched for the run, matching the restart-required row.
  • The added menu key, switch-table rows, shader sources and generated-header checks are present.
  • The commits record AI assistance, and no vendor SDK or game-derived file appears in the changed-file list.

Testing: No code, tests, builds or scripts were run, as requested. The supplied CI lists no failures or running checks; the author's reported runs are described above.

Overlaps and merge order: #2503 contains the shared DLSS 5 implementation and must merge first; this branch then needs rebasing onto main.


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

**Recommendation: Request changes.** It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). (L4) The FP16 path works in the reported RTX 5090 runs, but its intended RTX 20, 30 and 40 hardware and its low-memory behavior have not been tested. This branch also depends on #2503 merging first. Adds DLSS 5 after the temporal upscaler and a Windows direct-loading path for a user-supplied, allow-listed FP16 model. It extends support to older RTX cards at the cost of model loading, GPU time and memory, and a first menu wait while the file is checked. **Blocking (1)**: must change before merging. 1. **L4**: It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). *(for the author)* **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `gpu/vk/vk_dlss.cpp:1460`: The first menu visibility check waits for the FP16 hash to finish. (more on the line) **Do:** Check whether the future is ready before reading it, and let the rows become visible when the result arrives. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/vk_dlss.cpp:950`: The direct path has not been exercised on the older RTX cards it is intended to enable. (more on the line) **Do:** Run the FP16 path on Windows with an RTX 20, 30 or 40 card, inspect the picture, and exercise creation and evaluation. - **L3** `gpu/vk/vk_dlss.cpp:511`: Peak memory during model replacement is not measured on an 8 GB card. (more on the line) **Do:** Measure peak VRAM and exercise style, resolution and window-size changes with the FP16 model on an 8 GB card. *(`@fix` does its part first: Reduce peak memory by releasing the old feature before creating its replacement, with an appropriate fallback if creation fails.)* `@fix` can do L1 and L3. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on the intended RTX 20, 30 and 40 cards. The author reports over 1,900 evaluated frames per tested file-selection case on an RTX 5090 and a separate 2,400-frame on-screen run; the recorded DLSS 5 Off comparison on an earlier shared commit was within its run-to-run spread. **Other systems:** The shared DLSS 5 chain also affects NVIDIA's signed model, DLSS, DLAA, FSR, HDR and pre-bloom paths. The reported runs cover Windows and an RTX 5090; Linux and the older RTX and 8 GB cases remain untested. With the feature off, an earlier shared-branch comparison on the 5090 showed no cost beyond the spread. **Switches:** RX_VK_DLSS_NR defaults to the saved row, initially Off; RX_VK_DLSS_NR_DEBUG defaults to 0; RX_VK_DLSS_NR_LINUX defaults off; RX_VK_DLSS_NR_MODEL defaults to the saved Auto choice; RX_VK_NR_TEST_REJECT_INTENSITY is unset and effective only in test builds. The defaults are conservative, but the model choice and feature costs need the outstanding hardware runs. All have switch-table entries. **Reviewed:** 76252ff94752 against 9046a8d75019: Read the repository rules, PR template, commit log, rendering and loader changes, model and settings headers, shaders, menu module, packaging diffs, and the reported runs. Skimmed generated SPIR-V headers, screenshot review records, website changes, and test fixtures; the full contents of every changed file and all surrounding callers were not read.; nothing run (a code review). **Checked and fine:** - The FP16 file is opened without write or delete sharing, hashed through that handle, and the loaded module is checked against the held file. - The model selection is latched for the run, matching the restart-required row. - The added menu key, switch-table rows, shader sources and generated-header checks are present. - The commits record AI assistance, and no vendor SDK or game-derived file appears in the changed-file list. **Testing:** No code, tests, builds or scripts were run, as requested. The supplied CI lists no failures or running checks; the author's reported runs are described above. **Overlaps and merge order:** #2503 contains the shared DLSS 5 implementation and must merge first; this branch then needs rebasing onto main. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -120,0 +508,4 @@
NVSDK_NGX_Result r = nr_new_params(&candidate_params);
const dlss_nr::Settings controls = s.nr_edits.pending;
const auto t0 = std::chrono::steady_clock::now();
if (NVSDK_NGX_SUCCEED(r) && candidate_params) {
Member

L3 (should fix): Peak memory during model replacement is not measured on an 8 GB card.

When: Changing a model setting or its resolution creates a candidate while the previous feature remains live; on an 8 GB GPU the combined allocations may prevent the new feature from being created.

Do: Measure peak VRAM and exercise style, resolution and window-size changes with the FP16 model on an 8 GB card.

**L3** (should fix): Peak memory during model replacement is not measured on an 8 GB card. *When:* Changing a model setting or its resolution creates a candidate while the previous feature remains live; on an 8 GB GPU the combined allocations may prevent the new feature from being created. **Do:** Measure peak VRAM and exercise style, resolution and window-size changes with the FP16 model on an 8 GB card.
@ -306,0 +947,4 @@
// (with State::mu held, NGX started) The direct path for the FP16 file, once a run: the forwarder beside this module, the
// model, its four exports, then the model's own start on this device. Issue::none when it runs; what failed is in the log,
// and the model is not tried again until the next start. What was loaded before the model's start is let go on a failure
dlss_nr::Issue nr_direct_load(const NrFiles& files) {
Member

L2 (should fix): The direct path has not been exercised on the older RTX cards it is intended to enable.

When: An RTX 20, 30 or 40 player selects the FP16 file, but the only reported direct-model runs use an RTX 5090; whether feature creation, evaluation and the resulting picture work on the target cards remains unknown.

Do: Run the FP16 path on Windows with an RTX 20, 30 or 40 card, inspect the picture, and exercise creation and evaluation.

**L2** (should fix): The direct path has not been exercised on the older RTX cards it is intended to enable. *When:* An RTX 20, 30 or 40 player selects the FP16 file, but the only reported direct-model runs use an RTX 5090; whether feature creation, evaluation and the resulting picture work on the target cards remains unknown. **Do:** Run the FP16 path on Windows with an RTX 20, 30 or 40 card, inspect the picture, and exercise creation and evaluation.
@ -562,0 +1457,4 @@
bool dlss_nr_offered() {
#ifdef _WIN32
static const bool found = [] { // (once a run: the menu asks at each drawing)
const NrFiles& f = nr_files();
Member

L1 (should fix): The first menu visibility check waits for the FP16 hash to finish.

When: When the Graphics rows are evaluated before the background check has finished, dlss_nr_offered calls nr_files().get(), so the menu thread stalls for the remainder of the 276 MB read and hash, even when DLSS 5 is off.

Do: Check whether the future is ready before reading it, and let the rows become visible when the result arrives.

**L1** (should fix): The first menu visibility check waits for the FP16 hash to finish. *When:* When the Graphics rows are evaluated before the background check has finished, dlss_nr_offered calls nr_files().get(), so the menu thread stalls for the remainder of the 276 MB read and hash, even when DLSS 5 is off. **Do:** Check whether the future is ready before reading it, and let the rows become visible when the result arrives.
nx2/build.py and nx2/make_game.py are gone on main: the forwarder's build and its place in the game folder move to
the Rust builder in the next commit. scripts/devtools/packs.py and tests/test_dev_packs.py are main's: every pack now
runs longshot-builder into a whole game folder, whose files beside the modules are carried as generated files, so
renderer_beside() is not needed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
feat(builder): DLSS 5's forwarder built and put beside the renderer by the Rust builder
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
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
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 11s
CI / Workflow lint (actionlint) (pull_request) Successful in 12s
Third-party parts / As their notes say (pull_request) Successful in 14s
CI / Website build and checks (pull_request) Failing after 25s
Website / Website builds (pull_request) Failing after 26s
CI / longshot-builder end to end (synthetic game) (pull_request) Successful in 1m33s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 3m3s
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Successful in 4m25s
PR description / Description follows the template (pull_request_target) Successful in 4s
c627ccbd90
On main the Rust builder (#2286) replaces nx2/build.py and nx2/make_game.py, which built and shipped
longshot_nvngx.dll_nr.dll on this branch before:
- build-compile link_forwarder (lib.rs): after the renderer's link, on Windows with NVIDIA's NGX SDK only, the forwarder's
  one C file compiled and linked in one command through link::run (its record names the source, so it runs again only
  when the command or the file changed), with /Brepro; a failure stops the build as the renderer's link does.
  NR_FORWARDER names it.
- build-driver finished_files (build.rs): beside the game when the compile made it, so the installed note holds it and an
  update replaces it.
- dev.py packs needs nothing more: every pack runs the builder into a whole game folder and carries a changed file beside
  the modules as a generated file.
- test_dlss_nr_forwarder checks these names in the crates; docs/dev/reference/builder.md lists the file.

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]>
Merge feat/dlss5-drop-in (#2503, with main fb724339) into feat/dlss5-fp16
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 / What the change needs (pull_request) Successful in 27s
CI / Conventional Commit title (pull_request) Successful in 29s
PR description / Description follows the template (pull_request_target) Successful in 37s
CI / Workflow lint (actionlint) (pull_request) Successful in 49s
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 1m0s
CI / Lint (pre-commit, ShellCheck) (pull_request) Failing after 6m22s
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Failing after 2m2s
CI / Website build and checks (pull_request) Successful in 1m28s
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Successful in 1m39s
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Successful in 23s
CI / longshot-builder end to end (synthetic game) (pull_request) Successful in 2m27s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m12s
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Has been cancelled
cf1eec4bfe
One conflict, in 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, scripts/screenshots/menu.cpp) and main's hashes for
the rest, and its notes keep #2503's merge sentence and this branch's FP16 review. The image is unchanged
(source-review-2513-fb724339.md); scripts/check_guide_screenshots.py --review-sources passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
Merge feat/dlss5-drop-in (#2503's lint fixes) into feat/dlss5-fp16
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 19s
CI / What the change needs (pull_request) Successful in 20s
PR description / Description follows the template (pull_request_target) Successful in 28s
CI / Workflow lint (actionlint) (pull_request) Successful in 32s
Guide screenshots / Guide images and local UI source review (pull_request) Successful in 32s
Third-party parts / As their notes say (pull_request) Successful in 35s
CI / Lint (pre-commit, ShellCheck) (pull_request) Failing after 2m25s
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
c8eef1a15e
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
@rebase
Member

This pull request has merge commits, so I brought it up to date by merging main (348ecdd811) into it rather than rebasing (its history stays as it is): the new head is 4a5e942497.

Conflicts resolved

  • docs/user/images/guide/manifest.json: Restored #2513 9f2cce42 to the reviewed source revision.

Nothing was built or run: read the resolution before merging.


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

This pull request has merge commits, so I brought it up to date by merging `main` (348ecdd811d5) into it rather than rebasing (its history stays as it is): the new head is 4a5e94249716. **Conflicts resolved** - docs/user/images/guide/manifest.json: Restored #2513 9f2cce42 to the reviewed source revision. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Merge main into feat/dlss5-fp16
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 28s
CI / What the change needs (pull_request) Successful in 29s
CI / Workflow lint (actionlint) (pull_request) Successful in 44s
Guide screenshots / Guide images and local UI source review (pull_request) Successful in 39s
Third-party parts / As their notes say (pull_request) Successful in 51s
PR description / Description follows the template (pull_request_target) Successful in 24s
CI / Lint (pre-commit, ShellCheck) (pull_request) Successful in 5m21s
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
4a5e942497
# Conflicts:
#	docs/dev/reference/switches.md
#	docs/user/dlss5.md
#	docs/user/graphics-and-controls.md
#	docs/user/images/guide/manifest.json
#	gpu/vk/dlss_nr_support.h
#	gpu/vk/menu/dlss5.cpp
#	gpu/vk/menu/dlss5.h
#	gpu/vk/menu_module.h
#	gpu/vk/switches.def
#	gpu/vk/vk_dlss.cpp
#	gpu/vk/vk_dlss.h
#	gpu/vk/vk_menu.cpp
#	gpu/vk/vk_menu.h
#	scripts/screenshots/menu.cpp
#	tests/test_dlss5_menu.py
#	tests/test_dlss_nr_support.cpp
#	tests/test_menu_env_overrides.py
#	tests/test_menu_ini_keys.py
#	tests/test_recorder_sync.py
#	website/src/repo-docs/graphics-settings.ts
#	website/tests/graphics-settings.test.ts
BeanBot left a comment

Recommendation: Approve. The FP16 path has been demonstrated on an RTX 5090, but its intended older RTX cards and peak memory use on an 8 GB card remain untested. The pull request also still reports a conflict with its base and depends on #2503. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The change lets Windows players with the known community FP16 model use DLSS 5 through a direct path and adds a model choice when both files are available. It adds a forwarder, file verification, a saved menu setting and builder integration.

Should fix (1): not blocking, but worth doing before merging.

  • L1 gpu/vk/vk_dlss.cpp:1460: The first menu visibility check waits for the FP16 hash to finish. When: When the Graphics rows are evaluated before the background check has finished, dlss_nr_offered calls nr_files().get(), so the menu thread stalls for the remainder of the 276 MB read and hash, even when DLSS 5 is off. Do: Check whether the future is ready before reading it, and let the rows become visible when the result arrives.

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

  • L2 gpu/vk/vk_dlss.cpp:950: The direct path has not been exercised on the older RTX cards it is intended to enable. When: An RTX 20, 30 or 40 player selects the FP16 file, but the only reported direct-model runs use an RTX 5090; whether feature creation, evaluation and the resulting picture work on the target cards remains unknown. Do: Run the FP16 path on Windows with an RTX 20, 30 or 40 card, inspect the picture, and exercise creation and evaluation.
  • L3 gpu/vk/vk_dlss.cpp:511: Peak memory during model replacement is not measured on an 8 GB card. When: Changing a model setting or its resolution creates a candidate while the previous feature remains live; on an 8 GB GPU the combined allocations may prevent the new feature from being created. Do: Measure peak VRAM and exercise style, resolution and window-size changes with the FP16 model on an 8 GB card. (@fix does its part first: Reduce peak memory by releasing the old feature before creating its replacement, with an appropriate fallback if creation fails.)

@fix can do L1 and L3.

Since the last review (on 76252ff947)
Resolved: L4 (It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first).)
Still open: L1 (The first menu visibility check waits for the FP16 hash to finish.); L2 (The direct path has not been exercised on the older RTX cards it is intended to enable.); L3 (Peak memory during model replacement is not measured on an 8 GB card.)

Checks: Still running: PR description / Description follows the template (pull_request_target).

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

Does it help: Unproven for the intended RTX 20, 30 and 40 cards. The reported RTX 5090 runs evaluated at least 1,900 frames per case, and an on-screen FP16 run evaluated 2,400 frames.

Other systems: The direct path and forwarder are Windows-only; Linux retains the NGX path. The older NVIDIA cards targeted by the feature and an 8 GB card still need game runs; no Linux result is reported for this head.

Switches: RX_VK_DLSS_NR_MODEL defaults to unset, leaving the saved dlss5_model choice at Auto; Auto selects NVIDIA's model when both are available on RTX 50. The default is consistent with the described behavior.

Reviewed: 4a5e942497 against 348ecdd811: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the ledger paths and the builder integration around the changed lines. Skimmed the changed forwarder test and the supplied run reports. The full pull request diff and every changed code file were not read in full; docs/review-checklist.md is absent.; nothing run (a code review).

Checked and fine:

  • The recording-side check returns checking_files while the hash is pending.
  • The builder links the forwarder after the renderer and includes it among the files placed beside the game.

Testing: No commands from the project were run. The supplied reports cover the direct and NGX paths on Windows with an RTX 5090; older RTX hardware, 8 GB replacement behavior and Linux remain to be tested.

Overlaps and merge order: #2503 is the required parent pull request and must merge first.


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

**Recommendation: Approve.** The FP16 path has been demonstrated on an RTX 5090, but its intended older RTX cards and peak memory use on an 8 GB card remain untested. The pull request also still reports a conflict with its base and depends on #2503. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The change lets Windows players with the known community FP16 model use DLSS 5 through a direct path and adds a model choice when both files are available. It adds a forwarder, file verification, a saved menu setting and builder integration. **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `gpu/vk/vk_dlss.cpp:1460`: The first menu visibility check waits for the FP16 hash to finish. *When:* When the Graphics rows are evaluated before the background check has finished, dlss_nr_offered calls nr_files().get(), so the menu thread stalls for the remainder of the 276 MB read and hash, even when DLSS 5 is off. **Do:** Check whether the future is ready before reading it, and let the rows become visible when the result arrives. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/vk_dlss.cpp:950`: The direct path has not been exercised on the older RTX cards it is intended to enable. *When:* An RTX 20, 30 or 40 player selects the FP16 file, but the only reported direct-model runs use an RTX 5090; whether feature creation, evaluation and the resulting picture work on the target cards remains unknown. **Do:** Run the FP16 path on Windows with an RTX 20, 30 or 40 card, inspect the picture, and exercise creation and evaluation. - **L3** `gpu/vk/vk_dlss.cpp:511`: Peak memory during model replacement is not measured on an 8 GB card. *When:* Changing a model setting or its resolution creates a candidate while the previous feature remains live; on an 8 GB GPU the combined allocations may prevent the new feature from being created. **Do:** Measure peak VRAM and exercise style, resolution and window-size changes with the FP16 model on an 8 GB card. *(`@fix` does its part first: Reduce peak memory by releasing the old feature before creating its replacement, with an appropriate fallback if creation fails.)* `@fix` can do L1 and L3. **Since the last review** (on 76252ff94752) Resolved: L4 (It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first).) Still open: L1 (The first menu visibility check waits for the FP16 hash to finish.); L2 (The direct path has not been exercised on the older RTX cards it is intended to enable.); L3 (Peak memory during model replacement is not measured on an 8 GB card.) **Checks:** Still running: `PR description / Description follows the template (pull_request_target)`. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for the intended RTX 20, 30 and 40 cards. The reported RTX 5090 runs evaluated at least 1,900 frames per case, and an on-screen FP16 run evaluated 2,400 frames. **Other systems:** The direct path and forwarder are Windows-only; Linux retains the NGX path. The older NVIDIA cards targeted by the feature and an 8 GB card still need game runs; no Linux result is reported for this head. **Switches:** RX_VK_DLSS_NR_MODEL defaults to unset, leaving the saved dlss5_model choice at Auto; Auto selects NVIDIA's model when both are available on RTX 50. The default is consistent with the described behavior. **Reviewed:** 4a5e94249716 against 348ecdd811d5: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the ledger paths and the builder integration around the changed lines. Skimmed the changed forwarder test and the supplied run reports. The full pull request diff and every changed code file were not read in full; docs/review-checklist.md is absent.; nothing run (a code review). **Checked and fine:** - The recording-side check returns checking_files while the hash is pending. - The builder links the forwarder after the renderer and includes it among the files placed beside the game. **Testing:** No commands from the project were run. The supplied reports cover the direct and NGX paths on Windows with an RTX 5090; older RTX hardware, 8 GB replacement behavior and Linux remain to be tested. **Overlaps and merge order:** #2503 is the required parent pull request and must merge first. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
Owner
@fix
fix(dlss): reduce replacement memory and avoid waiting for model check
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 15s
CI / What the change needs (pull_request) Successful in 16s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 26s
CI / Workflow lint (actionlint) (pull_request) Successful in 29s
Third-party parts / As their notes say (pull_request) Successful in 29s
CI / Lint (pre-commit, ShellCheck) (pull_request) Successful in 3m16s
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Successful in 2m55s
PR description / Description follows the template (pull_request_target) Failing after 17s
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Successful in 5m7s
CI / longshot-builder end to end (synthetic game) (pull_request) Successful in 56s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 1m5s
CI / Website build and checks (pull_request) Successful in 2m50s
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Successful in 53s
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Successful in 3m48s
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Failing after 16m30s
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Failing after 20m12s
47df2d82d6
As the review on #2513 asked.
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The FP16 path has run on an RTX 5090, but its intended RTX 20, 30 and 40 support remains unverified. Peak memory during replacement also needs an 8 GB card run. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is 47df2d82d6. It was already up to date with main. I edited its description to match the change.

Changed

  • Menu visibility waits for FP16 hash, gpu/vk/vk_dlss.cpp:1481: Check whether the file-search future is ready before reading it, so the rows appear when the background check completes without blocking the menu.

Changed in part (the rest is for the author)

  • Peak memory during model replacement, gpu/vk/vk_dlss.cpp:506: Waited for the old feature’s GPU work and release before creating its replacement; if creation fails, the previous settings are restored when possible. The author must measure peak memory on an 8 GB card during style, model resolution and window-size changes.

Nothing was built or run: the checks run again on the new head.

The change lets Windows players supply a known community FP16 model for DLSS 5 on older RTX cards. It adds a direct model path and a model choice, while feature replacement now releases the old feature before creating its successor.

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

  • L2 gpu/vk/vk_dlss.cpp:950: The direct path has not been exercised on the older RTX cards it is intended to enable. When: An RTX 20, 30 or 40 player selects the FP16 file, but the only reported direct-model runs use an RTX 5090; whether feature creation, evaluation and the resulting picture work on the target cards remains unknown. Do: Run the FP16 path on Windows with an RTX 20, 30 or 40 card, inspect the picture, and exercise creation and evaluation.
  • L3 gpu/vk/vk_dlss.cpp:511: Peak memory during model replacement is not measured on an 8 GB card. When: Changing a model setting or its resolution creates a candidate while the previous feature remains live; on an 8 GB GPU the combined allocations may prevent the new feature from being created. Do: Measure peak VRAM and exercise style, resolution and window-size changes with the FP16 model on an 8 GB card.

Checks: they run again on this head; a failure shows on the pull request.

Also noticed (3; not asked for, not blocking)
  • During model replacement, frames use the upscaler picture until the old feature retires and the replacement is created.
  • The later feature-replacement and file-check changes still need an in-game run.
  • The changed replacement path can briefly fall back to the temporal upscaler while GPU work retires.
More: does it help, other systems, switches, what was read

Does it help: Unproven on the target cards: the reported RTX 5090 runs evaluated more than 1,900 frames per case, but no RTX 20, 30 or 40 run is reported. The 8 GB replacement peak has not been measured.

Other systems: The direct path is Windows-only; replacement also changes for NVIDIA's NGX path and Linux. The later replacement and file-check changes have no reported game run, and a Linux build and run remain pending.

Switches: RX_VK_DLSS_NR_MODEL is unset by default, selecting Auto; the saved dlss5_model row also defaults to Auto. Auto chooses NVIDIA's model when both are present on RTX 50, which matches the stated preference.

Reviewed: 47df2d82d6 against 348ecdd811: Read AGENTS.md, CONTRIBUTING.md, the fix diff and the replacement and support code around the changed lines. Skimmed the overall diff and recorded runs; the remaining changed files were not read in full.; nothing run (a code review).

Checked and fine:

  • The replacement waits for deferred release before allocating a successor, and attempts to restore the applied settings after a rejected replacement.
  • The menu checks whether the file-search future is ready before reading it.

Testing: No commands from the project were run. The description reports RTX 5090 game runs on an earlier revision; CI has not run on this head.

Overlaps and merge order: None identified in the supplied context; the prerequisite #2503 is merged.


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

**Recommendation: Approve.** The code is ready: only testing is left. The FP16 path has run on an RTX 5090, but its intended RTX 20, 30 and 40 support remains unverified. Peak memory during replacement also needs an 8 GB card run. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is 47df2d82d6e0. It was already up to date with `main`. I edited its description to match the change. **Changed** - **Menu visibility waits for FP16 hash, gpu/vk/vk_dlss.cpp:1481**: Check whether the file-search future is ready before reading it, so the rows appear when the background check completes without blocking the menu. **Changed in part (the rest is for the author)** - **Peak memory during model replacement, gpu/vk/vk_dlss.cpp:506**: Waited for the old feature’s GPU work and release before creating its replacement; if creation fails, the previous settings are restored when possible. The author must measure peak memory on an 8 GB card during style, model resolution and window-size changes. Nothing was built or run: the checks run again on the new head. The change lets Windows players supply a known community FP16 model for DLSS 5 on older RTX cards. It adds a direct model path and a model choice, while feature replacement now releases the old feature before creating its successor. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/vk_dlss.cpp:950`: The direct path has not been exercised on the older RTX cards it is intended to enable. *When:* An RTX 20, 30 or 40 player selects the FP16 file, but the only reported direct-model runs use an RTX 5090; whether feature creation, evaluation and the resulting picture work on the target cards remains unknown. **Do:** Run the FP16 path on Windows with an RTX 20, 30 or 40 card, inspect the picture, and exercise creation and evaluation. - **L3** `gpu/vk/vk_dlss.cpp:511`: Peak memory during model replacement is not measured on an 8 GB card. *When:* Changing a model setting or its resolution creates a candidate while the previous feature remains live; on an 8 GB GPU the combined allocations may prevent the new feature from being created. **Do:** Measure peak VRAM and exercise style, resolution and window-size changes with the FP16 model on an 8 GB card. **Checks:** they run again on this head; a failure shows on the pull request. <details> <summary>Also noticed (3; not asked for, not blocking)</summary> - During model replacement, frames use the upscaler picture until the old feature retires and the replacement is created. - The later feature-replacement and file-check changes still need an in-game run. - The changed replacement path can briefly fall back to the temporal upscaler while GPU work retires. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on the target cards: the reported RTX 5090 runs evaluated more than 1,900 frames per case, but no RTX 20, 30 or 40 run is reported. The 8 GB replacement peak has not been measured. **Other systems:** The direct path is Windows-only; replacement also changes for NVIDIA's NGX path and Linux. The later replacement and file-check changes have no reported game run, and a Linux build and run remain pending. **Switches:** RX_VK_DLSS_NR_MODEL is unset by default, selecting Auto; the saved dlss5_model row also defaults to Auto. Auto chooses NVIDIA's model when both are present on RTX 50, which matches the stated preference. **Reviewed:** 47df2d82d6e0 against 348ecdd811d5: Read AGENTS.md, CONTRIBUTING.md, the fix diff and the replacement and support code around the changed lines. Skimmed the overall diff and recorded runs; the remaining changed files were not read in full.; nothing run (a code review). **Checked and fine:** - The replacement waits for deferred release before allocating a successor, and attempts to restore the applied settings after a rejected replacement. - The menu checks whether the file-search future is ready before reading it. **Testing:** No commands from the project were run. The description reports RTX 5090 game runs on an earlier revision; CI has not run on this head. **Overlaps and merge order:** None identified in the supplied context; the prerequisite #2503 is merged. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
llun approved these changes 2026-11-25 19:35:45 +00:00
Dismissed
llun changed title from WIP: feat(dlss): DLSS 5 on RTX 20, 30 and 40 with the community FP16 file (Windows) to feat(dlss): DLSS 5 on RTX 20, 30 and 40 with the community FP16 file (Windows) 2026-11-25 19:35:49 +00:00
llun scheduled this pull request to auto merge when all checks succeed 2026-11-25 19:35:57 +00:00
llun approved these changes 2026-11-25 19:36:13 +00:00
llun requested review from BeanBot 2026-11-25 19:36:31 +00:00
llun merged commit 68ab0bc7ba into main 2026-11-25 19:36:44 +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!2513
No description provided.