MFG Unlocker: loaded only at a start with DLSS frame generation (#955) #1089

Manually merged
github merged 1 commit from github-bot/gh-1089 into main 2026-11-29 08:21:59 +00:00 AGit
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 13:07 UTC · original
kibagami-nc:fix/mfg-unlocker-only-with-framegen → main · +52 −8 · 3 files · 1 commits · merged 2026-11-29 08:16 UTC

What was wrong

With MFG UNLOCKER on, every start loaded MFGUnlocker.dll, also with frame generation off or AMD's FSR 3 picked. It only unlocks DLSS frame generation, so there it has nothing to do, but it still hooks the game's DirectX.

That is what #955 ran into: an RTX 3060, frame generation off, black and glitching textures. They went away once MFG Unlocker was turned off ("ok it seems to be fixed"). JuakinBM also had trouble with it on an RTX 3070 (#992).

The change (apps/victory/src/play.rs)

  • mfg_loaded(settings): the mod is loaded only when it is on and DLSS frame generation is on or made ready (VICTORY_FRAMEGEN=1). Ready covers switching frame generation on in F1 while playing, so the mod is still there for that.
  • Otherwise nothing is loaded, and the start says so: on, but not loaded, because this start has no DLSS frame generation.
  • Downloading is unchanged: the DLL is still fetched as soon as the option is on.
  • The texts now say when the mod runs: the RTX 20/30 offer, the F1 line (ON: DOWNLOADED FROM ITS GITHUB, RUN WITH DLSS FRAME GEN., under the menu's 60 columns) and the README.
This start Loaded before Loaded now
frame generation on (DLSS or auto) yes yes
ready but off (--framegen-ready) yes yes
frame generation off yes no
FSR 3 picked yes no
no NVIDIA files (no DLSS) yes no

#702's FORCE 3X ON RTX 40 sets the same option and keeps "off stays off", so it fits this rule.

Tests

  • mfg_unlocker_is_loaded_only_with_dlss_frame_generation goes through settings() for each row of the table, plus the option off or turned off in the menu. With main's rule (loaded whenever it is on) it fails.
  • cargo test -p victory: 27 + 2 passed. Menu tests of victory-gpu: 7 passed, including the 60-column check.
  • cargo clippy --workspace --all-targets -D warnings, default and --all-features: clean, apart from main's three findings that #665 fixes (let_and_return, manual_is_multiple_of, some_filter).
  • Not run in the game.
**@⁠kibagami-nc** on GitHub · 2026-11-28 13:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1089) `kibagami-nc:fix/mfg-unlocker-only-with-framegen` → `main` · +52 −8 · 3 files · 1 commits · merged 2026-11-29 08:16 UTC ## What was wrong With MFG UNLOCKER on, every start loaded `MFGUnlocker.dll`, also with frame generation off or AMD's FSR 3 picked. It only unlocks DLSS frame generation, so there it has nothing to do, but it still hooks the game's DirectX. That is what #955 ran into: an RTX 3060, frame generation off, black and glitching textures. They went away once MFG Unlocker was turned off ("ok it seems to be fixed"). JuakinBM also had trouble with it on an RTX 3070 (#992). ## The change (`apps/victory/src/play.rs`) - `mfg_loaded(settings)`: the mod is loaded only when it is on **and** DLSS frame generation is on or made ready (`VICTORY_FRAMEGEN=1`). Ready covers switching frame generation on in F1 while playing, so the mod is still there for that. - Otherwise nothing is loaded, and the start says so: on, but not loaded, because this start has no DLSS frame generation. - Downloading is unchanged: the DLL is still fetched as soon as the option is on. - The texts now say when the mod runs: the RTX 20/30 offer, the F1 line (`ON: DOWNLOADED FROM ITS GITHUB, RUN WITH DLSS FRAME GEN.`, under the menu's 60 columns) and the README. | This start | Loaded before | Loaded now | |---|---|---| | frame generation on (DLSS or auto) | yes | yes | | ready but off (`--framegen-ready`) | yes | yes | | frame generation off | yes | **no** | | FSR 3 picked | yes | **no** | | no NVIDIA files (no DLSS) | yes | **no** | #702's FORCE 3X ON RTX 40 sets the same option and keeps "off stays off", so it fits this rule. ## Tests - `mfg_unlocker_is_loaded_only_with_dlss_frame_generation` goes through `settings()` for each row of the table, plus the option off or turned off in the menu. With main's rule (loaded whenever it is on) it fails. - `cargo test -p victory`: 27 + 2 passed. Menu tests of `victory-gpu`: 7 passed, including the 60-column check. - `cargo clippy --workspace --all-targets -D warnings`, default and `--all-features`: clean, apart from main's three findings that #665 fixes (`let_and_return`, `manual_is_multiple_of`, `some_filter`). - Not run in the game.
With MFG UNLOCKER on, every start loaded the mod, even with frame generation
off or AMD's FSR 3 picked, where it has nothing to unlock. It hooks the game's
DirectX all the same: on an RTX 3060 with frame generation off, black and
glitching textures went away once it was turned off (#955).

It is now loaded only where DLSS frame generation is on or made ready
(VICTORY_FRAMEGEN=1, which also covers switching it on in F1 while playing).
Otherwise the start says it is on but not loaded, and why. It is still fetched
once it is on, as turning it on said. The offer's text, the F1 line and the
README say when it runs.

Test: mfg_unlocker_is_loaded_only_with_dlss_frame_generation (off, on, FSR 3
picked, option off, ready but off, no NVIDIA files); it fails on main's rule.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:32:49 +00:00
github manually merged commit 78d9ede4d7 into main 2026-11-29 08:21:59 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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