feat(builder): add experimental DLSS MFG companion for Linux RTX 30 #2532
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
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!2532
Loading…
Reference in a new issue
No description provided.
Delete branch "vectorw.pl/Longshot:linux/dlssg-mfg"
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
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, andhost/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_mfgrecord. 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 nomisebinary, so the task command frommise.tomlran with pinned dependencies, eight-core affinity, and one check at a time: 835 passed, 1 failed, 8 skipped. The failingtests/test_title_card_strips.pyimports removednx2/oot_patches.py; the same check fails identically on currentmain.Still to test:
Measurements
No performance comparison is claimed: this opt-in feature adds DLSS-G to a GPU where
maincannot 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_PRELOADand clears companion variables. Saves and settings need no migration.Checklist
Ready for review
main; Conventional Commit title.main.third_party/untouched; nothing GPL-incompatible.When it applies
gpu/vk/switches.def.tests/that read changed source were updated.Ready to merge
mainif needed.Possibly related, for context:
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.
Hi this is great work! How does this work, since 30 doesn't have MFG?
@HumanBean wrote in #2532 (comment):
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.
55a92f853dfbdfd86158fbdfd861581118b6994aRebased and resolved conflicts
/review
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.