gpu: DLSS Frame Generation through NVIDIA Streamline (LARP_DLSSG_STREAMLINE=1, default off) for MFG Unlocker #160
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!160
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-160"
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?
@kadiratesdev on GitHub · 2026-12-05 20:03 UTC · original
kadiratesdev:feat/mfg-streamline→main· +1739 −10 · 6 files · 1 commits · closed without mergingRefs #33, #107.
Why
MFG Unlocker's Backspace menu under larp says "Waiting for an active DLSS-G wrapper" and its settings do nothing (#33). As the maintainer's comment there notes, the unlocker hooks a game's Streamline integration, not NGX. From its source (dashdogy/MFG-Unlocker, MIT) and from its log on another title, it detours
sl.interposer.dll(slInit,slSetD3DDevice,slUpgradeInterface,slShutdown,slSetTagForFrame,slGetFeatureFunction) and, insidesl.dlss_g.dll,slDLSSGSetOptions,slDLSSGGetStateand the NGX create/evaluate calls. Its README says: "For DLSS MFG the game must already have a Streamline DLSS Frame Generation integration." larp callsnvngx_dlssg.dlldirectly, so the unlocker never finds a wrapper.What
A new default-off switch,
LARP_DLSSG_STREAMLINE=1. With it, DLSS Frame Generation goes through Streamline the way a game integration does. Without it, nothing changes: no DLL is loaded, the queue and swap chain are created as before, andcrate::dlssfgkeeps its NGX path.crates/larp-gpu/src/slfg.rs(new):sl.interposer.dllfromLARP_STREAMLINE_DIR(defaultstreamline\besidelarp.exe);slInitfor DLSS-G + Reflex + PCL, with manual hooking, the DXGI factory proxy, frame-based tagging and no OTA. The engine is "custom" and the project id is a GUID; no NVIDIA app id;slSetD3DDevice. The direct queue is made through Streamline's device proxy, and the native queue behind it is used as before;slSetConstants,slSetTagForFrame(depth and motion vectors from the copiesdlssfg::dispatchedalready takes, plus the hudless copy when there is one), andslDLSSGSetOptionswhenever the F10 count changes. Reflex low latency is on only while FG is on.slfg/abi.rs: the hand-written Streamline 2.14 ABI, with offset tests. It comes from the VIctory fork'sstreamline/abi.rs, also GPL-3.0-or-later, where this layout runs DLSS-G with MFG Unlocker on an RTX 3080 Ti.dlssfg.rs: when the switch is on and Streamline is ready,presenthands the frame's inputs and camera to Streamline (streamline_present) and returns false, so the host presents the title's picture plainly on the proxy swap chain andsl.dlss_ginserts the generated frames.available_dlssreports DLSS available in this mode, because NGX's own "not available" on RTX 20/30 is exactly what the unlocker overrides.host.rs:slfg::init()beforeD3D12CreateDevice, the queue/swap-chain hand-over,present_ends()afterPresent.docs/environment-variables.md:LARP_DLSSG_STREAMLINE,LARP_STREAMLINE_DIR,LARP_STREAMLINE_LOG.No NVIDIA binary is added. The user supplies the
bin\x64DLLs of NVIDIA's public Streamline SDK 2.14 (sl.interposer,sl.common,sl.dlss_g,sl.reflex,sl.pcl,nvngx_dlssg.dll).Usage
Then set F10 to frame generator DLSS and 2x/3x/4x. The unlocker's Backspace menu should then show an active DLSS-G wrapper.
Testing (honest status)
x86_64-pc-windows-msvc(release, plus--features diagnosticscheck); no new clippy warnings in the new code.cargo test --release --target x86_64-pc-windows-msvc(under Wine): everything passes, including the newslfg::abilayout tests andslfgtests. The one failure islarp-game prompts::font::...within_its_advance, which also fails onmainunder Wine; it needs a Windows host font.route=external ready=1 gameFG=1 appliedFG=1), but that is not larp. I'll post the result here._nvngx.dll, once by Streamline for DLSS-G.UIColorAndAlpha, only the hudless copy when the interface is drawn into the picture.This touches the present path only when the switch is on. Happy to rename the switch or move the defaults.
@copilot-pull-request-reviewer[bot] on GitHub · 2026-12-05 20:04 UTC · original · reviewed
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
@gamingwithhomie on GitHub · 2026-12-05 20:43 UTC · original
Reviewed alongside #133: we merged #133 (Streamline FG backend, opt-in
LARP_FG_BACKEND=streamline) which also addsslfg.rs/slfg/abi.rs, so this PR now conflicts in approach. Please rebase on current main and reduce this to the MFG-Unlocker-specific delta on top of the merged Streamline backend (LARP_DLSSG_STREAMLINEwiring) - if the merged backend already satisfies the unlocker, a test report on #33/#107 may be all thats needed. Thank you!@Heliumrich on GitHub · 2026-12-05 21:00 UTC · original · edited 2026-12-05 21:12 UTC
This PR as-is doesn't work for me on RTX4080
It feels exactly as 30fps, maybe even worse in terms of framepacing.
Anything above 2x has flickering terrain too, and motion vectors issue (broken stuff in black bars during cinematics)
Plus MFG Unlocker menu is impossible to use, the cursor can't interact with it (workaround : open windows start menu and you can click once ...)
Dude, try your PRs first at least....
github-bot referenced this pull request2026-12-05 21:50:10 +00:00
@kadiratesdev on GitHub · 2026-12-05 23:42 UTC · original
Test report: #133 as merged (
LARP_FG_BACKEND=streamline, commite79b240) with MFG Unlocker 1.7.2, on an RTX 3080 Ti (driver 621.47, Windows 11 build 26300). Streamline 2.14.16,nvngx_dlssg310.9.16, Series S profile.LARP_MFG_UNLOCKER=1, and this PR'sLARP_DLSSG_STREAMLINEwas not set.Streamline loaded (manual hooking, no downloads),DLSS Frame Generation loaded,Reflex: through Streamline,our swap chain is Streamline's proxy, then at the first tagged frameDLSS Frame Generation switched on=true ... result="ok".route=external ready=1 routeFailure=0 control=fixed 2x gameFG=1 appliedFG=1, with no "waiting for an active DLSS-G wrapper".Frame rate over 100.00ms, reseting frame timer87 times andOut of order frametwice. The 2-hour session on this PR logged 1004 and 28.mouse-route=low-level-hook reason=no-window-messages, so it falls back to its own mouse hook under larp. The cursor capture ingameinput/mouse.rsI mentioned above is still the likely cause of the click problem @Heliumrich saw. I have not made or tested a fix for it.Not tested: anything above 2x (on this card the unlocker caps at 2x because the title is not on NVIDIA's list), the terrain flicker and the motion vectors in the cinematic bars, AMD, and Wine.
So the merged backend already covers the unlocker on my side. Nothing unlocker-specific from this PR is needed, so I'm closing it. Sorry for the noise, and thanks for #133. I'll post a short note on #33 and #107 pointing here.
Pull request closed