Frame generation: a card's model number is read past a mark in its name (#1028) #1042

Merged
kibagami-nc merged 2 commits from upstream-pr/1042 into main 2026-11-29 08:16:57 +00:00
kibagami-nc commented 2026-11-28 11:55:18 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T11:55:18Z.


What happens

#1028's reporter has an RTX 5080, and the frame generation notice says:

GPU: NVIDIA GEFORCE RTX 5080
DLSS FRAME GEN: NOT ON THIS CARD (RTX 40 AND UP)
F1 > FRAME GEN TYPE > FSR 3 GIVES 2X ON THIS CARD

"NOT ON THIS CARD" comes from dlss_framegen_card returning false for the adapter's name. For a card it accepts, the line reads UNAVAILABLE (CHECK HAGS AND LOG) instead. Read as it is printed, "NVIDIA GeForce RTX 5080" returns true.

But the notice prints the name filtered to ASCII letters, digits and a few signs (" .,:()/-+"), because that is what the picture's font draws. dlss_framegen_card reads the four digits right after "RTX", past whitespace only. So the name Windows gave must have a sign there that the notice dropped: a trademark sign, a zero-width space, or similar. The number stopped at it.

The launcher's older_rtx, which decides whether MFG Unlocker is offered to an RTX 20 or 30, reads the number the same way.

What this does not change: whether DLSS Frame Generation runs. Streamline decides that (dlss_fg_supported), and on #1028's PC it said no, probably for hardware-accelerated GPU scheduling. The name only picks the message (NOT ON THIS CARD against UNAVAILABLE (CHECK HAGS AND LOG)), the "unlocked by a mod" line, and whether the launcher offers AMD's FSR 3 files. So the reporter was told their card cannot do it, when the thing to check was HAGS.

The change

  • streamline::rtx_model(name) reads the model number on the name's ASCII letters and digits alone, anything else counting as a space. It also reads past (TM) and (R).
  • dlss_framegen_card and play.rs's older_rtx use it.
  • The card families each one takes are unchanged: RTX 40 and 50, and the Ada, Blackwell and RTX PRO workstation cards, for frame generation; RTX 20 and 30 for MFG Unlocker. Quadro and the Ampere A-series are still out.
  • older_rtx also leaves out every card dlss_framegen_card takes. Ada workstation cards numbered 2000 and 3000 (NVIDIA RTX 2000 Ada Generation, RTX 3000 Ada Generation Laptop GPU) read as models 2000 and 3000. They were offered MFG Unlocker, though they have DLSS Frame Generation of their own. Found in review by Exopus-0x65f7ad0; it predates this change.

Tests

  • New streamline::card_tests::a_card_name_reads_as_its_model_past_marks:
    • RTX™ 5080, RTX + zero-width space + 5080, RTX + no-break space + 5090 Laptop GPU, RTX(TM) 4070 SUPER, RTX® 3080 Ti and RTX5060 are each read as their model;
    • RTX A4000, GTX 1080, RX 7900 XTX and an empty name are not;
    • dlss_framegen_card takes the marked 5080 and the zero-width-space one, and still refuses a marked 3080, a Quadro RTX 4000 and an RTX A6000.
    • Before this change, the marked 5080 and the zero-width-space one were refused.
  • play::tests::cards_offered_mfg_unlocker: adds a marked 3080 (offered) and a marked 5080 (not), and the 2000 and 3000 Ada cards (not offered).
  • cargo test -p victory-gpu --lib --locked: 454 passed. cargo test -p victory --locked: 26 + 2 passed.
  • Clippy (-p victory-gpu -p victory, -D warnings, default and --all-features): nothing in the changed lines. It stops on main's own manual_is_multiple_of and some_filter findings (fixed in #665). With those allowed, both builds are clean.

The exact sign in #1028's card name is not known yet. I asked for the Streamline loaded ... adapter= line of the reporter's log, which prints the name as Windows gives it.

No game files, dumps or extracted data are included.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5539860381 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1042). Originally posted by [kibagami-nc](https://github.com/kibagami-nc) on 2026-11-28T11:55:18Z. --- ## What happens #1028's reporter has an RTX 5080, and the frame generation notice says: ``` GPU: NVIDIA GEFORCE RTX 5080 DLSS FRAME GEN: NOT ON THIS CARD (RTX 40 AND UP) F1 > FRAME GEN TYPE > FSR 3 GIVES 2X ON THIS CARD ``` "NOT ON THIS CARD" comes from `dlss_framegen_card` returning false for the adapter's name. For a card it accepts, the line reads `UNAVAILABLE (CHECK HAGS AND LOG)` instead. Read as it is printed, "NVIDIA GeForce RTX 5080" returns true. But the notice prints the name filtered to ASCII letters, digits and a few signs (`" .,:()/-+"`), because that is what the picture's font draws. `dlss_framegen_card` reads the four digits right after "RTX", past whitespace only. So the name Windows gave must have a sign there that the notice dropped: a trademark sign, a zero-width space, or similar. The number stopped at it. The launcher's `older_rtx`, which decides whether MFG Unlocker is offered to an RTX 20 or 30, reads the number the same way. **What this does not change:** whether DLSS Frame Generation runs. Streamline decides that (`dlss_fg_supported`), and on #1028's PC it said no, probably for hardware-accelerated GPU scheduling. The name only picks the message (`NOT ON THIS CARD` against `UNAVAILABLE (CHECK HAGS AND LOG)`), the "unlocked by a mod" line, and whether the launcher offers AMD's FSR 3 files. So the reporter was told their card cannot do it, when the thing to check was HAGS. ## The change - `streamline::rtx_model(name)` reads the model number on the name's ASCII letters and digits alone, anything else counting as a space. It also reads past `(TM)` and `(R)`. - `dlss_framegen_card` and `play.rs`'s `older_rtx` use it. - The card families each one takes are unchanged: RTX 40 and 50, and the Ada, Blackwell and RTX PRO workstation cards, for frame generation; RTX 20 and 30 for MFG Unlocker. Quadro and the Ampere A-series are still out. - `older_rtx` also leaves out every card `dlss_framegen_card` takes. Ada workstation cards numbered 2000 and 3000 (`NVIDIA RTX 2000 Ada Generation`, `RTX 3000 Ada Generation Laptop GPU`) read as models 2000 and 3000. They were offered MFG Unlocker, though they have DLSS Frame Generation of their own. Found in review by Exopus-0x65f7ad0; it predates this change. ## Tests - **New** `streamline::card_tests::a_card_name_reads_as_its_model_past_marks`: - `RTX™ 5080`, `RTX` + zero-width space + `5080`, `RTX` + no-break space + `5090 Laptop GPU`, `RTX(TM) 4070 SUPER`, `RTX® 3080 Ti` and `RTX5060` are each read as their model; - `RTX A4000`, `GTX 1080`, `RX 7900 XTX` and an empty name are not; - `dlss_framegen_card` takes the marked 5080 and the zero-width-space one, and still refuses a marked 3080, a Quadro RTX 4000 and an RTX A6000. - Before this change, the marked 5080 and the zero-width-space one were refused. - **`play::tests::cards_offered_mfg_unlocker`**: adds a marked 3080 (offered) and a marked 5080 (not), and the 2000 and 3000 Ada cards (not offered). - **`cargo test -p victory-gpu --lib --locked`**: 454 passed. **`cargo test -p victory --locked`**: 26 + 2 passed. - **Clippy** (`-p victory-gpu -p victory`, `-D warnings`, default and `--all-features`): nothing in the changed lines. It stops on `main`'s own `manual_is_multiple_of` and `some_filter` findings (fixed in #665). With those allowed, both builds are clean. The exact sign in #1028's card name is not known yet. I asked for the `Streamline loaded ... adapter=` line of the reporter's log, which prints the name as Windows gives it. No game files, dumps or extracted data are included.
Exopus-0x65f7ad0 commented 2026-11-28 12:56:49 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Exopus-0x65f7ad0 on 2026-11-28T12:56:49Z.


Reviewed the diff. The mark handling looks right to me: letters_and_digits turns ™, ®, NBSP and the zero-width space into spaces, and the TM / R strip handles the (TM) / (R) spellings. The import also resolves, since victory_hle re-exports victory_gpu::streamline (crates/victory-hle/src/lib.rs:29).

One gap, which the rewrite of older_rtx makes easy to close. It predates this PR, because the old digit check had the same result.

Ada workstation cards have model numbers that start with 20 or 30:

  • rtx_model("NVIDIA RTX 2000 Ada Generation") returns Some(2000), so older_rtx is true.
  • rtx_model("NVIDIA RTX 3000 Ada Generation Laptop GPU") returns Some(3000), so older_rtx is true.

For both names, dlss_framegen_card is also true, through the " ADA" check, and the test in this PR asserts that for the 2000 Ada. So in play.rs:879 these cards get the MFG Unlocker offer, even though they run DLSS Frame Generation natively.

A one-line fix:

fn older_rtx(name: &str) -> bool {
    victory_hle::streamline::rtx_model(name).is_some_and(|model| matches!(model / 100, 20 | 30))
        && !victory_hle::streamline::dlss_framegen_card(name)
}

It could go with an assert such as assert!(!older_rtx("NVIDIA RTX 2000 Ada Generation")). RTX PRO 2000 Blackwell is not affected, because rtx_model returns None when "PRO" follows "RTX".

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7239578425 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1042#issuecomment-7239578425). Originally posted by [Exopus-0x65f7ad0](https://github.com/Exopus-0x65f7ad0) on 2026-11-28T12:56:49Z. --- Reviewed the diff. The mark handling looks right to me: `letters_and_digits` turns `™`, `®`, NBSP and the zero-width space into spaces, and the `TM ` / `R ` strip handles the `(TM)` / `(R)` spellings. The import also resolves, since `victory_hle` re-exports `victory_gpu::streamline` (`crates/victory-hle/src/lib.rs:29`). One gap, which the rewrite of `older_rtx` makes easy to close. It predates this PR, because the old digit check had the same result. Ada workstation cards have model numbers that start with 20 or 30: - `rtx_model("NVIDIA RTX 2000 Ada Generation")` returns `Some(2000)`, so `older_rtx` is **true**. - `rtx_model("NVIDIA RTX 3000 Ada Generation Laptop GPU")` returns `Some(3000)`, so `older_rtx` is **true**. For both names, `dlss_framegen_card` is also true, through the `" ADA"` check, and the test in this PR asserts that for the 2000 Ada. So in `play.rs:879` these cards get the MFG Unlocker offer, even though they run DLSS Frame Generation natively. A one-line fix: ```rust fn older_rtx(name: &str) -> bool { victory_hle::streamline::rtx_model(name).is_some_and(|model| matches!(model / 100, 20 | 30)) && !victory_hle::streamline::dlss_framegen_card(name) } ``` It could go with an assert such as `assert!(!older_rtx("NVIDIA RTX 2000 Ada Generation"))`. `RTX PRO 2000 Blackwell` is not affected, because `rtx_model` returns `None` when "PRO" follows "RTX".
kibagami-nc commented 2026-11-28 13:12:13 +00:00 (Migrated from github.com)

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


Good catch, thanks. Both names read as 2000 and 3000, and dlss_framegen_card takes both, so they were offered a mod they don't need. Your fix is in 4796eb9: older_rtx now leaves out every card dlss_framegen_card takes, and the test asserts that the 2000 Ada and the 3000 Ada Laptop are not offered. cargo test -p victory: 26 + 2 passed; clippy clean apart from main's three findings (#665).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7239767280 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1042#issuecomment-7239767280). Originally posted by [kibagami-nc](https://github.com/kibagami-nc) on 2026-11-28T13:12:13Z. --- Good catch, thanks. Both names read as 2000 and 3000, and `dlss_framegen_card` takes both, so they were offered a mod they don't need. Your fix is in 4796eb9: `older_rtx` now leaves out every card `dlss_framegen_card` takes, and the test asserts that the 2000 Ada and the 3000 Ada Laptop are not offered. `cargo test -p victory`: 26 + 2 passed; clippy clean apart from main's three findings (#665).
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!1042
No description provided.