DLSS MODEL: "AUTO" — pick the right nvngx preset per resolution mode #1164

Merged
Alxspb merged 1 commit from upstream-pr/1164 into main 2026-11-29 08:16:57 +00:00
Alxspb commented 2026-11-28 14:37:16 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Alxspb on 2026-11-28T14:37:16Z.


What

VICTORY_DLSS_PRESET (and the F1 DLSS MODEL row) gain auto. With auto the preset is chosen from the resolution mode each frame actually runs in, instead of one fixed model for all six:

mode preset model
performance 13 M
ultra performance 12 L
balanced / quality / DLAA 11 K

The shipped default stays default (the title asks, we obey) — auto is an opt-in that overrides that on purpose, the way NVIDIA App presets by mode.

Why

DlssOptions::new copies the one asked preset into all six mode-specific fields (crates/victory-gpu/src/streamline/abi.rs, the *_preset fields), while plan::pick_mode (crates/victory-gpu/src/streamline/plan.rs) picks the mode from the frame sizes. So a user who sets, say, K gets K in performance mode too, and a user who sets M pays M's cost in quality/DLAA. NVIDIA's own guidance for the DLSS 3.1+/3.5 models is per-mode: M for performance, L for ultra performance, K for quality/balanced (see the NVIDIA DLSS preset recommendations for integration); M/L trade in FP8 tensor throughput — free on Ada/Blackwell, an added cost on RTX 20/30, which is why this is opt-in and not a change to default.

It also keeps the in-process override out of the picture: a per-game NVIDIA App DLSS override can fight the in-process Streamline call (see #558 for what an outside override does to the proxy); auto gets the mode-appropriate model without leaving the process.

How

  • plan::AUTO is a sentinel (u32::MAX); preset("auto"|"recommended") maps to it.
  • plan::resolve(asked, mode) expands the sentinel at DlssOptions::new time, where the mode is known (crates/victory-gpu/src/streamline.rs); named models pass through untouched.
  • Logs/stats print auto plus what it resolved to (preset_name), so a capture still says which nvngx model ran.
  • The F1 row shows AUTO (BY MODE) (crates/victory-gpu/src/host/menu.rs); docs/dlss.md documents the env var.

Tests: plan::names_and_presets covers the sentinel per mode and pass-through for named models.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5541220396 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1164). Originally posted by [Alxspb](https://github.com/Alxspb) on 2026-11-28T14:37:16Z. --- ## What `VICTORY_DLSS_PRESET` (and the F1 **DLSS MODEL** row) gain `auto`. With `auto` the preset is chosen from the resolution mode each frame actually runs in, instead of one fixed model for all six: | mode | preset | model | |---|---|---| | performance | 13 | M | | ultra performance | 12 | L | | balanced / quality / DLAA | 11 | K | The shipped default stays `default` (the title asks, we obey) — `auto` is an opt-in that overrides that on purpose, the way NVIDIA App presets by mode. ## Why `DlssOptions::new` copies the one asked preset into all six mode-specific fields (`crates/victory-gpu/src/streamline/abi.rs`, the `*_preset` fields), while `plan::pick_mode` (`crates/victory-gpu/src/streamline/plan.rs`) picks the mode from the frame sizes. So a user who sets, say, `K` gets K in performance mode too, and a user who sets `M` pays M's cost in quality/DLAA. NVIDIA's own guidance for the DLSS 3.1+/3.5 models is per-mode: M for performance, L for ultra performance, K for quality/balanced (see the NVIDIA DLSS preset recommendations for integration); M/L trade in FP8 tensor throughput — free on Ada/Blackwell, an added cost on RTX 20/30, which is why this is opt-in and not a change to `default`. It also keeps the in-process override out of the picture: a per-game NVIDIA App DLSS override can fight the in-process Streamline call (see #558 for what an outside override does to the proxy); `auto` gets the mode-appropriate model without leaving the process. ## How - `plan::AUTO` is a sentinel (`u32::MAX`); `preset("auto"|"recommended")` maps to it. - `plan::resolve(asked, mode)` expands the sentinel at `DlssOptions::new` time, where the mode is known (`crates/victory-gpu/src/streamline.rs`); named models pass through untouched. - Logs/stats print `auto` plus what it resolved to (`preset_name`), so a capture still says which nvngx model ran. - The F1 row shows `AUTO (BY MODE)` (`crates/victory-gpu/src/host/menu.rs`); `docs/dlss.md` documents the env var. Tests: `plan::names_and_presets` covers the sentinel per mode and pass-through for named models.
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!1164
No description provided.