feat(vk): a DLSS FG through row chooses NVIDIA Streamline or NGX for DLSS Frame Generation #2926
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2926
Loading…
Reference in a new issue
No description provided.
Delete branch "pmwork-personal/Longshot:feat/dlss-fg-maker-row"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
With NVIDIA Streamline's files beside
longshot.exe(#2456, #2738, #2748), Streamline makes DLSS Frame Generation'sframes whenever the saved rows ask for them (Frame generation Fixed, by DLSS FG, NVIDIA DLSS or DLAA). There was no way
in the game to have NVIDIA's NGX make them instead: only
RX_VK_DLSSG=0inlongshot_env.txt.This adds a Graphics row under Frame generation by: DLSS FG through, Streamline (the default, as before) or
NGX (saved as
dlss_fg_through).dlssg_load's checks (now also NVIDIA's signature for themenu, the same
verifyEmbeddedSignature: kept from the start, or made once at the start on a thread of its own whereStreamline does not start, never on the menu's thread;
signed_okreads it) on an NVIDIA GPU that runs DLSS FG, andNGX's
nvngx_dlssg.dllis in a folder NGX looks in (dlss_fg_runtime_found: under Streamline, NGX's DLSS-G is neverasked). And only with Frame generation on, by DLSS FG, with a temporal Upscaler.
nvngx_dlssg.dll(the launcher's builds share one optionsfile), a saved NGX is Streamline, and the log says so (
through_saved). A run started at NGX keeps the row where NGX'sown DLSS-G says no (
through_offered,through_could), so the player can choose Streamline again. Its line suggeststrying Streamline with Fixed and NVIDIA DLSS or DLAA after a restart.
Fixed multiplier's frames only), an Upscaler other than DLSS or DLAA (NGX makes them then), and
RX_VK_DLSSG=0(NGX for that run; the switch still wins over the row).
saved_rows,dlssg_rules.h starts). The restart is this row's alone (through_restart; the Frame generation by row's restartvalue leaves it out), so the menu says "Restart needed: DLSS FG through". Until the restart, the maker the game started
with goes on making the frames, and the row's line says so.
vk: Streamline started for DLSS Frame Generation, orvk: Streamline: not started: the DLSS FG through row chooses NVIDIA's NGX (dlss_fg_through=1) for DLSS Frame Generation, then NGX'sof the last 600 presents 600 made by DLSS-G. Frame generation by reads DLSS FG (Streamline)or DLSS FG.
Texts in all 13 menu languages; the settings table, the graphics guide,
advanced.md, the upscalers reference, theswitch table's
RX_VK_DLSSGrow and the website's badge are updated.Read first:
gpu/vk/dlssg_rules.h(starts,through_restart,through_row),gpu/vk/vk_dlssg.cpp(
saved_rows,rows_now,could_start/signed_ok,dlssg_restart_needed,dlssg_through_restart,dlssg_through_row), then the row ingpu/vk/menu/framegen.cpp.Builds on Jiro113's Streamline work (#2456, #2738). Overlap: #2795 (Frame generation's Auto runs DLSS FG) also changes
gpu/vk/menu/framegen.cpp; the row's Auto lock stays true with it (Auto there is NGX's).Testing
Tested: Windows 11 Pro (build 26300), RTX 5090, NVIDIA 621.24, 5120x2160 fullscreen. A pack of this branch on the
shared base of
maine6a71a1d(NGX SDK for DLSS; Streamline 2.14.16's seven runtime files copied besidelongshot.exe), through the job queue, with thekokiri-startsave and a player's settings (DLAA, Frame generationFixed 3x by DLSS FG, NVIDIA Reflex On + Boost; DLSS 5 off for the test, because of main's exit fault #2807 and three
exits). The menu driven with the keyboard, the restarts through the control bridge's
relaunch(Restart now).main(the base alone, same files and settings): no DLSS FG through row; Frame generation by reads DLSS FG(Streamline); the log says
Streamline started.Streamline started ... ready (up to 6x); the row reads Streamline, its line Streamline's.then, NVIDIA Streamline makes them.", and "Restart needed: DLSS FG through" (not Frame generation (Streamline)). With
the menu closed, the counter still read 180 FPS, Base 60, DLSS FG (Streamline at 3x until the restart).
choose Fixed on the Frame generation row for it."; the restart goes to Frame generation (Streamline). Frame
generation by Built-in FG: the row is hidden. Both put back.
vk: Streamline: not started: the DLSS FG through row chooses NVIDIA's NGX (dlss_fg_through=1) ...,NGX started,DLSS Frame Gen (NGX): of the last 600 presents 600 made by DLSS-G; the counter 179 FPS, Base 60, DLSS FG; Frame generation by reads DLSS FG, the row NGX with"NVIDIA's NGX makes DLSS FG's frames, as in a game without NVIDIA Streamline."
then, NVIDIA's NGX makes them." Restart now:
Streamline started ... ready (up to 6x),Streamline DLSS Frame Generation: on, 3x; Frame generation by reads DLSS FG (Streamline).e6a71a1d). After a self-review, its fixes (the third commit; thebuild that ran was that commit on
e6a71a1d) again: started with NGX saved, the log saysStreamline: not started: the DLSS FG through row chooses NVIDIA's NGX (dlss_fg_through=1) for DLSS Frame Generation, NGX makes 600 of 600, andthe row shows at NGX when the menu opens (the signature from its own thread). With NGX saved and NGX's
nvngx_dlssg.dlltaken out of the game folder'sngx:the DLSS FG through row chooses NVIDIA's NGX, but no nvngx_dlssg.dll is in NGX's folders: ..., thenStreamline started,on, 3x, and the row is not listed (hidden).DLSS Frame Generation takes Streamline, nosignature thread in a
--prepare-shadersrun, comments) are built (a pack) but not run in the game. The later fixesto the pending signature check and NGX recovery help have not been reported built or run. The branch is
rebased onto
main0863effaf, which changed only CI files sincee6a71a1d.VK_ERROR, device lost or fatal line in the runs' logs. Pictures ofmainand of each step in a comment.Checks:
tests/test_dlss_fg_through.py(new) fails onmaine6a71a1dwith "a saved dlss_fg_through=1 (NGX) stillstarts Streamline ..." and passed on the tested branch; it compiles
saved_rowswithdlssg_rules.h,dlss_fg_runtime_foundwithfolders of its own, and the row's texts, lines and lock.
tests/dlssg_rules_test.cppcoversstarts,through_keeps_out,through_restart(exactly one row names a restart) andthrough_row.tests/test_dlssg.pyupdated for
could_start's signature check. The website's table parse checked with its own code (badges "WithStreamline's and NGX's DLSS FG files", "While Frame generation is on").
tests/run_all.pyon this PC:maine6a71a1d802 passed, 62 failed; the tested branch 816 passed, 49 failed; no check failed there that passed onmain(the 49 aremain's own on this Windows PC; the extra ones onmainran beside a base build). The renderer built for Windows (thepack);
dlss_fg_runtime_found's Linux branch (libnvidia-ngx-dlssg.so.*) is compiled by the new test on Linux only,so CI's Linux run is its first.
Still to test:
nvngx_dlssg.dllin place: the row shows; NGX after a restart makes 2x,the log's
made by DLSS-G(@Beanstalk "DLSS FG through row: Streamline, then NGX after Restart now, on an RTX 40")build without Streamline)
RX_VK_DLSSG=0inlongshot_env.txt: the row reads NGX, locked, "RX_VK_DLSSG=0 is set: it chooses for this run."(by hand; the game-free test covers its text and lock)
Measurements
Nothing to measure: a menu row whose default (Streamline) runs as
maindoes; the only new work is one signature check ofsl.interposer.dllon a thread of its own at the start where Streamline does not start (never on the menu's thread), and one look fornvngx_dlssg.dllin NGX's folders, once a run.Risks
Streamline at the default is unchanged.
Frame generation (Streamline)'s, as before.
could_startnow also needs NVIDIA's signature. While the asynchronous check is pending, the Frame generation byrow can still indicate a restart; if the signature fails, it no longer offers "a restart brings Streamline in".
row, so Streamline can be chosen again. On an RTX 20 or 30 (DLSS runs, DLSS-G does not) such a choice costs one
restart: Streamline then says no at the start (as on
mainwith its files there) and the row hides.dlss_fg_through=0inlongshot_options.ini. A revert is enough to undo this; until thenRX_VK_DLSSG=0still keeps Streamline out.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). (tests/run_all.py: every failure on the tested branch also failed onmaine6a71a1don this PC; the later fixes have not been reported tested.)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
gpu/vk/switches.def. (no new switch;RX_VK_DLSSG's row names the new row)tests/that reads changed source is updated, not weakened.mainand here, for a change that shows on screen.Assisted-by:/Co-Authored-By:trailers.Ready to merge
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
Tested in game: Windows 11 Pro (build 26300), RTX 5090, NVIDIA 621.24, 5120x2160 fullscreen; a pack on main's shared base with Streamline 2.14.16's runtime beside longshot.exe and NGX's nvngx_dlssg.dll in ngx; the kokiri-start save, DLAA, Frame generation Fixed 3x by DLSS FG. The row shows; Streamline, then NGX after Restart now (600 of 600 made by DLSS-G), Streamline again after a second restart; locked at Frame generation Auto and with FSR 3.1, hidden at Built-in FG; with NGX saved the row shows at NGX, and without NGX's nvngx_dlssg.dll a saved NGX starts Streamline. No device lost or fatal line.
The Graphics tab's Frame generation section, 5120x2160, Windows 11, RTX 5090 (Streamline 2.14.16's runtime beside
longshot.exe, NGX'snvngx_dlssg.dllinngx):maine6a71a1d: no DLSS FG through row; Frame generation by reads DLSS FG (Streamline).@Beanstalk on Windows with an NVIDIA RTX 40, a build with NVIDIA DLSS and NVIDIA Streamline's runtime (the builder's Streamline choice), Frame generation Fixed 2x, Frame generation by DLSS FG, Upscaler NVIDIA DLSS, into play for a minute. Two separate starts:
dlss_fg_through=0): expectvk: Streamline started for DLSS Frame GenerationandStreamline DLSS Frame Generation: on, 2xin the log, and the menu'sdlss_fg_throughrow listed at Streamline.dlss_fg_through=1): expectvk: Streamline: not started: the DLSS FG through row chooses NVIDIA's NGXand, in play,DLSS Frame Gen (NGX): of the last 600 presents 600 made by DLSS-G, and the row listed at NGX.If Streamline's runtime cannot be put in the build, say so and run one start instead: then no
dlss_fg_throughrow is listed and NGX makes the frames. Report each start's frame rate againstmain.Beanstalk test farm · an earlier run: commit
976f1e8(the newer results are in a comment below)Commit
976f1e8· approved by pmwork-personal (reviewed) · dashboard⚠️ Note: The plan schema cannot select the builder's Streamline runtime or set the new dlss_fg_through row, so it runs the requested no-Streamline fallback instead; it cannot automatically verify that the row is absent.
⚠️ Note: The draws probe reports game-frame FPS against main, not necessarily the presented rate including generated frames; one start per side does not establish a noise-resistant performance comparison.
Started.
Estimate: done in about 1 h 30 min, from the queue and the testers online now; some jobs can't start yet.
windows+nvidia+window+dlss+gpu-rtx-40xx(GPU "rtx 40xx")What was tested
What will be tested · AI plan (
gpt-6.1-terra)The alternative run tests DLSS Frame Generation through NGX on Windows with an NVIDIA RTX 40-series GPU, using the DLSS build and a real window. It runs for one minute in Kokiri Forest with DLSS and fixed 2x frame generation, and reports frame rate alongside main. The run fails if the PR crashes or does not log that NGX made 600 of the last 600 presents.
kokiri-start(settings dlss=1, frame_generation=2, frame_generation_by=0; switchesHOS_FPS_MAX=30,HOS_OUTPUT_RES=1280x720; in a hidden window (the present path runs)), then measure play for 60 s (after 10 s warm-up); 1 run on each side.@review
Recommendation: Approve. While the signature check is pending, an existing Frame generation change can lose its restart prompt and take effect differently on the next launch. The NGX-to-Streamline recovery path also shows conflicting choices when NGX cannot run DLSS FG. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.
Adds a saved menu choice between Streamline and NGX for NVIDIA DLSS Frame Generation. The default preserves Streamline; the new asynchronous signature check can temporarily suppress existing restart guidance.
Should fix (2): not blocking, but worth doing before merging.
gpu/vk/vk_dlssg.cpp:518: Treating an unfinished signature check as a failed check suppresses the existing Streamline restart indication. (more on the line) Do: Represent the pending check separately and preserve the restart indication until its result is available, without blocking the menu thread.gpu/vk/dlssg_rules.h:140: The recovery row can say DLSS FG is selected while the Frame generation by row says FSR 3.1 FG. (more on the line) Do: Make the recovery state explicit in the menu and align the two rows' displayed choices and help with the effective maker.Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)
@fixcan do L1 and L2.Checks: Failing on this head, which is behind its base, where it passes:
CI / Third-party parts and guide screenshots (pull_request).@rebase(or@fix) brings it up to date and runs it again; not held against it. Still running: 7 checks.More: does it help, other systems, switches, what was read
Does it help: Yes for the tested configuration: the author reports Streamline, then NGX making 600 of 600 presents after a restart, and Streamline again on an RTX 5090. This is a feature rather than a performance change; no comparative performance measurements were supplied.
Other systems: The Streamline implementation is Windows-only; Linux uses the stubs. The change also affects existing Frame generation restart guidance when Streamline is installed but did not start. The reported game run covers Windows and RTX 5090; the requested RTX 40, missing Streamline files, and RX_VK_DLSSG=0 runs remain outstanding.
Switches: Adds the saved dlss_fg_through option, default 0 (Streamline), preserving the previous default. RX_VK_DLSSG is unchanged and still overrides the choice; its switch-table description is updated.
Reviewed:
976f1e89e4against0863effaf5: Read the repository instructions, contribution rules, pull request template, commit messages, core startup and menu changes, runtime discovery and the new test. Skimmed the translations, documentation, other test changes, screenshot stubs and website changes. docs/review-checklist.md and the adjacent Tooling checkout were absent. Did not read every changed code file in full.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run, as requested. CI is still running; the author reports an in-game Windows RTX 5090 run on the preceding commit and a build of the final commit.
Overlaps and merge order: #2795 also changes gpu/vk/menu/framegen.cpp; its merge order is not established here.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@ -94,0 +137,4 @@/// Whether the DLSS FG through row has two makers to offer: Streamline could start (through_could) and NGX could make the/// frames (its runtime there, DLSS FG running as far as NGX knows); or the run started at NGX, where the row stays, so/// that a player whose NGX does not make the frames can choose Streamline againL2 (should fix): The recovery row can say DLSS FG is selected while the Frame generation by row says FSR 3.1 FG.
When: Start with NGX saved and an NGX runtime that refuses DLSS FG. through_offered keeps this row visible from the saved framegen_by value of 0, but framegen_by_dlss_offered is false and the preceding row displays that same value as FSR 3.1 FG.
Do: Make the recovery state explicit in the menu and align the two rows' displayed choices and help with the effective maker.
@ -489,1 +516,3 @@bool could_start(const State& s) { return s.could && dev.props.vendorID == 0x10DE && dlss_fg_unavailable() == FG_SKIP_NONE; }/// Whether sl.interposer.dll beside longshot.exe has NVIDIA's valid signature, as dlssg_load checks it before it loads/// it: its answer where it started Streamline, else its thread's (no until that thread is done)bool signed_ok(const State& s) { return s.signature.load(std::memory_order_acquire) == 1; }L1 (should fix): Treating an unfinished signature check as a failed check suppresses the existing Streamline restart indication.
When: Start with Frame generation off and Streamline installed, then choose Fixed DLSS FG with DLSS while WinTrust is still checking the signature. could_start returns false, so closing the menu does not ask for a restart; the saved settings nevertheless start Streamline on the next launch.
Do: Represent the pending check separately and preserve the restart indication until its result is available, without blocking the menu thread.
@fix
976f1e89e4c0cb4146cdBeanstalk test farm
Commit
8c08d3e· approved by nobody yet · dashboardA member of
BigBeanscan review this commit and comment@Beanstalkto test it.Recommendation: Approve. The code is ready: only testing is left. The row has been demonstrated on an RTX 5090, but the remaining Windows configurations have not been exercised in game. Recommend approval; not approved on the forge.
What
@fixchangedI changed this pull request: the new head is
c0cb4146cd. I rebased it ontomain(d1ce3f3f18). I edited its description to match the change.Changed
Nothing was built or run: the checks run again on the new head.
The row lets players choose Streamline or NGX for DLSS Frame Generation after a restart. The default remains Streamline; the fix preserves the pending restart indication and adds recovery guidance when NGX cannot provide DLSS FG.
Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)
Checks: they run again on this head (
CI / Third-party parts and guide screenshots (pull_request),CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request)failed on the last one); a failure shows on the pull request.Also noticed (1; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Yes for the feature on the tested RTX 5090: the reported run switched to NGX after restart, with 600 of 600 presents made by DLSS-G, and switched back to Streamline. This is not a performance claim.
Other systems: The remaining RTX 40, missing Streamline runtime, and RX_VK_DLSSG=0 Windows cases are untested in game. The Linux runtime-search branch is reported as awaiting its first CI compilation.
Switches: No new environment switch. RX_VK_DLSSG=0 continues to force NGX; its documentation now names the row. The saved dlss_fg_through option defaults to Streamline, matching the previous behavior.
Reviewed:
c0cb4146cdagainstd1ce3f3f18: Read the fix diff, the repository instructions, contribution rules, pull request template, relevant frame-generation rules and menu code, and signature and availability references. Skimmed translations and tests; the complete pull request diff and all changed files were not read in full. The review checklist file was absent.; nothing run (a code review).Checked and fine:
Testing: No commands from the project or tests were run. The author reports in-game switching and fallback checks on Windows with an RTX 5090 on an earlier commit; the remaining Windows runs are outstanding.
Overlaps and merge order: #2795 also changes the frame-generation menu; coordinate its merge with this row's Auto lock.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.
@fix
c0cb4146cd8c08d3e5f7Recommendation: Approve. The code is ready: only testing is left. The RTX 5090 run shows the new choice working, but the remaining Windows configurations have not been exercised in game. Recommend approval; not approved on the forge.
What
@fixchangedI changed this pull request: the new head is
8c08d3e5f7. I rebased it ontomain(10853755da).Nothing was built or run: the checks run again on the new head.
Adds a saved menu choice between Streamline and NGX for DLSS Frame Generation, applying it after restart. The default retains Streamline; the choice adds startup and menu logic to handle availability and recovery.
Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)
Checks: they run again on this head (
CI / Third-party parts and guide screenshots (pull_request),CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request),PR description / Title and description (pull_request_target)failed on the last one); a failure shows on the pull request.More: does it help, other systems, switches, what was read
Does it help: Yes: the reported RTX 5090 run switched from Streamline at 180 FPS to NGX at 179 FPS, with NGX reporting 600 of 600 presents generated. These are functional observations, not a performance comparison.
Other systems: The change affects Windows NVIDIA Streamline and NGX startup, restart indications and runtime detection. The reported in-game run covers an RTX 5090; RTX 40, missing Streamline files and the switch override remain untested in game. Linux runtime detection has a separate code path; no Linux result is reported.
Switches: No switch added or removed. RX_VK_DLSSG retains its existing default and overrides the saved choice when set to 0; its switch-table text now names the row.
Reviewed:
8c08d3e5f7against10853755da: Read AGENTS.md, CONTRIBUTING.md, the pull request template and gpu/vk/dlssg_rules.h in full; read the relevant startup, runtime detection and menu sections of gpu/vk/vk_dlssg.cpp, gpu/vk/vk_dlss.cpp and gpu/vk/menu/framegen.cpp. Skimmed the change statistics, commits, supplied runs and comments. Other changed files and the full diff were not read in this re-check. docs/review-checklist.md and the adjacent Tooling AGENTS.md were absent.; nothing run (a code review).Checked and fine:
Testing: No commands that build or run the project were executed. The author reports an RTX 5090 in-game run and game-free checks on an earlier commit; the latest fixes have not been reported built or run. CI has not run on this head.
Overlaps and merge order: The description identifies overlap with #2795 in gpu/vk/menu/framegen.cpp; merge order is not stated.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.