feat(streamline): embed RTX 30 DLSS-G/MFG bypass (opendlssgenabler) #228

Open
github-bot wants to merge 1 commit from github-bot/gh-228 into main AGit
Owner

@⁠FoxxoOwO on GitHub · 2026-11-27 19:54 UTC · original
FoxxoOwO:feat/rtx30-dlssg-bypass → main · +22026 −12 · 138 files · 1 commits · open

Summary

  • Built-in RTX 30 (Ampere) DLSS-G / MFG bypass (crates/victory-dlssg-bypass): statically embeds rodjunger/opendlssgenabler (GPL-3.0) along with its vendored open-source dependencies (minhook, lz4, libhat, and Streamline MIT public headers), compiled via cc in build.rs with no external DLL required at runtime.
    • Controlled via VICTORY_DLSSG_BYPASS: enabled automatically on RTX 30 GPUs when no external unlocker is configured (0 disables, 1 forces).
    • Performs targeted NVAPI architecture spoofing (sl.common.dll, _nvngx.dll, nvngx_dlssg.dll), sl.dlss_g.dll flip-metering patching, multi-frame gate unlocking, and runtime PTX/cubin substitution to sm_86.
  • Optional external unlocker loader (VICTORY_DLSSG_UNLOCKER): loads user-supplied external DLLs (MFGUnlocker.dll, RTX40MFGCore.dll, or opendlssgenabler.dll) before sl.interposer.dll if configured or detected in %LOCALAPPDATA%\victory / next to victory.exe (0 disables).
  • Launchers & docs: preserved VICTORY_DLSSG_BYPASS and VICTORY_DLSSG_UNLOCKER in apps/victory/src/play.rs and scripts/play-foxhound.ps1, added %LOCALAPPDATA%\victory\nvidia-sdk Streamline lookup and unlocker status to scripts/play-gta6-framegen.ps1, allowed C/C++ source extensions in xtask/src/policy.rs, and documented both switches in docs/dlss.md and README.md.

Verification

Tested locally on Windows 11 26H2 with NVIDIA GeForce RTX 3070 Ti (driver 621.40, Streamline 2.14.16 / NGX 310.9.16):

  • cargo run -p xtask --locked -- policy --staged (138 files ok)
  • cargo test -p xtask --locked (6 passed)
  • cargo test -p victory-gpu --lib streamline --locked (15 passed)
  • cargo test -p victory --locked (20 unit + 2 integration passed)
  • cargo clippy -p victory-dlssg-bypass -p xtask --all-targets --locked -- -D warnings (and --all-features): 0 warnings
  • victory.exe upscaler-check --device --present with VICTORY_DLSSG_UNLOCKER=0 (built-in bypass only):
    • Built-in DLSS-G Ampere bypass active (opendlssgenabler)
    • arch_spoof_applied (0x170 -> 0x190), multi_frame_unlocked (gates: 2, patched: 2)
    • sl_is_feature_supported: dlss_g = eOk (0)
    • kernels_summary: native: 39, retargeted: 26, refused: 0, driver_rejected: 0, device_sm: 86
    • status 0x0, exit code 0
**@⁠FoxxoOwO** on GitHub · 2026-11-27 19:54 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/228) `FoxxoOwO:feat/rtx30-dlssg-bypass` → `main` · +22026 −12 · 138 files · 1 commits · open ## Summary - **Built-in RTX 30 (Ampere) DLSS-G / MFG bypass (`crates/victory-dlssg-bypass`)**: statically embeds [`rodjunger/opendlssgenabler`](https://github.com/rodjunger/opendlssgenabler) (`GPL-3.0`) along with its vendored open-source dependencies (`minhook`, `lz4`, `libhat`, and Streamline MIT public headers), compiled via `cc` in `build.rs` with no external DLL required at runtime. - Controlled via `VICTORY_DLSSG_BYPASS`: enabled automatically on RTX 30 GPUs when no external unlocker is configured (`0` disables, `1` forces). - Performs targeted NVAPI architecture spoofing (`sl.common.dll`, `_nvngx.dll`, `nvngx_dlssg.dll`), `sl.dlss_g.dll` flip-metering patching, multi-frame gate unlocking, and runtime PTX/cubin substitution to `sm_86`. - **Optional external unlocker loader (`VICTORY_DLSSG_UNLOCKER`)**: loads user-supplied external DLLs (`MFGUnlocker.dll`, `RTX40MFGCore.dll`, or `opendlssgenabler.dll`) before `sl.interposer.dll` if configured or detected in `%LOCALAPPDATA%\victory` / next to `victory.exe` (`0` disables). - **Launchers & docs**: preserved `VICTORY_DLSSG_BYPASS` and `VICTORY_DLSSG_UNLOCKER` in `apps/victory/src/play.rs` and `scripts/play-foxhound.ps1`, added `%LOCALAPPDATA%\victory\nvidia-sdk` Streamline lookup and unlocker status to `scripts/play-gta6-framegen.ps1`, allowed C/C++ source extensions in `xtask/src/policy.rs`, and documented both switches in `docs/dlss.md` and `README.md`. ## Verification Tested locally on Windows 11 26H2 with **NVIDIA GeForce RTX 3070 Ti** (driver `621.40`, Streamline `2.14.16` / NGX `310.9.16`): - `cargo run -p xtask --locked -- policy --staged` (`138 files ok`) - `cargo test -p xtask --locked` (`6 passed`) - `cargo test -p victory-gpu --lib streamline --locked` (`15 passed`) - `cargo test -p victory --locked` (`20 unit + 2 integration passed`) - `cargo clippy -p victory-dlssg-bypass -p xtask --all-targets --locked -- -D warnings` (and `--all-features`): `0 warnings` - `victory.exe upscaler-check --device --present` with `VICTORY_DLSSG_UNLOCKER=0` (built-in bypass only): - `Built-in DLSS-G Ampere bypass active (opendlssgenabler)` - `arch_spoof_applied` (`0x170` -> `0x190`), `multi_frame_unlocked` (`gates: 2, patched: 2`) - `sl_is_feature_supported`: `dlss_g = eOk (0)` - `kernels_summary`: `native: 39, retargeted: 26, refused: 0, driver_rejected: 0, device_sm: 86` - `status 0x0`, exit code `0`
Embed rodjunger/opendlssgenabler (GPL-3.0) as a statically linked workspace crate (crates/victory-dlssg-bypass) so RTX 30 (Ampere) cards can run DLSS Frame Generation and Multi-Frame Generation without external DLLs. Also add optional external unlocker DLL loading (VICTORY_DLSSG_UNLOCKER), VICTORY_DLSSG_BYPASS toggle, launcher auto-detection, xtask C/C++ policy support, and documentation.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:58:42 +00:00
This pull request has changes conflicting with the target branch.
  • README.md
  • apps/victory/src/play.rs
  • crates/victory-gpu/src/streamline.rs
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.
git fetch -u origin '+refs/pull/228/head:github-bot/gh-228'
git switch 'github-bot/gh-228'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-228'
git switch 'github-bot/gh-228'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-228'
git switch 'github-bot/gh-228'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-228'
git switch 'main'
git merge --squash 'github-bot/gh-228'
git switch 'main'
git merge --ff-only 'github-bot/gh-228'
git switch 'main'
git merge 'github-bot/gh-228'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.