WIP: feat(settings): NVIDIA DLSS's card offers Frame Generation through Streamline on Windows #344
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
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/LongshotLauncher!344
Loading…
Reference in a new issue
No description provided.
Delete branch "Jiro113/LongshotLauncher:feat/dlss-card-streamline"
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?
Players with an RTX 40 card or later can't turn on DLSS Frame Generation from the launcher: the builder needs NVIDIA Streamline beside the game, under a second NVIDIA licence. This PR adds that choice to the NVIDIA DLSS card, behind its own licence, and hands it to the builder through the profile, so the builder only places Streamline when a player has asked for it.
Rebuilt on
mainafter builder protocol 2 (#353):--profile <folder>everywhere, nolauncher-instance.json, no--profile-id. Longshot's side is merged: #2748 carries all of Streamline (a425fa2aa, innightly-936-a425fa2a); #2749 is closed.tests/longshot.refnow pinsa425fa2aa. Not a duplicate of #50, an ANR runtime download for the earlier .NET launcher.What changes
main. Once its licence is accepted where Streamline is offered, the dialog stays open on DLSS's active state and offers a second, unchecked choice, Frame Generation through NVIDIA Streamline (RTX 40 series and later), above the licences, with three points on what it brings (smoother pacing of DLSS FG's frames than NGX alone, Reflex kept on, nothing to set up). Elsewhere, and for a version whose builder can't place it, the dialog closes as before. Checking it the first time shows Streamline's licence, under its own heading, with Accept and enable. In a short window the licence texts shrink, then the dialog scrolls. The acceptance is the launcher's (streamlineLicensein its settings); the choice is per version,streamlinein the version's record beside its modules. Turning DLSS off turns it off.licenses::streamline_offered): nightly, main and pull request versions. Linux never shows it (Streamline has no Linux runtime). On the Build page, a change to a channel that doesn't offer it clears it."streamline": trueinprofile.jsonand the receiptlicenses.streamlineat pin625db07d…(Streamline's v2.14.16 tag), which the launcher writes and the builder never does. Only a builder whoseinfolistsstreamlineincapabilities.builderis told anything (the capabilities are remembered with the protocol, per program):build --profile <folder> … --streamline on|off, with the receipt written into the profile beforeon. The builder writes the choice into the profile.--streamline, so every Play writes the version's choice into the profile first ("streamline": true, or the key taken out; nevernull, which the builder refuses), with the receipt, as it already does for the upscalers. Two versions of one profile with different choices each play with their own, the builder's rebuild key carrying Streamline when it is wanted.Enabled · Streamline FGonly when the build record (longshot_build.json) says"streamline": "placed", not merely when it was asked.reuse.rs): a build folder whose record asked for Streamline (placed,keptorskipped) is never copied into another version, and a new version that wants Streamline is built, not copied.tests/longshot.refmoves to Longshota425fa2aa, with what the builder's contract has there: Storage's shader cache also clears the cache a game keeps for another shader store (longshot_shader_store_ref.txt,longshot_programs.fallback.bin,.idx), under the fallback's own lock as the game takes it; andtests/fixtures/longshot-builder/codes.mdis the builder's table at that commit (streamline_skippedamong the warnings; noself-updateorsteam-shortcutrows).tests/test_launcher_core.py: the launcher's receipt must equalSL_REPOin Longshot'sbuilder/crates/build-driver/src/runtimes.rs, and its licence link the release page ofscripts/sl_sdk.py'sVERSION. CI's sparse checkout takes both files (docs/ci.md).docs/builder.mdgains--streamlineand a Streamline section.Licences (Q4: done)
The launcher carries the two texts, as it already carries
NVIDIA-DLSS.txt. Only these two texts come from NVIDIA; no DLL, archive or header is in the repository. Unchanged since the previous head:assets/licenses/NVIDIA-Reflex.txt: NVIDIA's License Agreement for NVIDIA Software Development Kits,bin/x64/reflex.license.txtof the pinnedstreamline-sdk-v2.14.16.zip, SHA-256ebf83c07fb3b2939908c3795d887afde3161c89a28ba391724efc784ce1bdabe.assets/licenses/Streamline-MIT.txt: Streamline's MITlicense.txtat the pin, SHA-2567b6f23e7d6f3ad6292f9308d2b42cdc3d82ae4e9b2abb55f230279d83bedd43d.Both are byte for byte what the zip ships. NVIDIA's text is Windows-1252, so the launcher decodes its five non-ASCII bytes for display and trims its trailing empty lines (the file keeps them);
assets/licenses/SOURCESsays how, and the pre-commit end-of-file and trailing-whitespace hooks skipassets/licenses/.Known: Q8
Reported, not reproduced yet: the game's Frame Generation option that Streamline needs turns itself off after a restart (Q8). If it does, this choice places a runtime that never starts. The game trial below did not see it: Play, quit, then Play again kept the option, and Streamline started both times. The in-game Restart now couldn't be tried: from a launcher Play, the game closes for the restart and doesn't start again, with or without Streamline (details in the PR's comments; a Longshot point). It stays open until the reporter's case is known.
Still to do
--streamlinefor a builder that can.tests/longshot.refata425fa2aa(innightly-936-a425fa2a), with the Streamline pin parity and the builder's codes table. Also checked by hand ata425fa2aa: receipt keystreamline, capabilitystreamline,build --streamline on|off,"streamline": trueread from the profile (nullrefused),Record.streamlineplaced/kept/skipped.nightly-936-a425fa2a(below).verify --repairkeeps Streamline: a damaged game file is put back alone and Streamline's DLLs are unchanged (in the PR's comments).Tests
Windows (x86_64-pc-windows-gnullvm), through the local build queue, at this head (
60e4cca, onmain6bc3e1a), each failure compared withmainat6bc3e1arun the same way:cargo fmt --all -- --check: clean.cargo clippy --locked --workspace --all-targets -- -D warnings: one error, the same onmain:variants `No` and `Wants` are never constructedinsrc/game/steam/access.rs(from #372, on Windows; this PR doesn't touch it). Nothing else.python -I tests/test_launcher_core.py --longshot <checkout>, against Longshota425fa2aachecked out with CI's sparse file list: the builder comparison passes (languages, licences and the Streamline pin, FP16 DLSS 5 files, save user, shader names, error codes); the catalog, translation and glyph checks pass;cargo test --locked: 234 passed, 12 failed, 3 ignored. The same 12 fail onmain(folders, registry, recovery, Steam library, home, storage,update::releases: Windows path and link handling this PR does not touch).src/game/licenses.rs.LAUNCHER=$PWD python -I ../Tooling/tests/test_release.py(Tooling8f6f6c9,.tooling-rev): 46 tests OK.streamline_is_a_version_choice_inside_dlss,streamline_is_taken_only_when_every_condition_holds), DLSS off turning it off in the record, Play writing it into the profile and taking the key out (play_writes_the_versions_choice_into_the_profile_as_the_builder_reads_it), Play leaving the key alone for a builder that can't and handing it to one that can (play_writes_streamline_into_the_profile_only_for_a_builder_that_can, every platform), the receipt as consent,--streamlineonly for a capable builder (a_build_says_streamline_on_or_off_only_to_a_builder_that_can), the receipt beforeon(a_build_tells_a_capable_builder_and_writes_the_receipt_before_on), the capabilities read frominfo,"placed"alone counting, the dialog's licence flow and Build page channel (module_tests, Windows; accepting DLSS keeps the dialog open where Streamline is offered and closes it on Stable or for a builder that can't place it), and the fallback cache cleared under its lock (the_fallback_program_cache_is_cleared_under_its_own_lock, red before the change).src/game/wizard/reuse_tests.rs) and the end-to-end build assertions inwizard.rsare Unix only; CI (Linux) is the first to run them.Game trial
On Windows 11 with an RTX 4090. The launcher was a dev build of this head (
67b3e76), run in a fresh trial profile of its own (LOCALAPPDATA,APPDATAandLONGSHOT_LAUNCHER_HOMEin a scratch folder; no real settings, saves or caches touched). It installednightly-936-a425fa2a, which is Longshota425fa2aa, with NVIDIA DLSS and Frame Generation through Streamline chosen in the dialog. The game ran fullscreen on a virtual display with sound off.longshot.exe.profile.jsonhad"streamline": trueandlicenses.streamline=625db07d…,version.jsonhad"streamline": true, andlongshot_build.jsonsaid"streamline": "placed". The Build page and the Versions page both said Enabled · Streamline FG.frame_generation=2andframe_generation_by=0(DLSS FG) in the profile'ssettings.ini. The game's log had:vk: Streamline started for DLSS Frame Generation (its loader in place of vulkan-1.dll)vk: Streamline: DLSS Frame Generation ready (up to 2x)vk: NVIDIA DLSS: NGX started …, thenvk: Streamline DLSS Frame Generation: on, 2xdid not start,not supportedor signature line.longshot_ctl.py --sock … quit). The log ended withvk: Streamline shut down for the exit (result 0)thencontrol: exiting, and the launcher went back to Home without an error.settings.inistill hadframe_generation=2andframe_generation_by=0, the game read them back the same through the control bridge, Streamline started again and said it was ready, and the second exit was clean too. This run was quit at the title screen, before play, so it has noon, 2xline. Q8 was not seen in this path. Its other cases were not tried: the in-game Restart now, and a setting changed in the game's menu.Review notes
A cold review read the whole diff at
baf3d21. Taken: Play's profile writes had no test (nowprepare_play_on, tested on every platform; dropping itsprepare_streamlinecall or the capability check fails it); the Versions dialog showed a choice checked without the licence accepted (now as Play reads it); a missing space before NVIDIA in the two Chinese catalogs; the pre-commit exclusion now keepsSOURCESunder its hooks. Kept, on purpose:infothat fails while the dialog asks leaves the choice greyed without a reason: Play would fail on the sameinfowith its own message.tests/test_launcher_core.pycatches it.start_forreadsinfobefore Play writes the profile, as for the upscalers; it only routes on Linux, where Streamline is never taken.🤖 Generated with Claude Code
Possibly related, for context:
110b2b3f055150757c995150757c9965a112e6bb@review
Recommendation: Request changes. It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first). (L2) The launcher-side choice and licence flow are demonstrated, but a game build and Play with the dependent Streamline builder have not yet been tried. Longshot #2748 and a nightly carrying it are also needed before this feature can work for players.Adds an opt-in Streamline Frame Generation choice to the Windows DLSS card, records consent and carries each version’s choice to capable builders. The implementation adds profile and builder-protocol handling; its end-to-end benefit remains unverified.
Blocking (1): must change before merging.
@fixor@rebasetry first). (for the author)Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)
src/game/versions.rs:439: The feature has not yet been exercised through a game build and Play with the Streamline-capable builder. (more on the line) Do: After Longshot #2748 is available, try a Windows build and Play on a supported RTX card, restart with Frame Generation enabled, switch the choice off and on, and check rebuild and verify --repair.Checks: Still running: 5 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven: the Windows screenshots show the Build-page licence flow, and the reported builder trial checks profile parsing and flag handling without a game. No game build, Play, rebuild or repair trial is reported.
Other systems: The change touches shared profile data and builder calls on Windows and Linux. Streamline is offered only on Windows outside stable; older builders are not given the new flag. The reported tests cover profile preparation on every platform, but a game trial with the dependent builder is still missing.
Switches: Adds the per-version Streamline choice, unchecked by default, and conditionally passes the builder’s --streamline on|off flag. The opt-in default is appropriate for a separately licensed Windows runtime.
Reviewed:
65a112e6bbagainst6ae84979a2: Read repository rules, commit messages, the code changes and surrounding build, Play, profile, capability and UI paths. Skimmed translations, licence assets and recorded runs; the large changed files and generated/catalog content were not all read in full. No review checklist or pull request template was present at the named paths.; nothing run (a code review).Checked and fine:
Testing: Read-only review; no code, scripts, builds or tests were run. The author reports Windows formatting and Clippy checks passing, with 12 test failures also present on the base; CI is still running.
Overlaps and merge order: Depends on Longshot #2748; merge it first and update the pinned builder reference and parity checks when a nightly carries it. Longshot #2749 is closed, and launcher #50 addresses a different runtime download.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.
@ -434,2 +438,2 @@modules::prepare_licenses(&builder, &enabled)?;modules::prepare_upscalers(&builder, &enabled)?;let enabled =modules::prepare_play_on(&builder, &version, found.can("streamline"), cfg!(windows))?;L1 (should fix): The feature has not yet been exercised through a game build and Play with the Streamline-capable builder.
When: A Windows player accepts the licence and enables Streamline, but the reported trial stops before building or starting the game; runtime placement, activation and preservation through rebuild or repair remain unknown.
Do: After Longshot #2748 is available, try a Windows build and Play on a supported RTX card, restart with Frame Generation enabled, switch the choice off and on, and check rebuild and verify --repair.
@rebase
I rebased this pull request onto
main(6bc3e1af35): the new head is330a97f69a.Conflicts resolved
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.
65a112e6bb330a97f69aRecommendation: Approve. The code is ready: only testing is left (a run of the change itself). The Streamline choice has not yet been exercised through a game build and Play, and Forgejo still reports the pull request as unmergeable. Recommend approval; not approved on the forge.
The launcher offers Windows players a per-version Streamline Frame Generation choice with separate licence consent and passes it to capable builders. It adds capability checks and profile handling; the end-to-end result remains unverified.
Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)
src/game/versions.rs:439: The feature has not yet been exercised through a game build and Play with the Streamline-capable builder. When: A Windows player accepts the licence and enables Streamline, but the reported trial stops before building or starting the game; runtime placement, activation and preservation through rebuild or repair remain unknown. Do: After Longshot #2748 is available, try a Windows build and Play on a supported RTX card, restart with Frame Generation enabled, switch the choice off and on, and check rebuild and verify --repair.Since the last review (on
65a112e6bb)Resolved: L2 (It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first).)Still open: L1 (The feature has not yet been exercised through a game build and Play with the Streamline-c…)
Checks: Still running: 5 checks.
Also noticed (2; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Unproven: the reported builder trial checked protocol and profile behavior without a game, but did not build or play the game with Streamline.
Other systems: The choice is offered on Windows outside stable; Linux and builders without the capability follow separate paths. The Windows dialog was exercised, but a game trial with the dependent Longshot builder is still needed.
Switches: Adds a per-version Streamline choice, unchecked by default, gated by DLSS, Windows, channel and licence acceptance. The default avoids placing the separately licensed runtime without consent.
Reviewed:
330a97f69aagainst6bc3e1af35: Read AGENTS.md, CONTRIBUTING.md and src/game/info.rs in full; inspected the diff for src/game/info.rs, src/game/wizard.rs and ui/game-model.slint, the commit list, recorded runs and comments. The remaining changed files and full pull request diff were not read in this re-check.; nothing run (a code review).Checked and fine:
Testing: No commands from the project or tests were run. The recorded Windows checks and screenshots are reported evidence; CI is still running, and the end-to-end game trial remains outstanding.
Overlaps and merge order: Depends on Longshot #2748; merge it and update the pinned builder fixture before relying on the integrated feature.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.
2 things:
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.