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

Merged
kibagami-nc merged 1 commit from upstream-pr/1089 into main 2026-11-29 08:16:57 +00:00
kibagami-nc commented 2026-11-28 13:07:16 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T13:07:16Z.


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.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5540425695 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1089). Originally posted by [kibagami-nc](https://github.com/kibagami-nc) on 2026-11-28T13:07:16Z. --- ## 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.
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!1089
No description provided.