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

Closed
FoxxoOwO wants to merge 1 commit from upstream-pr/228 into main
FoxxoOwO commented 2026-11-27 19:54:49 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by FoxxoOwO on 2026-11-27T19:54:49Z.


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
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5532340463 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/228). Originally posted by [FoxxoOwO](https://github.com/FoxxoOwO) on 2026-11-27T19:54:49Z. --- ## 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`
trustno1-coder commented 2026-11-28 19:23:58 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T19:23:58Z.


Thanks for this. I'm closing it without merging: it vendors a C++ library, compiles it at build time, and patches NVIDIA's frame-generation check in memory. That's not something this repository can ship or maintain.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7244514595 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/228#issuecomment-7244514595). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-28T19:23:58Z. --- Thanks for this. I'm closing it without merging: it vendors a C++ library, compiles it at build time, and patches NVIDIA's frame-generation check in memory. That's not something this repository can ship or maintain.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!228
No description provided.