Diagnostics: opt-in native Graphics settings tab and menu traces #2861
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2863"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by AwkGrep256 on 2026-11-25T22:37:22Z.
Draft · Native Graphics settings on Windows
@Marvisak, VIctory's settings now live inside the game's own Settings → Graphics menu. The Upscaler and Frame generation rows use the native arrows and counter, save to
victory.toml, and apply on restart. The stock Graphics rows, which this build ships without text, now all have readable English. Related discussion #2862.📊 What works
cf6ab2b7/f40ffdf8fdfc1ed38b10d9bd70ae1381🧩 How the settings module works
A VIctory setting is one Rust enum plus one
Choiceimpl. Everything else (the menu row, its range, readingvictory.toml, saving it) comes from that impl.1. The value (
crates/victory-core/src/config.rs): a plain enum, spelled invictory.tomlby serde.2. The setting (
crates/victory-core/src/settings/graphics.rs): where it is saved, what the menu says, and its options.3. The row (
apps/victory/src/menu_trace/settings_list.rs): one line makes it a menu row.What the trait gives for free:
OPTIONS.len()from_configOpt::toml+CONFIGfile::saverewrites just[graphics] frame_generation = '…', keeping the user's comments and orderNAME/HELP/Opt::labelChecks that stop mistakes at test time:
Text::ownrefuses any key that doesn't start withvictory_, at compile time, so our IDs stay apart from the title's.🏷️ Text for the game's own rows
The same module holds the English for the stock rows (
crates/victory-core/src/settings/stock_labels.rs), one table per language:The app side only applies these tables: it adds the text to the menu's text table and, as the title builds a nameless row or an untitled group, writes VIctory's IDs into it. If an update moves things, a row stays blank rather than getting the wrong name.
🌍 Localization proposal
The English for every VIctory control and every stock Graphics row is written and in one file. Would you like VIctory to ship translations for all languages the title supports? Each language is one more table next to
EN, selected byVICTORY_LOCALE.🧪 Try the draft
Use a Windows diagnostics build, Series X mode, title build 1.0.2.1, and a copied profile and config. Enable
VICTORY_MENU_GRAPHICS=1andVICTORY_MENU_UPSCALING_PROBE=1. Open Settings → Graphics: the stock rows should all have names, and the Upscaling section holds VIctory's two rows. Change only the VIctory rows. Applying a stock Graphics change previously caused an OOM, so please leave stock options and reset alone.The menu and save test can run without the SDK. For host FSR after relaunch, point
VICTORY_FIDELITYFX_DIRat the signed DX12 DLL folder and leave the manual upscaler and scale overrides unset.@kotekompotek, @Jrjy3, and @z395977743-svg, thanks for the previous review and testing. A quick check on another setup would help. Please include the commit, GPU, and whether the row names, counter and saved choice behaved as expected.
Developer guide · Related Series X FSR work #1793 · The null placed-resource fix is a separate commit,
69e80cd1.Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T22:52:43Z.
Review: COMMENTED
Scoped review: +1500 but almost all additive — new opt-in menu_trace/settings_trace modules plus plumbing, flag-gated behind a diagnostics switch, so it can't affect a default run. The xgamesave extension (listing container contents) is the only behavioral surface outside the flag; reads like an additive query API. Worth a maintainer pass on the trace-format stability, but the risk profile is low.
Imported from Marvisak/VIctory. Originally posted by AwkGrep256 on 2026-11-25T22:55:36Z.
Thanks for the review. One correction: the xgamesave change is also behind the switch. It only builds with the
diagnosticsfeature and only runs withVICTORY_MENU_TRACE=1. It records what a settings save writes, compared with the blob it replaces, and adds no new API. Default runs are unchanged.Imported from Marvisak/VIctory. Originally posted by AwkGrep256 on 2026-11-26T18:32:45Z.
Belobug/VIctory-Belobug-AMD#274 tracks a test port of the native Graphics settings on Belobug’s current AMD fork. It links back here and has the menu, FSR and frame-generation test matrix. The upstream menu’s working save flow is the starting point. Fork gameplay results will go on Belobug/VIctory-Belobug-AMD#118 with the exact tested build.
Imported from Marvisak/VIctory. Originally posted by AwkGrep256 on 2026-11-27T01:03:49Z.
Update: now at
e476e1a6(still a draft)Choicerow, saved as[graphics] frame_generationWording lives in
crates/victory-core/src/settings/stock_labels.rs; how it fits is indocs/native-settings.md.cargo xtask policy, clippy and tests pass. Findings and details: #2862.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.