feat(builder): add experimental DLSS MFG companion for Linux RTX 30 #2532

Open
vectorw.pl wants to merge 1 commit from vectorw.pl/Longshot:linux/dlssg-mfg into main
First-time contributor

Summary

RTX 30 users on Linux could not use DLSS multi-frame generation. The opt-in Rust-builder flag stages the Hookshot companion, records the choice for updates, and autoloads it for marked games. Start with builder/crates/build-driver/src/mfg.rs, host/dlssg_unlocker.cpp, and host/hos_main.c.

Testing

Tested: Arch Linux, RTX 3090, NVIDIA 620.70.06. The Rust builder built an MFG-enabled game. Updates with MFG off and on removed and restored the marker, companion, and dlss_mfg record. Windowed gameplay created 1, 2, and 5 DLSS-G frames per set at 2x, 3x, and 6x. DLSS-G made 600, 599, and 599 of the sampled last 600 presents, with 0 refused; the game exited 0. Rust builder and driver tests passed. This PC has no mise binary, so the task command from mise.toml ran with pinned dependencies, eight-core affinity, and one check at a time: 835 passed, 1 failed, 8 skipped. The failing tests/test_title_card_strips.py imports removed nx2/oot_patches.py; the same check fails identically on current main.

Still to test:

  • Windows host: build with llvm-mingw and check UTF-8 paths (by hand).

Measurements

No performance comparison is claimed: this opt-in feature adds DLSS-G to a GPU where main cannot use it. The experimental flag defaults off.

Risks

The provider patch is Linux-only and is disabled by omitting the flag or updating with MFG off. Unknown provider builds or instruction shapes leave ordinary DLSS available. If self-relaunch fails, the game restores LD_PRELOAD and clears companion variables. Saves and settings need no migration.

Checklist

Ready for review

  • One topic on current main; Conventional Commit title.
  • Tested on this PC in the game, as described above.
  • Full test task completed; its only failure is named above and confirmed on main.
  • Measurements explains why there is no performance comparison.
  • No game files, build output, or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • New switches default off and have rows in gpu/vk/switches.def.
  • Checks under tests/ that read changed source were updated.
  • Host code builds on Windows with llvm-mingw and on Linux, with UTF-8 paths.
  • Docs updated.
  • AI assistance recorded in commit trailers.

Ready to merge

  • Everything in Still to test is recorded in Tested.
  • Tier 1 hardware it can affect is tested.
  • Review comments answered.
  • CI passes on the head; remeasure on current main if needed.
## Summary RTX 30 users on Linux could not use DLSS multi-frame generation. The opt-in Rust-builder flag stages the Hookshot companion, records the choice for updates, and autoloads it for marked games. Start with `builder/crates/build-driver/src/mfg.rs`, `host/dlssg_unlocker.cpp`, and `host/hos_main.c`. ## Testing **Tested:** Arch Linux, RTX 3090, NVIDIA 620.70.06. The Rust builder built an MFG-enabled game. Updates with MFG off and on removed and restored the marker, companion, and `dlss_mfg` record. Windowed gameplay created 1, 2, and 5 DLSS-G frames per set at 2x, 3x, and 6x. DLSS-G made 600, 599, and 599 of the sampled last 600 presents, with 0 refused; the game exited 0. Rust builder and driver tests passed. This PC has no `mise` binary, so the task command from `mise.toml` ran with pinned dependencies, eight-core affinity, and one check at a time: 835 passed, 1 failed, 8 skipped. The failing `tests/test_title_card_strips.py` imports removed `nx2/oot_patches.py`; the same check fails identically on current `main`. **Still to test:** - Windows host: build with llvm-mingw and check UTF-8 paths (by hand). ## Measurements No performance comparison is claimed: this opt-in feature adds DLSS-G to a GPU where `main` cannot use it. The experimental flag defaults off. ## Risks The provider patch is Linux-only and is disabled by omitting the flag or updating with MFG off. Unknown provider builds or instruction shapes leave ordinary DLSS available. If self-relaunch fails, the game restores `LD_PRELOAD` and clears companion variables. Saves and settings need no migration. ## Checklist ### Ready for review - [x] One topic on current `main`; Conventional Commit title. - [x] Tested on this PC in the game, as described above. - [x] Full test task completed; its only failure is named above and confirmed on `main`. - [x] Measurements explains why there is no performance comparison. - [x] No game files, build output, or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] New switches default off and have rows in `gpu/vk/switches.def`. - [x] Checks under `tests/` that read changed source were updated. - [ ] Host code builds on Windows with llvm-mingw and on Linux, with UTF-8 paths. - [x] Docs updated. - [x] AI assistance recorded in commit trailers. ### Ready to merge - [ ] Everything in Still to test is recorded in Tested. - [ ] Tier 1 hardware it can affect is tested. - [ ] Review comments answered. - [ ] CI passes on the head; remeasure on current `main` if needed.
feat(builder): add experimental DLSS MFG companion for Linux RTX 30
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
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website builds (pull_request) Blocked by required conditions
Website / Website preview, build (pull_request) Blocked by required conditions
Website / Website preview, upload (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Failing after 5s
CI / Conventional Commit title (pull_request) Has been cancelled
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 / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
55a92f853d
Stage the companion in opted-in Rust builds and relaunch marked games once with it preloaded. Restore the process environment if relaunch fails. Record RTX 3090 gameplay on the Rust builder.

Assisted-by: Qwen 3.8 27B (OpenCode)

Assisted-by: OpenAI Codex
Member

Possibly related, for context:

  • PR #2502 feat(linux): experimental RTX 30 DLSS Multi Frame Generation companion — Open PR implements the same Linux RTX 30 MFG companion; likely overlapping work
  • issue #184 Idea: dlssg for RTX30 Series GPU (Discord Idea) — Open RTX 30 DLSS FG/MFG feature request this addresses
  • issue #1350 Idea: Streamline DLSS. — Open request for RTX 30 MFG unlock support
Possibly related, for context: - PR #2502 feat(linux): experimental RTX 30 DLSS Multi Frame Generation companion — Open PR implements the same Linux RTX 30 MFG companion; likely overlapping work - issue #184 Idea: dlssg for RTX30 Series GPU (Discord Idea) — Open RTX 30 DLSS FG/MFG feature request this addresses - issue #1350 Idea: Streamline DLSS. — Open request for RTX 30 MFG unlock support
Author
First-time contributor

I also have the matching LongshotLauncher MFG changes prepared. I’ll wait for LongshotLauncher MagicBeanDev/LongshotLauncher#259, which adds Rust builder support, to merge before rebasing and opening the launcher PR.

I also have the matching LongshotLauncher MFG changes prepared. I’ll wait for LongshotLauncher https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/259, which adds Rust builder support, to merge before rebasing and opening the launcher PR.
Owner

Hi this is great work! How does this work, since 30 doesn't have MFG?

Hi this is great work! How does this work, since 30 doesn't have MFG?
Author
First-time contributor

@HumanBean wrote in #2532 (comment):

Hi this is great work! How does this work, since 30 doesn't have MFG?

Turns out that MFG is achievable on RTX 30 without any issues, aside from small performance hit (I do not know how performance hit differs in comparison to 40 or 50 series).

I based this on https://github.com/dashdogy/MFG-Unlocker

What this companion does is the small change in memory for this card to be identified as architecture that supports MFG, and that is all. Everything else works as Nvidia intended for newer cards.

Should load only if build with the flag, only on Linux and for 30 series. Definitely this can be also done for Windows, but without machine to test this on I didn't want to try to implement this.

@HumanBean wrote in https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2532#issuecomment-81287: > Hi this is great work! How does this work, since 30 doesn't have MFG? Turns out that MFG is achievable on RTX 30 without any issues, aside from small performance hit (I do not know how performance hit differs in comparison to 40 or 50 series). I based this on https://github.com/dashdogy/MFG-Unlocker What this companion does is the small change in memory for this card to be identified as architecture that supports MFG, and that is all. Everything else works as Nvidia intended for newer cards. Should load only if build with the flag, only on Linux and for 30 series. Definitely this can be also done for Windows, but without machine to test this on I didn't want to try to implement this.
vectorw.pl force-pushed linux/dlssg-mfg from 55a92f853d
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
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website builds (pull_request) Blocked by required conditions
Website / Website preview, build (pull_request) Blocked by required conditions
Website / Website preview, upload (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Failing after 5s
CI / Conventional Commit title (pull_request) Has been cancelled
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 / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to fbdfd86158
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
PR description / Description follows the template (pull_request_target) Failing after 21s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
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 / Lint (pre-commit, ShellCheck) (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 / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
2026-11-25 18:46:32 +00:00
Compare
vectorw.pl force-pushed linux/dlssg-mfg from fbdfd86158
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
PR description / Description follows the template (pull_request_target) Failing after 21s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
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 / Lint (pre-commit, ShellCheck) (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 / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to 1118b6994a
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
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / What the change needs (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Blocked by required conditions
CI / longshot-builder end to end (synthetic game) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Failing after 18s
2026-11-25 19:16:03 +00:00
Compare
Author
First-time contributor

Rebased and resolved conflicts

Rebased and resolved conflicts
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
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / What the change needs (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Blocked by required conditions
CI / longshot-builder end to end (synthetic game) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Failing after 18s
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
Some workflows are waiting to be reviewed.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'linux/dlssg-mfg:vectorw.pl-linux/dlssg-mfg'
git switch 'vectorw.pl-linux/dlssg-mfg'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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!2532
No description provided.