Proposal: native Graphics controls alongside F1 settings #75

Closed
github-bot wants to merge 3 commits from github-bot/gh-75 into main AGit
Owner

@⁠AwkGrep256 on GitHub · 2026-11-27 16:43 UTC · original
AwkGrep256:proposal/native-graphics-settings → main · +99 −0 · 1 files · 3 commits · closed without merging

@⁠trustno1-coder, would you be open to adding a native Settings → Graphics entry point for one or two everyday options? I’d be happy to contribute the integration if it fits your plans.

Your F1 menu My upstream prototype
🎮 Where it opens VIctory’s keyboard-driven overlay The game’s own Graphics tab, with native controller and keyboard navigation
⚙️ What it does today DLSS, frame generation, output size, frame cap, lighting and diagnostics. Some options apply live. Restores the hidden stock Graphics tab and adds VIctory-owned Upscaler and Frame Generation rows. Custom choices and persistence worked in-game.
🧩 How they could fit Keep the existing F1 UI and settings backend. Start with one opt-in native Frame Generation row that points to the same setting and apply function as F1.

The native prototype is close to a retest of its cleaned-up label lookup. The NVIDIA-specific wiring would be the next patch. This draft contains the proposal and a short test plan.

Native Graphics PR · Upstream design issue · F1 implementation

Rust example

The native settings module uses a fieldless enum and one Choice implementation per row. The row's labels, option order, default, and config value all come from that type. This example adds the proposed dlss_frame_generation field to Config and uses the same pattern as the existing GraphicsUpscaler and FrameGeneration enums.

use crate::settings::{Choice, ConfigKey, Opt, Text};

#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[repr(u32)]
pub enum DlssFrameGeneration {
    #[default]
    Off = 0,
    X2 = 2,
    X3 = 3,
    X4 = 4,
    X5 = 5,
    X6 = 6,
}

impl Choice for DlssFrameGeneration {
    const CONFIG: ConfigKey = ConfigKey {
        section: "graphics",
        key: "dlss_frame_generation",
    };
    const NAME: Text = Text::own("victory_dlss_fg", "DLSS Frame Generation");
    const HELP: Text = Text::own("victory_dlss_fg_help", "Choose a frame multiplier.");
    const OPTIONS: &'static [Opt<Self>] = &[
        Opt { value: Self::Off, label: Text::own("victory_dlss_fg_off", "Off"), toml: "off" },
        Opt { value: Self::X2, label: Text::own("victory_dlss_fg_x2", "2×"), toml: "x2" },
        Opt { value: Self::X3, label: Text::own("victory_dlss_fg_x3", "3×"), toml: "x3" },
        Opt { value: Self::X4, label: Text::own("victory_dlss_fg_x4", "4×"), toml: "x4" },
        Opt { value: Self::X5, label: Text::own("victory_dlss_fg_x5", "5×"), toml: "x5" },
        Opt { value: Self::X6, label: Text::own("victory_dlss_fg_x6", "6×"), toml: "x6" },
    ];

    fn from_config(config: &crate::Config) -> Self {
        config.dlss_frame_generation
    }
}

Register ListSetting::of::<DlssFrameGeneration>() in the native Graphics section. For this fork, load the typed field from F1's saved value and route the row's commit through a shared F1 setter in victory-gpu. The setter needs to save the numeric value to victory-settings.txt and update the value F1 displays. Both menus can then read the same choice.

use std::io;
use victory_core::{config::DlssFrameGeneration, settings::Choice};

fn commit_dlss_frame_generation(
    row_index: usize,
    save_f1_choice: impl FnOnce(&str, u32) -> io::Result<()>,
) -> io::Result<()> {
    let choice = DlssFrameGeneration::from_index(row_index)
        .ok_or_else(|| io::Error::new(io::ErrorKind::InvalidInput, "invalid multiplier"))?;
    let multiplier = choice as u32;
    save_f1_choice("VICTORY_MENU_FRAMEGEN", multiplier)?;

    if crate::streamline::framegen_live() {
        crate::streamline::set_framegen(multiplier);
    }
    Ok(())
}

The launcher already uses VICTORY_STREAMLINE_DIR to find the NVIDIA SDK DLLs, including sl.interposer.dll, sl.dlss_g.dll, and nvngx_dlssg.dll. This proposal uses that setup and the existing Streamline multiplier limits. With a live proxy the choice takes effect on the next present. Otherwise the launcher reads it on the next start. NVIDIA fork DLL setup

**@⁠AwkGrep256** on GitHub · 2026-11-27 16:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/75) `AwkGrep256:proposal/native-graphics-settings` → `main` · +99 −0 · 1 files · 3 commits · closed without merging @⁠trustno1-coder, would you be open to adding a native **Settings → Graphics** entry point for one or two everyday options? I’d be happy to contribute the integration if it fits your plans. | | Your F1 menu | My upstream prototype | |---|---|---| | 🎮 **Where it opens** | VIctory’s keyboard-driven overlay | The game’s own Graphics tab, with native controller and keyboard navigation | | ⚙️ **What it does today** | DLSS, frame generation, output size, frame cap, lighting and diagnostics. Some options apply live. | Restores the hidden stock Graphics tab and adds VIctory-owned Upscaler and Frame Generation rows. Custom choices and persistence worked in-game. | | 🧩 **How they could fit** | Keep the existing F1 UI and settings backend. | Start with one opt-in native Frame Generation row that points to the same setting and apply function as F1. | The native prototype is close to a retest of its cleaned-up label lookup. The NVIDIA-specific wiring would be the next patch. This draft contains the proposal and a short test plan. [Native Graphics PR](https://github.com/Marvisak/VIctory/pull/2863) · [Upstream design issue](https://github.com/Marvisak/VIctory/issues/2862) · [F1 implementation](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/main/crates/victory-gpu/src/host/menu.rs) ## Rust example The native settings module uses a fieldless enum and one `Choice` implementation per row. The row's labels, option order, default, and config value all come from that type. This example adds the proposed `dlss_frame_generation` field to `Config` and uses the same pattern as the existing `GraphicsUpscaler` and `FrameGeneration` enums. ```rust use crate::settings::{Choice, ConfigKey, Opt, Text}; #[derive(Debug, Default, Clone, Copy, PartialEq, Eq, serde::Deserialize)] #[serde(rename_all = "snake_case")] #[repr(u32)] pub enum DlssFrameGeneration { #[default] Off = 0, X2 = 2, X3 = 3, X4 = 4, X5 = 5, X6 = 6, } impl Choice for DlssFrameGeneration { const CONFIG: ConfigKey = ConfigKey { section: "graphics", key: "dlss_frame_generation", }; const NAME: Text = Text::own("victory_dlss_fg", "DLSS Frame Generation"); const HELP: Text = Text::own("victory_dlss_fg_help", "Choose a frame multiplier."); const OPTIONS: &'static [Opt<Self>] = &[ Opt { value: Self::Off, label: Text::own("victory_dlss_fg_off", "Off"), toml: "off" }, Opt { value: Self::X2, label: Text::own("victory_dlss_fg_x2", "2×"), toml: "x2" }, Opt { value: Self::X3, label: Text::own("victory_dlss_fg_x3", "3×"), toml: "x3" }, Opt { value: Self::X4, label: Text::own("victory_dlss_fg_x4", "4×"), toml: "x4" }, Opt { value: Self::X5, label: Text::own("victory_dlss_fg_x5", "5×"), toml: "x5" }, Opt { value: Self::X6, label: Text::own("victory_dlss_fg_x6", "6×"), toml: "x6" }, ]; fn from_config(config: &crate::Config) -> Self { config.dlss_frame_generation } } ``` Register `ListSetting::of::<DlssFrameGeneration>()` in the native Graphics section. For this fork, load the typed field from F1's saved value and route the row's commit through a shared F1 setter in `victory-gpu`. The setter needs to save the numeric value to `victory-settings.txt` and update the value F1 displays. Both menus can then read the same choice. ```rust use std::io; use victory_core::{config::DlssFrameGeneration, settings::Choice}; fn commit_dlss_frame_generation( row_index: usize, save_f1_choice: impl FnOnce(&str, u32) -> io::Result<()>, ) -> io::Result<()> { let choice = DlssFrameGeneration::from_index(row_index) .ok_or_else(|| io::Error::new(io::ErrorKind::InvalidInput, "invalid multiplier"))?; let multiplier = choice as u32; save_f1_choice("VICTORY_MENU_FRAMEGEN", multiplier)?; if crate::streamline::framegen_live() { crate::streamline::set_framegen(multiplier); } Ok(()) } ``` The launcher already uses `VICTORY_STREAMLINE_DIR` to find the NVIDIA SDK DLLs, including `sl.interposer.dll`, `sl.dlss_g.dll`, and `nvngx_dlssg.dll`. This proposal uses that setup and the existing Streamline multiplier limits. With a live proxy the choice takes effect on the next present. Otherwise the launcher reads it on the next start. [NVIDIA fork DLL setup](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/main/docs/dlss.md#setup)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 16:50:06 +00:00
github-bot closed this pull request 2026-11-28 02:54:15 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-28 02:48 UTC · original

Merged into main (8fc2254) and shipped in v2026.11.27.10. The commit keeps you as its author, so it counts toward the contributors list. GitHub shows this as closed rather than merged only because the commits were applied on top of the newest main (new commit IDs). Thank you!

**@⁠trustno1-coder** on GitHub · 2026-11-28 02:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/75#issuecomment-7232611282) Merged into main (8fc2254) and shipped in [v2026.11.27.10](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.10). The commit keeps you as its author, so it counts toward the contributors list. GitHub shows this as closed rather than merged only because the commits were applied on top of the newest main (new commit IDs). Thank you!

Pull request closed

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!75
No description provided.