feat(builder): DLSS FG through Streamline from its MIT headers, and its runtime for a profile that takes it #2748
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2748
Loading…
Reference in a new issue
No description provided.
Delete branch "Jiro113/Longshot:feat/builder-streamline-headers"
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
DLSS Frame Generation through NVIDIA Streamline is compiled into a player's game only when a developer points
LONGSHOT_SL_SDKat Streamline's SDK, and no build puts Streamline's runtime beside the game, so no player has it.This brings it to players in one pull request: every Windows build with DLSS compiles the Streamline layer from
Streamline's MIT headers, now in the repository, and the builder puts Streamline's runtime beside the game for a
player who chose it and accepted NVIDIA's licenses for it, and for no one else.
third_party/streamlineholds Streamline 2.14.16's MITlicense.txtand the 13 headers DLSS FG through Streamline compiles with: the sixgpu/vk/vk_dlssg.cppincludes andthe seven they include in turn (
vk_dlssg_layer.cppis built with the same flags and includes none), unmodified butfor LF, with their
PROVENANCE.md: the release tag's commit, the upstream blob ids, the licensereading and the
tree-sha256thatscripts/check_third_party.pychecks. Eleven headers carry the MIT notice;sl_appidentity.handsl_device_wrappers.hcarry none (as upstream, on main too) and come underlicense.txt, whoseone exception names
sl_nvperf.h/.dll, which are not taken. Nothing else of NVIDIA's is in the repository: no DLL,no zip, no other license, no other header. CONTRIBUTING says so beside XeSS's headers.
packages::sl_sdktakes a developer'sLONGSHOT_SL_SDKfirst, as before (with awrong one the build goes without Streamline and a note says why; the tree's never takes its place), else the tree's
third_party/streamlinefor a Windows build with DLSS, as XeSS's headers are taken. Nothing is downloaded for the compile. Without Streamline's runtime besidelongshot.exe,dlssg_loadreturns before doing anything, so the game runs as a build without Streamline. CI'svulkan-dlssjob compiles from the tree, with no SDK step.choice,
profile.json's"streamline": true, and its receipt,licenses.streamlineat the builder's pin (the 2.14.16release's commit), which the launcher writes once the player accepted NVIDIA's licenses for it. The builder never
writes that receipt.
build --profile <id | dir> --streamline on|offwrites the choice, as--prepare-shaderswritesits own:
truewritten, the key taken out when off (so a profile never chosen keeps its bytes), any other valuemakes the profile unreadable, said.
play,build(the launcher's Rebuild),verify --repairandinforead itfrom the profile, whether
--profileis a launcher's ID or a folder, so a Rebuild or a repair keeps the runtime itsplay put, and
info's fast check agrees with play's.launcher-instance.jsoncarries no Streamline. Since#2791, an installed version's
version.jsonselects its upscalers, so whether the build has DLSS is the version's;the choice and its receipt stay the profile's, as the licenses do (a test pins the two together). Not on Linux
(Streamline has no Linux runtime), not with a developer's
LONGSHOT_SL_SDK(its runtime is the developer's to putthere).
three licenses they are under taken out with the system's
tar(System32's), each checked against its SHA-256, keptin
<cache>/runtimes/, and the zip deleted. They go besidelongshot.exe, the licenses asLICENSE-NVIDIA-STREAMLINE.txt,LICENSE-NVIDIA-DLSS-FG.txtandLICENSE-NVIDIA-REFLEX.txt. Once there, the pinnedfiles are kept as they are by every later build, with no cache and no network.
longshot_build.json'sstreamline:placed;kept(a file of it there is not thebuilder's, another release's: all of it left as it is, nothing downloaded);
skipped(it couldn't be had); absentwhen the build was not asked for it.
info'sbuild.streamlinesays it too, and the builder's capabilities gainstreamline.tar, atarthat fails): onestreamline_skippedwarning, and the build goes on with DLSS as without Streamline. A play of the profileupdates the game folder to try again (
RebuildReason::Streamline) when the cache's mark of the last try says it istime (
<cache>/runtimes/sl-runtime-<pin's first 12>.tried): 10 minutes after a download that failed or a firsttarthat failed on the pinned zip (a full disk, a file held); never at a play after files that are not the pinned ones,
with no
tarat all, or after atarthat failed twice (276 MB each time, and no different: any other build orupdate, and the next builder, try again). A
keptone is not tried again, or every play would update.the pin, DLSS): every other profile keeps the key an earlier builder wrote, so it gets no update (a test pins the
formula). Choosing it or taking it back is a change of the profile, an update of the same game folder.
builder's put there; a file the player or
scripts/fetch.py streamline --gameput there stays.repository, as FSR's and XeSS's are, and nothing else of NVIDIA's enters it (its runtime comes from NVIDIA's release
on each PC, after the player's consent); the launcher embeds the texts of the licenses the player accepts, as it
does DLSS's (LongshotLauncher's side). This pull request now also carries the runtime step, formerly #2749. The
choice is the profile's, written by
build --streamline, as the owner decided over a field oflauncher-instance.json(which the launcher of #2762's protocol 2 no longer writes) or a flag on every command.Read first:
third_party/streamline/PROVENANCE.md,packages.rs(sl_sdk), thenruntimes.rs(takes_streamline,sl_runtime,sl_runtime_cached,unzip),play.rsinbuild-driver(streamline_wanted,key,rebuild_reason,Profile::readandsyncedfor"streamline"),build.rs(the removal, the record), and inlongshot-buildermain.rs(--streamline),play.rs(Settings.streamline,profile_for) andinfo.rs.tests/test_sl_sdk.pychecks the tree's files are the release's (with CRLF back, the SHA-256sscripts/sl_sdk.pypins), all under the MIT license, the whole include closure of what
gpu/andhost/include, and that the builder'sruntime is the same release's files as the script's.
Known limits, by design for now:
(MagicBeanDev/LongshotLauncher#344): it writes
licenses.streamlineat the pinonce the player accepted NVIDIA's licenses, and passes
--streamline on|offtobuild --profile, wheninfo'scapabilities list
streamline. A launcher of today writes neither, and--accept-licensestakes nostreamline.--streamline onon Linux, without DLSS or without the receipt writes the choice and puts nothing: the build saysnothing of it (the key and the record are as without it).
change's line and message) where it is a download or a removal.
LONGSHOT_CACHEandLONGSHOT_NO_PREPAREin the tests are the builder's existing variables (its cache folder, and no shaderpreparation), read by the builder only, not renderer or host settings (
gpu/vk/switches.deflists those), so theyhave no row there, and their defaults do not change.
gpu/vk/vk_dlssg.h's first comment still says the layer is built in withLONGSHOT_SL_SDK: that header is areviewed source of two guide screenshots (
docs/user/images/guide/manifest.json), so it is left for a change thatchecks them again.
turn itself off after a restart (not reproduced yet; a separate fix).
Testing
Tested: Windows 11, RTX 4090, NVIDIA 621.24, without
LONGSHOT_SL_SDK, every build, test and game run throughthe PC's job queue. The game runs and the Linux checks below ran at
93884ed8b, onmain@5468280d9, before therebases; the checks without the game ran again at this head (
318b0dee2, onmain@6f5f99fce), as After the rebasessays. The game ran in fullscreen on a 2560x1440 120 Hz screen, with the sound off,
RX_VK_DLSS=1,RX_VK_DLSS_FG=1andRX_VK_FRAMEGEN_MULT=2. Each run went to the titlemenu and was quit by the control pipe.
The setup. An installation made the way the launcher of #2762's protocol 2 makes one:
Longshot.exeis93884ed8b's
longshot-builderand the cache is inLONGSHOT_CACHE. There is nolauncher-instance.json. A profile folderwas first built by
build --profile <dir> --game ... --upscaler dlss --accept-licenses nvidia, then givenlicenses.streamlineat the pin in itsprofile.json, as the launcher writes it. Everything below passes--profile <dir>(a folder, as protocol 2 does); reading by a launcher's ID is covered by the unit tests only.build --profile <dir> ... --streamline on(a Rebuild that chooses it):"streamline": trueintoprofile.json;the Vulkan back end: with NVIDIA Streamline's DLSS Frame Generation (NVIDIA Streamline's SDK in <checkout>\third_party/streamline));placed, with the ten in itsfiles;info --profile <dir>then gaveup_to_date: trueandbuild.streamline: placed.play --profile <dir>. The fast check saidup to date. The game's log has, in order:vk: Streamline started for DLSS Frame Generationvk: Streamline: DLSS Frame Generation ready (up to 2x)vk: Streamline Reflex: onvk: NVIDIA DLSS: NGX startedOn quitting, it has
vk: Streamline shut down for the exit (result 0), and the game exited with code 0 (BeanBot'sL3).
verify --repair --profile <dir>, withsl.common.dlldeleted from the game folder. It saidrepaired: sl.common.dll, and the record stayedplacedwith the ten files.build --profile <dir>with no--streamline. It took the profile's choice: an exit code of 0 in under asecond, nothing compiled, downloaded or taken out, and the record still
placed.build --profile <dir> ... --streamline off.the profile's game files, upscalers or Streamline choice changed.LICENSE-NVIDIA-DLSS-FG.txt, ... sl.reflex.dll removed).streamlineis gone from the record, and the key is gone fromprofile.json; the receipt stays.infothen gaveup_to_date: trueand nobuild.streamline.playafter that (the layer compiled in, no runtime beside the game). The log hasvk: NVIDIA DLSS: NGX startedandvk: DLSS Frame Gen (NGX): available, up to 1 made frames between two of the game's, and novk: Streamlineline. The game exited with code 0.Earlier heads. The runtime step's other cases ran on
b11fe4536(then #2749), whose download and placing code thishead keeps; they were not run again here:
sl.interposer.dllput there by hand:kept, and nothing downloaded;streamline_skippedandskipped, and the game ran with DLSS FG through NGX;placed, and Streamline started in the game.The tests' own mutants, at
93884ed8b. Each mutant was put back after its run. With the choice left out ofProfile::key_on(itsk.text("streamline", ...)line deleted),the_profile_s_streamline_changes_the_key_only_when_wanted_and_one_left_out_is_tried_againfails on Windows and onLinux. Without
info's installation upscalers (thenp.upscalers = ups;, deleted),info_by_a_launcher_s_id_takes_its_installation_s_upscalers_as_its_play_doesfails. Since the rebase that line is#2791's (
clone_fromof the version's upscalers), not this change's; the test still passes at this head.The build's time and size against
main(BeanBot's L1), on this PC through the job queue: as Measurements says.Linux,
93884ed8b(its tree checked equal to the commit's) in the CI's checks image(
scripts/linux/checks.Dockerfile, built locally, in WSL):cargo clippy --locked --workspace --all-targets -- -D warningspasses;cargo test --locked -p build-compile -p build-driver -p longshot-builderpasses whole (188 tests inbuild-driver's library);cargo fmtthere reports the samehost_sources_tests.rsline.After the rebases, at this head (
318b0dee2) onmain@6f5f99fce:play.rs:rebuild_reasontakes both #2765's profile and this change'sStreamline flag, and
Profile::keydrops the language as #2794 does while keeping Streamline's pin when wanted. Anew test,
a_play_weighs_streamline_left_out_and_the_profile_s_shaders_together, passes at this head; therebase's comment says what it
holds and how it fails without the resolution.
info.rsandbuild.md:infokeeps #2791's upscalers (an installed version'sversion.jsonfirst) and takes the profile's Streamline choice and the launcher id's cache, as play does.git range-diffshows the first two commits unchanged and the third changed only there and inprofiles.md(which says the same of a profile folder).
an_installed_version_s_dlss_and_the_profile_s_streamline_choice_decide_streamline_together, builds andrepairs a profile by folder and by id with a
version.jsonof DLSS and a profile of none, then the other way round:the version's upscalers are taken, the profile's choice kept, and Streamline is wanted only with the version's DLSS.
With
profile_of'sp.upscalers = modules;deleted, it fails ([]against[Dlss]); put back, it passes.review found it).
the_update_s_text_has_one_space_between_its_wordsfails at686fcede8for that and passes withthe fix.
info --profile <dir> --output jsonlistsstreamlinein the builder's capabilities;build --profile <dir> --streamline onwrites"streamline": true;play --profile <dir>runs the fast check and starts a build;--streamline offtakes the key out (the buildsthen stop on the dummy package, as expected). The check with a
version.jsonof FSR alone beside the builder(
info'supscalers["fsr4"], the profile's staying["dlss"]) ran at the previous head and not again here.cargo test --workspace --locked --no-fail-fast: 791 passed, 12 failed. The same 12 fail on an archive ofmain@6f5f99fcehere (774 passed; listed below).cargo clippy --workspace --all-targets --locked -- -D warningsfails, onmaintoo: without-D warningsthe workspace reports three warnings, the same three onmain, atbuild-compile/src/lib.rs:894and:901(#2782) andbuild-driver/src/folder.rs:737(#2794); none is in this change's code.cargo fmt --all --checkpasses.tests/run_all.py --changed origin/main: 809 passed, 42 failed, 53 skipped. All 42 fail on that archive too, run with--exact.test_sampler_admission.py(two concurrent sampler cases; nothing this change touches) is unstable here: its cases fail in a different mix on each run, with the same assertion.tests/test_sl_sdk.pypasses.The failures that also fail on
main@6f5f99fcehere, at this headtests/run_all.py:test_auto_handheld.py,test_bug_report.py,test_builder_channel.py,test_control_picture.py,test_coverage_run.py,test_crash_record.py,test_crt_options.py,test_dev_ab.py,test_dev_build.py,test_dev_migrate.py,test_dev_update.py,test_framegen_resources.py,test_game_menu_mouse_buttons.py,test_input_background.py,test_input_movie.py,test_job_queue.py,test_keyboard_menu_option.py,test_keyboard_option.py,test_linux_pressure.py,test_loaded_modules_drop.py,test_log_batch.py,test_log_levels.py,test_menu_keys.py,test_oot_menu_mouse.py,test_option_ids.py,test_parity_gates.py,test_perf_send.py,test_present_source_crop.py,test_program_cache_cleanup.py,test_program_cache_one_variant.py,test_run_all_mingw.py,test_sampler_admission.py,test_screensaver.py,test_switch_table.py,test_text_keyboard_policy.py,test_upscaler_round_trip.py,test_vcore_video_acquire.py,test_video_catchup.py,test_video_hold_early.py,test_video_input_limit.py,test_windows_display_startup.py,test_windows_on_linux.py.cargo test --workspace:an_unchanged_rebuild_compiles_nothing_and_a_change_compiles_what_it_touches,doctor::tests::no_gpu_reads_as_the_game_s_header_does,link::tests::the_linker_s_list_is_parted_from_its_output,matches_llvm_mc,nup::tests::a_package_reads_back,packages::tests::a_header_package_too_old_is_no_package,play::tests::a_first_run_writes_the_profile_from_the_copy_given_or_chosen,tests::a_build_for_a_profile_writes_profile_json_and_its_settings,tests::mod_calls_the_hook_with_a_context_and_its_status,tests::recomplauncher_s_build_step_is_a_command_line_it_takes,toolchain::tests::a_windows_link_of_the_same_inputs_makes_the_same_bytes,toolchain::tests::the_builder_s_llvm_comes_before_emsdk_and_the_path.Still to test:
@Beanstalk, not sent: a maintainer's call, BeanBot's L2):main(novk: Streamlineline);vk: Streamline: ... DLSS Frame Generation does not go through it in this runand the game's own frame generation.
vk: Streamline started for DLSS Frame Generation(
@Beanstalk, not sent).main(@Beanstalk, not sent)."streamline": true, expecting no Streamline download and thegame as on
main(by hand or@Beanstalk, not sent).Measurements
No switch is added or changed:
LONGSHOT_CACHEandLONGSHOT_NO_PREPARE, which the new tests set, are the builder's existing variables, and they ship at the defaults they have onmain.Verdict: no build is slower beyond the spread;
longshot_vk.dllis 112,128 bytes (0.6 %) larger, and nothing is downloaded.The build's time and size, this change at
93884ed8bagainstmain@5468280d9, its base (BeanBot's L1). Windows 11, i9-13900K (31 compile workers), 64 GB, NVMe, NVIDIA 621.24, 2026-11-29.longshot-buildercompiled from its tree. Each pass wasdev build --upscaler dlss --no-prepare-shaders, run through the job queue intimingmode (nothing else building or playing), withLONGSHOT_NGX_SDKset and noLONGSHOT_SL_SDK.gpu/vk/vk_dlssg.h.dev compile --only renderer). Every pass's log says the Vulkan back end is built "with NVIDIA Streamline's DLSS Frame Generation" at93884ed8b, and without it onmain.5468280d993884ed8bdone.secondsvk_dlssg.hvk_dlssg.cpp's compile (cold build)vk_dlssg_layer.cpp's compile (cold build)longshot_vk.dllvk_dlssg.hrecompiles one more unit here,vk_dlssg_layer.cpp, which includes that header when it is built with Streamline.longshot_vk.dllis the only file whose size changes, the same in every pass. The record lists the same 48 files on both sides, and there is nosl.*orLICENSE-NVIDIA-*file.main@6f5f99fce, after the rebases. The numbers hold for what they compare, this change against its base. Of the commitsmaintook since5468280d9, four touch a file of the layer's compile (build-compile,packages.rs,vk_dlssg*,tools.lock,third_party/) or of the downloads (runtimes.rs,build.rs,fetch.py,sl_sdk.py), and none changes either: #2782 the exe's icon resources inbuild-compile/src/lib.rs, #2799 the formatting of abuild-compiletest, #2765 the profilebuild.rshands to the shader preparation (which these builds skip:--no-prepare-shaders), #2794 the languagebuild.rsputs in the settings at the build's end.packages.rs,vk_dlssg*,tools.lock,third_party/,runtimes.rs,fetch.pyandsl_sdk.pyare as at5468280d9. The two commits that make the compile are unchanged ingit range-diff, and this head's later commits change only a comment invk_dlssg.cppand a docstring insl_sdk.pythere. The difference was not measured again on the newmain, whose own changes may have moved both sides' times.Risks
vk_dlssg.cppandvk_dlssg_layer.cppfor real, not as stubs: acompile error there would stop such a build. CI's
vulkan-dlssjob compiles the same files from the tree.sl.interposer.dllfound besidelongshot.exewhen it has a valid NVIDIAsignature (the layer checks it before loading), where only a developer's
LONGSHOT_SL_SDKbuild did: one a player putthere by hand, or
scripts/fetch.py streamline --game, now runs. Without one, nothing of Streamline runs.update again at most every 10 minutes until it is had; behind a firewall that drops packets a try costs up to about 4
minutes (curl's 60 s connect time-out, 3 retries). A cache that can't be written keeps no mark, and each play tries.
A play that updates for another reason tries too.
--streamline: nothing changes for its players.be shared (as with DLSS's).
RX_VK_DLSSG=0inlongshot_env.txt, orbuild --profile <it> --streamline off. A revert stops newdownloads, but the files already put in a game folder stay there, and the game still uses them until they are
deleted.
Checklist
Ready for review
main; the title is a Conventional Commit. Onmain@6f5f99fce.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure. The build's time and size at93884ed8bagainst its base,main@5468280d9, with the same cache states (BeanBot's L1): no change in time beyond thespread,
longshot_vk.dll112,128 bytes larger, nothing downloaded (Measurements).On
main@6f5f99fcethey hold; Measurements says why.third_party/untouched; nothing GPL-incompatible.No existing part of
third_party/changes; one part is added,third_party/streamline, an unmodified upstream copy(MIT) with its
PROVENANCE.mdandtree-sha256, as a maintainer asked.When it applies
tests/that reads changed source is updated, not weakened.it changes builds and passes its tests on Windows here at this head, and on Linux in the CI's checks image at
93884ed8b(Testing). CI's own run of the head is still to come.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
Tested in game: Windows 11, RTX 4090, NVIDIA 621.24, fullscreen 2560x1440 at 120 Hz, a pack of this head (
5460db724) on main's shared base, to the title menu with DLSS and DLSS FG 2x: vk: NVIDIA DLSS: NGX started, DLSS FG through NGX as on main, no vk: Streamline line, no sl.* file in the game folder, a clean quit.Possibly related, for context:
A correction to the "Tested in game" comment above: "DLSS FG through NGX as on main" was not compared with a run of
main. What the log shows isvk: NVIDIA DLSS: NGX startedandvk: DLSS Frame Gen (NGX): available, up to 1 made frames between two of the game's, with novk: Streamlineline, the same lines as this branch's first commit gave; Testing now says that.@review
If the headers are MIT, we should include them like we do for FSR/etc
Recommendation: Approve. The code is ready: only testing is left. The Windows build compiles the Streamline layer and the reported RTX 4090 run reaches the menu without its runtime, but the feature and its build and gameplay costs have not been compared with the base. The remaining hardware runs, the next step of the feature, and CI are still outstanding. Recommend approval; not approved on the forge.
Windows builds with DLSS fetch pinned MIT-licensed Streamline headers and compile the existing frame-generation layer. This prepares player builds for Streamline, at the cost of downloads, additional compilation and a larger renderer; the builder does not yet supply the runtime.
Testing before merging (3) (runs on the systems it can change; it doesn't hold the recommendation)
builder/crates/build-driver/src/runtimes.rs:680: The added download and compilation work has no comparable base build measurement. (more on the line) Do: Compare clean and incremental Windows DLSS build time and output size on main and this head, with matching cache states and repeated runs.builder/crates/build-driver/src/build.rs:156: The compiled layer's inactive gameplay cost and behavior across the affected Windows hardware have not been compared with main. (more on the line) Do: Compare main and this head with the runtime absent on affected Windows hardware, including the outstanding RTX 20 or 30 run and a non-NVIDIA Tier 1 GPU; record frame times and normal gameplay behavior. (@fixdoes its part first: Skip inactive layer work before entering its state and per-frame checks.)builder/crates/build-driver/src/build.rs:156: The player-build path has not been shown working with the Streamline runtime it is intended to enable. (more on the line) Do: Run a Windows player build made from the fetched headers with the matching runtime installed, and verify Streamline frame generation and clean shutdown.@fixcan do L2.Questions (1) (not confirmed from the code; they don't hold the recommendation)
Checks: Still running: 10 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven: the author reports a 112 KB larger renderer and a successful Windows RTX 4090 menu run without Streamline's runtime. The reported 45 s and 38 s builds were not compared side by side with main, and a player build with the runtime has not been demonstrated.
Other systems: Windows DLSS builds compile the real layer even on non-NVIDIA GPUs and when the runtime is absent; its inactive calls and build cost need comparison with main. Linux does not fetch these headers, but the requested NVIDIA Linux build and game run remain outstanding. Existing developer SDK overrides retain precedence.
Switches: LONGSHOT_SL_SDK retains its unset default; when set it still overrides the fetched headers. No switch is added or removed.
Reviewed:
069c61a4daagainst22d0d20098: Read the repository rules, PR template, commit messages and diff. Read the changed Rust and Python paths and relevant cache, compile and renderer paths; skimmed the changed documentation and recorded test results. Some long file output was truncated, so not every changed code file was read in full. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review).Checked and fine:
Testing: No commands that build, test or run project code were executed. The author reports Windows and Linux checks, an RTX 4090 game run without the Streamline runtime, and failures also reproduced on main; Forgejo CI is still running.
Overlaps and merge order: Unknown; network access is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@ -146,1 +153,4 @@if upscalers.contains(&Upscaler::Dlss) {if s.sl_sdk.is_none() {s.sl_sdk = fetched_sl.map(Path::to_path_buf);}L2 (should fix): The compiled layer's inactive gameplay cost and behavior across the affected Windows hardware have not been compared with main.
When: With no interposer DLL, the real layer still initializes state and its inactive checks replace stubs; the single RTX 4090 menu run has no base comparison, and Windows builds can also run on other GPUs.
Do: Compare main and this head with the runtime absent on affected Windows hardware, including the outstanding RTX 20 or 30 run and a non-NVIDIA Tier 1 GPU; record frame times and normal gameplay behavior.
L3 (should fix): The player-build path has not been shown working with the Streamline runtime it is intended to enable.
When: The reported run has no sl.interposer.dll, so it exercises the early return rather than frame generation through the newly compiled layer.
Do: Run a Windows player build made from the fetched headers with the matching runtime installed, and verify Streamline frame generation and clean shutdown.
@ -572,6 +677,9 @@ pub fn fetch(.collect();take_or_keep(out, placed, &mut got);}if takes_sl_headers(upscalers, windows, own_sl_sdk) {L1 (should fix): The added download and compilation work has no comparable base build measurement.
When: A Windows DLSS build now fetches 14 files on a cold cache and compiles the real layer; the reported build times use different cache states and have no main baseline.
Do: Compare clean and incremental Windows DLSS build time and output size on main and this head, with matching cache states and repeated runs.
069c61a4da93884ed8b1WIP: feat(builder): Windows DLSS builds compile DLSS FG through Streamline from its MIT headersto WIP: feat(builder): DLSS FG through Streamline from its MIT headers, and its runtime for a profile that takes itReworked as one pull request, on
main@5468280d9(#2762's protocol 2 and #2773 included):license.txtare now in the repository, inthird_party/streamline(48fd0904f), as FSR's and XeSS's are. They come with aPROVENANCE.mdand thetree-sha256thatscripts/check_third_party.pychecks. Every Windows build with DLSS compiles the layer from them(
9a8b14736), and nothing is downloaded for the compile. Nothing else of NVIDIA's enters the repository: no DLL, no zip,and no other license or header.
93884ed8b); it was #2749, which I amclosing. Streamline's runtime is still downloaded from NVIDIA's release on the player's PC, and only when:
profile.json's"streamline": true);licenses.streamlineat the pin).build --profile <id | dir> --streamline on|offwrites it.
play,build(the launcher's Rebuild),verify --repairandinforead it from the profile, so aRebuild or a repair keeps the runtime its play put there.
launcher-instance.jsoncarries no Streamline.licenses.streamlineat the pin once the player accepts;--streamline on|offtobuild --profile, wheninfo's capabilities liststreamline.through a Rebuild, a play, a repair and taking it back. L1 (the build against
mainwith the same cache states)comes in a later run. L2 (the other GPUs) is for the Test Farm, when a maintainer decides to send it.
mainhas moved to8efea5864since these runs; this head merges with it without conflict. It staysWIP until L1 is here, and is rebased and run again before it leaves WIP.
93884ed8b1eedb5d38b1Rebased onto
main@01d6878b3(from5468280d9): the head is noweedb5d38b, was93884ed8b.version.jsonselects its upscalers), inlongshot-builder/src/info.rsanddocs/dev/reference/build.md. Resolved keeping both sides: the upscalers are the installed version's, as #2791 has them; the Streamline choice and its receipt stay the profile's.infotakes the profile's choice and, for a launcher id, its installation's cache, as play does. The first two commits are unchanged ingit range-diff. A new test builds and repairs a profile with aversion.jsonof DLSS and a profile of none, then the other way round. Streamline is wanted only with the version's DLSS.93884ed8b:vk_dlssg.cppand a docstring insl_sdk.pynow say a profile takes Streamline, not an installation, andprofiles.mdsays which cache a profile folder reads;sl.handsl_*.h.93884ed8bagainst its base5468280d9, job queue, 3 interleaved pairs per kind): no build kind's time changes beyond its spread;longshot_vk.dllis 112,128 bytes larger; nothing is downloaded. The numbers still hold on01d6878b3: no commitmaintook touches the layer's compile or the downloads (Measurements).cargo test, clippy,run_all --changed origin/main,test_sl_sdk.py, and a quick run of the builder (infolistsstreamline;--streamline on|offwrites and takes out the key). Every failure also fails onmain@01d6878b3here. The game runs are from93884ed8b."streamline": true, as Still to test says.WIP: feat(builder): DLSS FG through Streamline from its MIT headers, and its runtime for a profile that takes itto feat(builder): DLSS FG through Streamline from its MIT headers, and its runtime for a profile that takes itllun referenced this pull request2026-11-29 12:20:00 +00:00
eedb5d38b1318b0dee29Rebased onto
main@6f5f99fce(from01d6878b3): the head is now318b0dee2, waseedb5d38b. The rebase was asked for one4801d6a5;maintook #2794, #2796, #2797 and #2799 while the tests ran, and #2794 conflicted again, so the branch went on to6f5f99fce.Conflicts, both in
builder/crates/build-driver/src/play.rs, in the third commit (feat(builder): NVIDIA Streamline's runtime for a profile that takes it):rebuild_reasonthe profile (profile: &Path), so the shaders' key is read with the played profile's settings (would_prepare(.., Some(profile), ..)); this branch gave itstreamline: bool(retries_streamline). Resolved with both:rebuild_reason(now, folder, profile, prepare, streamline, get), called fromcheckandensure_builtwithprofileandretries_streamline(p, &get). The order inside stays the branch's: a Streamline runtime left out of the last build is a reason before the shaders, so its update is a whole one (notshaders_only), which prepares the shaders too, with the profile #2765 passes inoptions_for. The three calls in this branch's Streamline test take&prof.Profile::key(the game readsgame_language=from the settings at its start); this branch added Streamline's pin to the key when wanted. Resolved with both: the key is the copy, the upscalers and, only when wanted, Streamline's pin; no language. The doc comment says the same.git range-diffagainst the old head: every commit identical except the third, which differs only in those two places, its doc comment, andprofiles.md'slanguagerow (#2794's text, merged by git, with this branch'sstreamlinerow after it).Test added (one new commit,
test(builder): a play weighs Streamline left out and the profile's shaders together):play::tests::a_play_weighs_streamline_left_out_and_the_profile_s_shaders_together. In a game folder prepared for the profile, it holds that:settings.iniwithhdr=2/hdr_tone_mapper=1makes itShaders;streamlineatskippedit isStreamlinewhen a retry is due,Shaderswhen not;ensure_builtbuilds once forStreamlinewithshaders_onlyfalse,streamlinetrue and the profile's absolute path.With
Nonein place of the profile inrebuild_reason'swould_preparecall (as the branch read the shaders before #2765), it fails (left: None, right: Some(Shaders)); with the resolution it passes.Tests, Windows 11, through the PC's job queue, at
318b0dee2against an archive ofmain@6f5f99fce(and before at thee4801d6a5rebase, the same results):cargo test --workspace --locked --no-fail-fast: 791 passed, 12 failed. The same 12 fail onmain@6f5f99fcehere (774 passed): the ten listed in the description andlink::tests::the_linker_s_list_is_parted_from_its_outputandpackages::tests::a_header_package_too_old_is_no_package, both inbuild-compileand both a..\..\..against a canonical path. The new test passes, with every Streamline test of the branch.cargo clippy --workspace --all-targets --locked -- -D warningsfails onmaintoo, atbuild-compile/src/lib.rs:894and:901(needless_borrows_for_generic_args, #2782). Without-D warningsthe whole workspace reports three warnings, the same three onmain: those two andbuild-driver/src/folder.rs:737(#2794). None is in this change's code.cargo fmt --all --checkpasses.tests/run_all.py --changed origin/main: 809 passed, 42 failed, 53 skipped. All 42 fail on themainarchive too, run with--exact, with the same failure lines. The one exception istest_sampler_admission.py, whose concurrent cases fail in a different mix on each run with the same assertion (creates == 1 && live.size() == 1). That test was already unstable here before this rebase.build --streamline onwrites"streamline": true,info --output jsonlistsstreamlinein the builder's capabilities,playruns the fast check and starts a build that stops on the dummy package, andbuild --streamline offtakes the key out.synthetic-game'send_to_endis Linux-only and did not run here.BeanBot's L1 (measured on
main@5468280d9): not measured again. Since5468280d9,mainchanged nothing in the layer's compile or in the downloads. Four commits touch files on that list:build-compile/src/lib.rs;build-compiletest;build.rshands to the shader preparation, which the measured builds skip (--no-prepare-shaders);build.rswrites into the settings at the build's end.packages.rs,vk_dlssg*,tools.lock,third_party/,runtimes.rs,fetch.pyandsl_sdk.pyare as they were at5468280d9. Measurements says the same.Description: Measurements' "after the rebase" paragraph and the Measured box name
6f5f99fcenow; nothing else in it was changed. The CI on the new head waits for a maintainer (fork).@review
Recommendation: Approve. The code is ready: only testing is left. The player build has started Streamline successfully on an RTX 4090, and the reported build-time comparison found no change beyond the run-to-run spread. The inactive layer’s gameplay cost and behavior across the affected Windows hardware still need comparison with main. Recommend approval; not approved on the forge.
Windows DLSS builds compile the Streamline layer from vendored MIT headers. For a profile whose player chose Streamline and accepted its licenses, the builder downloads and installs the pinned runtime; this adds runtime installation and retry logic and increases the renderer DLL by 112,128 bytes in the reported build.
Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)
builder/crates/build-driver/src/build.rs:156: The compiled layer's inactive gameplay cost and behavior across the affected Windows hardware have not been compared with main. When: With no interposer DLL, the real layer still initializes state and its inactive checks replace stubs; the single RTX 4090 menu run has no base comparison, and Windows builds can also run on other GPUs. Do: Compare main and this head with the runtime absent on affected Windows hardware, including the outstanding RTX 20 or 30 run and a non-NVIDIA Tier 1 GPU; record frame times and normal gameplay behavior. (@fixdoes its part first: Skip inactive layer work before entering its state and per-frame checks.)@fixcan do L2.Since the last review (on
069c61a4da)Resolved: L1 (The added download and compilation work has no comparable base build measurement.); L3 (The player-build path has not been shown working with the Streamline runtime it is intende…)
Still open: L2 (The compiled layer's inactive gameplay cost and behavior across the affected Windows hardw…)
Checks: Still running: 10 checks.
Also noticed (2; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Yes for the demonstrated feature: the recorded RTX 4090 run started Streamline, reported DLSS Frame Generation ready up to 2x, and exited cleanly. The author reports three interleaved build pairs with no timing change beyond the spread and a 112,128-byte DLL increase; inactive gameplay cost remains unmeasured.
Other systems: The runtime path is Windows-only and requires DLSS, the profile choice and its license receipt. RTX 20/30, RTX 50, non-NVIDIA Windows hardware and Linux NVIDIA gameplay remain untested in the recorded runs.
Switches: The build command adds --streamline on|off; the profile defaults to off, with a separate license receipt required. LONGSHOT_SL_SDK retains precedence; no renderer switch default changes.
Reviewed:
318b0dee29against6f5f99fce9: Read AGENTS.md, CONTRIBUTING.md, Streamline provenance, the relevant runtime, profile, build and SDK selection sections, and portions of the diff. The full changed code, documentation, generated headers and remaining repository review rules were not read in full.; nothing run (a code review).Checked and fine:
Testing: No commands from the project were run. The author reports a successful RTX 4090 game run and head-level checks; CI is still running.
Overlaps and merge order: LongshotLauncher#344 supplies the player choice and license receipt; the feature has no launcher-facing path until that integration lands.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
Jiro113 referenced this pull request from MagicBeanDev/LongshotLauncher2026-11-29 22:45:36 +00:00