PC display settings in the game's own Settings menu: Video rows, a Graphics tab, frame generation while playing #1981
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1981"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by abilliontokens on 2026-11-29T05:41:15Z.
Fixes #: none of its own. Related: #914 (how to change the resolution), #1063 (a fullscreen switch), #1382 (AwkGrep256's typed settings and stock Graphics research, folded into this PR) and Marvisak/VIctory#2862 (an out-of-memory crash on confirming a stock Graphics change).
What it changes
The retail build still has its PC display settings, but the console menu hides them and its dictionaries have no text for them. This shows them in the game's own Settings menu and makes each one do something on a PC. It's the settings part of the branch behind #937, rebuilt on
mainat41adb551, without #937 and without its ✕ Save button: no new crates, no binary asset, nothing written to the game's files.Credit. This is the combined PR proposed in the #1981 comments (Option B), which AwkGrep256 agreed to: #1981's menu mechanisms, with AwkGrep256's #1382 folded in and AwkGrep256 as co-author of the commits that carry his code and research. From #1382:
Choice/Optcore and therestart_choices!macro (victory_core::settings), which declare each setting once: its key, stored values, labels, default and the settings it depends on;victory_core::settings::stock_labels): VIctory's English for the stock Graphics rows, 69 by their label ids and 8 nameless rows by their place after a named row, the help of 5 rows that have none and the headings of 2 untitled groups, and the way those groups are recognised (by a row they hold);streamline::dlss_framegen_multiplier_limit);VICTORY_MENU_UPSCALER) invictory playandplay-foxhound.ps1.Both PRs patch the same Settings menu, so only one of each mechanism is kept. From #1981: the tab registration cave (with #1382's section adder as well there would be two Graphics tabs), the text-lookup hook (it also names the steppers' values; #1382's text-map injection and DirectStorage scan are not taken) and its own site writer (#1382's loader redirect, patch and memory helpers are not taken). Choices are saved when Settings is left, not on every step as in #1382. Where the rows behave differently from #1382's branch: Frame Generation Type switches live except to and from FSR 4, and the DLSS model applies from the next upscaling.
The settings
A choice is pending until Settings is left; the menu's NO puts it back. "Live" means it applies while playing. No row makes the game reset its graphics device by default: that reset hung in game (see the known issue below), so every change that needs it is saved when Settings is left and applies the next time the game starts.
VICTORY_LIVE_RESETS=1(experimental, off by default) turns the live resets back on, for investigating the hang.resolution=inpc-settings.txtwhen Settings is left (NO drops it) and the next start begins at it; the game'sresolutionFullscreenis never written, so the game never resets its device for it. WithVICTORY_LIVE_RESETS=1: live, through the game's device reset, where the output can change (Series X with the native output path, not in a DLAA session or withVICTORY_NATIVE_4K=1without a saved size). Values: the sizes the display the game's window is on offers (the primary display before the window is there), 1280x720 up to 3840x2160, plus 2560x1440 and 3840x2160 alwaysrefresh=inpc-settings.txt, taken by the layer within a quarter of a second of the menu being left. The game'srefreshRateis never written. Values: 60 Hz plus the higher rates of the display the game's window is onwindow=inpc-settings.txt); no buffers are made again, so frame generation runs on across a change. The game'sadapterIndexis never written. Values: Windowed, Borderless, Fullscreen (a borderless popup over the monitor, no exclusive mode)vsync=inpc-settings.txt). The game'svSyncis never written. Values: Off, Every Refresh (Present(1)), Every Second Refresh (Present(2)); through DLSS Frame Generation's swap chain, which takes a sync interval of 1 at most, every second refresh is every refreshResizeBufferswithin a quarter of a second of the menu being left (triple=inpc-settings.txt). The game'stripleBufferedis never written: with the Series X profile, three of the title's output targets are more than its UI pool holds. Frame generation's swap chains keep their own buffers. Values: Off, On--framegen), and it applies at the next present after Settings is left. A start withvictory play --no-framegen-ready(play-foxhound.ps1 -NoFrameGenReady), or without DLSS, takes it at the next start. Saved invictory-settings.txt. Values: Off, 2X to 6X, within what the picked type can run and the driver's multiplier limit, as in F1set_dlss_preset; Auto names one per DLSS mode). A run without DLSS takes it at the next start. Values: Default, Auto, K, J, M, LVICTORY_LIVE_RESETS=1: 2560x1440 and 3840x2160 through the Resolution path, and 1080p to 1440p below 3840x2160 output where the title's own temporal pass runs, both through the game's device reset. Offered only when the Console row is Series XVICTORY_LIVE_RESETS=1: live where DLSS upscales, below 3840x2160 output, through a same-size device reset (DLAA only up to 2560x1440's pixels, and not while FSR 3 frame generation runs). Values: Quality, Balanced, Performance, Ultra Performance, DLAA (native), Off; Series S Render Resolution 1280x720 (the game), 1113x626, 960x540, 640x360 (fastest), offered only on Series S and not with the Title upscaler, and kept paired with DLSS Qualitystock=inpc-settings.txtwith YES, dropped with NO. At every start the settings-store stub writes the kept values into each settings store the title makes, before its graphics device is created, so they apply and stay from start to start (in the stock game most of these rows, the enum-typed ones, are not saved at all). Without the native output path (Series S) the stub is not there, so the rows are read-only and say so. Render scaling (scalingMode) is not kept where its scene would have more pixels than 2560x1440 (see below). WithVICTORY_LIVE_RESETS=1: as before, the game applies them itself through its device reset below 3840x2160 output, and at 3840x2160 only withVICTORY_STOCK_GRAPHICS_4K=1How it fits together:
VICTORY_PC_SETTINGS=0turns the rows and their patches off. The rows' patches are written after the image is mapped (apps/victory/src/pc_settings.rs); the native output path's go into the prepared image in the cache, as #541's do.0x14375D280): it asksvictory_gpu::pc_textfirst, and every other key goes on to the game's dictionaries.pc_textanswers, in order: VIctory's own keys; #1981's wording for the stock rows; then every text ofvictory_core::settings::stock_labels, #1382's research. Eight Advanced Graphics rows have no label key at all; VIctory gives them keys of their own as their widgets are made. The five stock rows without a description key (Alpha Transmission and four Ray-Traced shadow rows) get VIctory's, and the two groups the title builds without a heading (its Display and Advanced groups) are named at the per-tab build (0x239D631), each recognised by a row it holds. No stock row's label is blank. The Settings widget pool is made with 16 more widgets than its tunable asks (0x5B038BA), room for the rows VIctory adds.VICTORY_LIVE_RESETS=1, a scene change made live writes into the image the scene's scale literal and FidelityFX mode (DLSS Quality, Series S Render Resolution, where DLSS upscales) or the temporal scale (1080p to 1440p, only with no upscaler, where the title's own temporal pass runs), then togglesoutputIndexin what is handed to SetSettings: the title's settings-change detector compares that field and its apply ignores it, so a same-size device reset follows and the title sizes its scene again. A scene already applied at Accept is not applied again when Settings is left, so there is one reset, not two.graphics_choicesdeclares the launcher's and the graphics settings once, withrestart_choices!: console profile, Series X picture, Series S render resolution, upscaler, DLSS quality, frame generation level and provider, and DLSS model. The stored values are byte for byte the ones the F1 menu and the game's rows already save invictory-settings.txt; which rows another makes available, the Series S pairing of render resolution with DLSS quality, and the provider's multiplier range are functions of the stored values. F1's DLSS, FRAME GENERATION, FRAME GEN TYPE, CONSOLE, SERIES X PICTURE, SERIES S PICTURE and DLSS MODEL read their values and names from it, as the game's launcher rows and VIctory rows do (pc_rows' own tables are gone). F1's FRAME GENERATION and the game's DLSS Frame Generation row step through what the active provider runs, within the multiplier limit: FSR 3 and FSR 4 Off and 2X; DLSS Frame Generation Off and 2X up to the driver's most frames once a present reports it, else 6 on an RTX 50 or later and 2 before; under Auto, whichever of them is active. A saved level past that is lowered to the highest one offered, when Settings is left and at the next start.0x239EEE0, #1382's keys), and the row ignores its steps. A change of the parent row greys or frees them at once, in the menu. The conditions are checked again when Settings is left: a pending choice whose conditions no longer hold is refused, not saved, and the row shows the saved value again.VICTORY_TEXTURE_ROOM_PERCENT(80 % with frame generation on, 86 % ready, for the whole run); the layer holds 80 % only while frame generation runs or is about to. #471'sVICTORY_FRAMEGEN_ROOM_RESERVEstays: the launchers set it whenever frame generation is asked for (on from the start, or--framegen-ready; not by the new default's readiness, so a start that never asks keeps the texture room it had), and where no frame-generation backend is available the layer still keeps textures under 80 %. play-foxhound keeps 74 % for-FrameGenabove 2x, frome1681b6. The first start's shader preload (#1897) now happens only with DLSS frame generation on from the start. Both frame generations are made ready whichever type is picked (FSR 3 still not with DLAA, #663), so MFG Unlocker (#1089) is now left out when FSR 3 is picked, whereVICTORY_FRAMEGEN=1alone used to tell it apart.--no-framegen-ready, nor with FSR 3 picked), because frame generation is made ready there by default; before, it loaded only with frame generation on or--framegen-ready.outputIndex. Under VIctory the title never acts on that member (the device setup's copy of the adapter and output indexes is patched to zero, and the settings' apply never reads it), so a Monitor row has nothing title-side to set. Which display the game is on is VIctory's window: the Resolution and Refresh Rate rows list the modes and rates of exactly the display the window is on (the primary one before the window exists, as at the start, where the saved size is checked), which is also the display whose rate Fullscreen changes. A host-side Monitor row that moves the window needs a row with no member behind it, as #1382's row-append code adds; that is a follow-up with AwkGrep256.Frame generation is put away on the title's reset. With
VICTORY_LIVE_RESETS=1, a Resolution change, a stock Graphics change below 3840x2160, or a scene change made live makes the title reset its graphics device: it destroys its upscaler and makes it again. While frame generation runs, the present goes through its swap chain, DLSS's or FSR 3's, and Streamline's DLSS-G guide, section 12 (DLSS-G and DXGI), asks for DLSS-G to be off across such a change:So when the title destroys its upscaler (
ffxDestroyContext), what was sent runs, and frame generation's swap chain is made VIctory's own again, frame generation off, as for a change of frame generation (section 18: "the swap chain must be torn down and recreated every time DLSS-G is switched on or off"). None of frame generation's is made, and anything asked waits, until the title upscales again. Then frame generation is asked again as it was, and its swap chain comes back at one of the next presents once the card has room for it. The Refresh Rate, Window Mode, VSync and Triple Buffering rows do not reset the device. This is the guide's rule, not a fix for the hang below: one of the two hung resets ran with frame generation off, through VIctory's own swap chain.A change for every Series X start. With the rows on, which is the default on the retail build, every Series X session runs the native output path so that Resolution can change: at the saved size, else at
VICTORY_NATIVE_1440P's (#1808's monitor shape), else at the stock 3840x2160 output with the stock 2560x1440 scene. That path sizes the UI pool for 3840x2160 (128 MiB, where the stock title has 64 MiB), grows the scene pool to 1,597 MiB through #1274'sheap_budget::prepare_scene_pool(reserved; units no target uses cost no memory), and keeps the title's own output buffers at two: its triple-buffering setting made three, more than the pool holds. The Triple Buffering row still sets VIctory's swap chain.VICTORY_PC_SETTINGS=0gives back the stock path.Known issue: the title's device reset hangs. The game resets its graphics device when SetSettings is handed settings whose reset-triggering fields changed (resolution, outputIndex, refreshRate, vSync, tripleBuffered and the graphics fields). In game that reset hung four times: two same-size resets at a 3840x2160 output, a VSync change under frame generation, and a Resolution change from 2560x1600 to 1920x1080. All four logs end the same way: the title destroys its upscaler, makes it again, and asks for its big address-space reservation (
XMemVirtualAlloc, 1957 MB, a placeholder: address space only, no large pages), which never returns. The process could not be killed afterwards and the PC needed a reboot. The allocation path is the same as onmain, and a review of the locks the path takes after the reservation found no cycle. The best fit so far is a stall inside the kernel: in the reservation itself, or behind the process heap lock whose owner is stuck in a kernel memory call (one hang's thread dump had five threads waiting on the heap lock). About 1 GB of RAM was free 3 s before the last hang. #2862 reports an out-of-memory crash when a stock Graphics change is confirmed. The cause is not found yet; the next hang will be recorded with a WPR trace (context switches with stacks, the GPU and virtual allocation), which shows what the stuck threads wait on.Until it is found, nothing in this PR makes the game reset its device by default:
VICTORY_LIVE_RESETS=1(experimental, off by default) restores the live paths for investigating the hang: Resolution and the scene rows through the device reset, and the stock rows applied by the game below 3840x2160 output (at 3840x2160 only withVICTORY_STOCK_GRAPHICS_4K=1).scalingMode) is never applied or kept where its scene would have more pixels than 2560x1440. The title commits that render-target heap at its start (stock 2199 MB), and raising it would cost 5.8 GB of commit on every start. A changed value is put back. An output change that pushes a kept ratio past that sets 2/3 (where 2/3 does not fit either, the largest value that does).XMemVirtualAlloc,XMemAllocatePhysicalPages,XMemMapPhysicalPages) log a line as they start (size, kind, protection, flags, thread) and one as they return (result, elapsed ms), and a call of any size that took over a second logs its return too. The guard logs what Settings hands SetSettings: every field that differs between the working copy and the committed settings, with its offset, old and new value (display fields and scalingMode by name) and their count.Commits (SHAs as pushed):
0f869c09PC settings: Display > Video rows and a Graphics tab in the game's own Settings menub8a58233PC settings: Fullscreen takes the Refresh Rate row; Triple Buffering sets the swap chain's buffers3e0f508fPC settings: every Resolution size starts, and Resolution changes the output live52cbe2eeFrame generation turned on, changed and off while playing; --framegen-ready makes it ready and dormantca15ff1fPC settings: DLSS Frame Generation, Frame Generation Type and DLSS Model rows in DISPLAY > VIDEO3ae50c82Settings: the typed Choice core and stock Graphics labels from #1382 (co-authored by AwkGrep256)2c9249b6xmem: big and slow console memory calls are logged as they start and return95e0ed2eSettings: typed choices for the launcher's and the graphics settings, from #1382 (co-authored by AwkGrep256)49fab593PC settings: Refresh Rate, Window Mode and Triple Buffering are VIctory's own, applied live without the game's device reset2af28967PC settings: the launcher rows take their values and names from the typed choices (co-authored by AwkGrep256)41770005F1: the typed rows take the typed choices; FRAME GENERATION offers what the card generates; DLSS MODEL is live (co-authored by AwkGrep256)31c278dfPC settings: Accept names what it changes; stock Graphics rows are not applied at 3840x2160 output; render scaling stays within the render-target heape4c669c7PC settings: every stock Graphics row is named, from #1382's research (co-authored by AwkGrep256)273397a3Launchers: the Upscaler choice is read at start (co-authored by AwkGrep256)071c103ePC settings: Console, Series X Picture, Series S Render Resolution, Upscaler and DLSS Quality rows; leaving the menu is guarded like Accept (co-authored by AwkGrep256)891182f6PC settings: DLSS Quality, Series S Render Resolution and Series X Picture 1080to1440 apply live below 3840x2160 outputde99c1a5PC settings: the stock rows without help get theirs, the two untitled groups get headings, the widget pool has room for our rows (co-authored by AwkGrep256)a6124c37PC settings: a site whose protection cannot be restored or whose instruction cache cannot be flushed is an error (asked for by AwkGrep256 on this PR)f6e97356PC settings: launcher rows validate and grey under their conditions at save (co-authored by AwkGrep256) (asked for by AwkGrep256 on this PR)041e66a0PC settings: the live scene's literals are written as a patch site is, and leaving the menu unchanged writes no scenedaa60c86PC settings: the caves' code is decoded and checked by tools/cave-decode812f4539PC settings: Resolution and the scene rows apply at the next start; live only with VICTORY_LIVE_RESOLUTION=1fad4eee5PC settings: stock Graphics changes are kept and applied at every start; live resets only with VICTORY_LIVE_RESETS=1e6ed9c2bLaunchers: frame generation made ready, dormant, at every start with DLSS; --no-framegen-ready notThe heads pushed before crashed in game despite green gates:
c1fe1931at start (the widget-pool cave stored to a mistyped address over a site holding a branch target), and83e22501when Settings was opened (the group-headings cave clobberedrdx, which the call it displaces takes) and when Settings was left (the menu-apply guard called GetCurrent through[rcx+0x48]where the title calls[rax+0x48]). Those three are fixed in commits 15 and 17. Every cave is now decoded and compared instruction by instruction, with the retail sites it replays or mirrors, bytools/cave-decode(commit 21). This head was pushed without the scripted in-game run (see "Not verified" below).Left out from the source branch: everything of #937 (the PlayStation prompts,
VICTORY_FILE_PATCH,pngandzopfli, the controller picture), and the ✕ Save button with its caves andsettings_save.rs, because its prompt was put on the screen by #937's patch ofdata.rpf.Docs:
docs/pc-settings.md(new: the rows, when a change applies, the text, the stock Graphics rows),docs/dlss.md(turning frame generation on and off while playing; the title's device reset), the README, and the code sketch indocs/native-graphics-proposal.md, which called theset_framegenthis replaces.Cargo.lockchanges in one way only: two lines, both dependencies between this repository's own crates. Thevictoryapp now depends onvictory-gpu, andvictory-gpuonvictory-core, for the typed settings. No outside crate is added or changes version. The Cargo.toml files also askwindows-sysfor more features: three forvictory, one (Win32_Graphics_Gdi) forvictory-gpu. The consequence:victory-gpu's build script hashesCargo.lockinto the shader cache key, so everyone's shader cache is translated again once, at the first start after updating.Switches
VICTORY_PC_SETTINGS=0VICTORY_LIVE_RESETS=1VICTORY_STOCK_GRAPHICS_4K=1VICTORY_LIVE_RESETS=1, the stock Graphics rows apply live at a 3840x2160 output tooVICTORY_MENU_UPSCALER(victory-settings.txt)victory playandplay-foxhound.ps1:titleruns the game's own upscaler (no DLSS, no Streamline, frame generation not prepared),dlssruns DLSS (Quality where the saved mode is off),autoor unset follows the saved DLSS modeVICTORY_FRAMEGEN_X=0VICTORY_FRAMEGEN_SCRIPT=<seconds>:<times>[:<kind>],...VICTORY_FRAMEGEN_CYCLE)victory play --no-framegen-ready,play-foxhound.ps1 -NoFrameGenReady--framegen-ready/-FrameGenReadyis still taken and wins)VICTORY_FULLSCREEN=1VICTORY_TEARING=0VICTORY_DISPLAY_MODE=WxHVICTORY_DISPLAY_REFRESH=<hz>How to try
stock=inpc-settings.txt; the log sayssettings rows: stock choice <name> saved; applies the next time the game starts, and at the next startsettings rows: stock choice <name> = <value> applies at this start.VICTORY_LIVE_RESETS=1(experimental) lets the game apply them live instead, through its device reset.pc-settings.txt(resolution=,refresh=,window=,vsync=,triple=, and the stock Graphics choices asstock=), the launcher's and the typed choices invictory-settings.txt; both inVICTORY_HOME, else%LOCALAPPDATA%\victory. Removing a row's line there, with the game closed, goes back to its default until the row is chosen again, asdocs/pc-settings.mdsays for each.settings rows: Resolution WxH saved; the next start runs at it,display settings: the swap chain has N buffers (Triple Buffering on), and at a reset with frame generationframe generation: the title resets its graphics device (its upscaler went): ....How it was tested
mainnot run in game for this PR.cargo testpassed for the crates it touches: see "Verified" below.Verified: unit tests, builds and policy.
On the final head (
e6ed9c2b, onmain41adb551), Windows 11:cargo check --workspace --tests: each of the 24 commits builds on its own.cargo test --workspace --no-fail-fast(withVICTORY_DISPLAY_PROFILE_TEST_IMAGEset), on this branch rebased ontomain41adb551: 2313 passed, 6 failed. Five fail on thatmaintoo: threebcpack::tests::oracle_parity_*, xtask'spolicy::tests::repository_passes_policyandshader_cache::tests::every_switch_of_the_translator_is_in_the_key. The sixth is the timing-sensitive xmem test below, which failed inmain's own run too.main: two timing-sensitive tests that fail now and then under the full parallel run,xmem::tests::a_read_by_range_waits_only_for_a_remapping_that_meets_itandhost::card_steps::tests::places_written_after_sending_are_learned. Both failed inmain41adb551's own full run; alone they pass. In one earlier full run, thevictory-hletest binary stopped with an access violation (0xC0000005). That did not happen again in 15 further runs on this branch or 17 onmain, so its cause is open.cave_dump(withVICTORY_CAVE_DUMPset) writes every cave and the retail sites they replay or mirror, andcargo run --manifest-path tools/cave-decode/Cargo.toml -- <dump>decodes them with iced-x86 and compares, instruction for instruction: 28 caves, 9 sites, 12 mirrors, no difference. With the apply guard's oldcall [rcx+0x48]put back into the dump, it reports both caves that have it. The tool is its own workspace, so iced-x86 never enters the mainCargo.lock(the only lock change is the one above).cargo clippy --workspaceand--all-features: no warning or error thatmain41adb551does not have.tools/cave-decode: no warnings.cargo build --release: builds.cargo xtask policy: one violation, the onemainhas (crates/victory-loader/src/heap_sites/frame_users.rs).Not verified. This head (
e6ed9c2b) has not been run in game at all: no smoke run, no A/B, no live check. It was pushed before those runs, by the PR author's decision. The two heads pushed before it,c1fe1931and83e22501, crashed in game (at start, and when Settings was opened and left) although every static gate above was green on both. Green gates here do not show that this head starts, opens Settings or plays. Treat it as untested in game until a run says otherwise.To be run on this head, each its own run, one device reset per boot:
VICTORY_STOCK_GRAPHICS_4K=1build.--no-framegen-ready), in the world (A/B). If dormant costs more than run-to-run noise, the default goes back to not ready.Also not run in game on any build of this branch: Fullscreen switching the monitor's rate; the host-side Refresh Rate, Window Mode and Triple Buffering rows; the Resolution and Refresh Rate lists following the window to a second display; the launcher's rows with FSR 4 and Auto; the live DLSS model change; frame generation turned on, changed and off while playing; frame generation ready and dormant as the default start, and MFG Unlocker loaded at it; the five VIctory rows, and 1080p to 1440p made live; the guard at Accept and at the menu's apply; the new labels, help texts and group headings in the menu, and the larger widget pool; the start-time clamp of a saved render scaling and its description. Nor the Series S profile or Linux/Wine.
Run in game so far.
On this branch before the combination (release builds, 2026-11-29, the machine above), going by the run logs:
On the source branch, an older
mainwith #937 and the ✕ Save, going by its run logs:Resolution 1920x1200 saved; the next start runs at it, and 1920x1440, 2048x1536, 3840x2160).window mode: the game's row changed), VSync was changed, and Refresh Rate took 100, 119 and 120 Hz. No run logged the monitor being switched to a rate.Known limits:
0xAADB87CF(Volumetric Lighting Quality here, Vehicle texture quality there) and0x8A446CC3(Volumetric Raymarch Quality here, Volumetric lighting quality there). #1981's names are shown; which is right has not been checked in game. The five rows only #1382's research names, and the two nameless rows it named, are in sentence case beside the Title Case of the rest.Checked for overlap
heap_budget). Still open and touching the same files: #1727 (HDR10:host.rs,host/menu.rs), #1938 (Reflex and the awake card:streamline.rs), #1739 and #1977 (play.rs,host/menu.rs). Each already conflicts withmainin a trial merge, and #1981's five commits add no conflicted file to any of them; the combination's commits were not merged against them in trial.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AwkGrep256 on 2026-11-29T11:25:45Z.
Hey @abilliontokens! I've been comparing #1981 with my #1382 and the upstream research in Marvisak/VIctory#2862.
First, I want to say that I genuinely like several things you've added here. In particular, the PC display controls and the live Frame Generation lifecycle are valuable additions. Being able to enable/disable FG, change its multiplier or switch providers while playing, when the presenter is prepared, is something I also wanted to implement eventually.
I think there's an opportunity to combine both approaches rather than maintain two parallel settings implementations.
1. What each implementation brings
Choice/Opt, declarativerestart_choices!macro, shared F1/native settings--framegen-readyDlssModelsetting and preserve your runtime integrationlauncher_settings.rs, pending selections, save/revert hooksCurrent implementation and validation status
Legend: 🟩 implemented in a branch/prototype · 🟨 integration or validation needed · ⬜ pending
The important distinction is that the implementation exists, but neither branch should be considered fully validated as a combined implementation.
Your PR reports successful builds and Rust tests, but explicitly says the current branch hasn't been run in-game. My latest branch also needs its outstanding focused tests and in-game checks rerun after rebasing.
2. A possible improvement: declarative typed settings
One thing I'd particularly like to explore is reusing my
Choice/Opt/GraphicsChoiceabstractions for your launcher-owned rows.Currently,
pc_rows.rsmaintains separate tables:There's nothing inherently wrong with these tables, especially for a focused implementation. However, they duplicate setting metadata that could live in the actual setting types.
For example, the same choices could be declared through the existing macro:
FrameGenerationalready has a typed definition in my implementation.The macro generates the enum, its
Choiceimplementation and its static option metadata. This means stored values, labels and ordering are defined together rather than maintained in multiple places.The PC row adapter could then retrieve the metadata generically:
And map the existing launcher rows to their corresponding types:
The important part is that this doesn't require replacing your low-level row integration.
For example:
This would let us reuse the same typed option definitions across F1 and native settings without maintaining parallel string tables.
It's also a lightweight, declarative Rust approach: static metadata is defined once, and the UI-specific behavior is supplied through adapters.
3. Preserve your live runtime implementation
I especially don't want us to lose the runtime work in this PR.
Your current implementation has a useful separation:
I'd preserve this lifecycle.
The existing runtime entry points are particularly useful:
We should keep the distinction between live-capable and restart-required choices too. In particular, switching to or from experimental FSR 4 remains restart-only.
The
--framegen-readydormant initialization is another part I'd like to retain. It gives us a useful way to prepare the runtime without immediately enabling generation.One additional benefit of the typed approach is that we can centralize the setting's metadata and validation without putting the runtime lifecycle inside the UI implementation.
4. Stock Graphics research and restoration
One contribution I'd particularly like to bring into this collaboration is the stock Graphics reverse-engineering work.
I identified and mapped all 76 visible stock Graphics rows, not just their captions. This includes tracing their text/name IDs where available and identifying rows that have no name ID at all, for which I supplied VIctory-owned labels.
The work is documented in Marvisak/VIctory#2862 and demonstrated in-game in #2863.
This also covers missing subsection headings and descriptions for rows that previously had no help text.
I noticed #1981 still documents:
1 / 0.I'd be happy to contribute the complete row mapping and text research to address these gaps.
One important safety consideration: #2862 documents an OOM when confirming a stock Graphics change. My implementation deliberately keeps stock setters blocked while restoring their readability.
I'd keep stock-label restoration and enabling stock editing as separate milestones until that issue is understood and resolved.
5. Proposed integration strategy
There are 11 overlapping files between the two PRs, and #1382 is based on an older main commit than this PR.
I see two reasonable approaches:
Option A — Two stacked PRs (my preference)
Option B — One integration PR
Create a shared branch based on current main, combine the relevant changes and submit one PR for review.
Either approach is fine with me. I mainly want to avoid independently merging competing implementations of the same settings and persistence paths.
@trustno1-coder, I'd especially appreciate your guidance on the preferred integration approach.
The earlier native Graphics proposal #75 was incorporated into main in 8fc2254 and shipped in v2026.11.27.10, so #1382 is the implementation follow-up to that direction.
Would you prefer a shared integration branch with two stacked PRs, or one combined PR?
@abilliontokens, thanks again for the PC display and live Frame Generation work. I'd be happy to coordinate on a shared branch, contribute the typed settings abstraction and stock-label research, and help integrate your runtime work.
I think there's a real opportunity here to make the native settings experience considerably more complete while keeping the implementation maintainable for future contributors.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by abilliontokens on 2026-11-29T13:22:24Z.
@AwkGrep256 thanks for the careful comparison. We read #1382 and #2862 side by side with #1981, and we'd like to go with Option B: one combined PR. We'd fold your work into #1981, with you as co-author on the commits that carry your code and research. If @trustno1-coder prefers the stacked Option A, the same pieces split cleanly into a foundation PR and a PC-integration PR on top.
What we'd take from #1382
Choice/Optcore andrestart_choices!(victory-coresettings). The DISPLAY rows' option tables (DLSS Frame Generation, Frame Generation Type, DLSS Model) and the F1 menu's rows would derive from one typed declaration. #1981's pending-until-close lifecycle stays as you suggested: NO drops a choice, leaving Settings saves it, and the runtime applies what the session can take.What we'd keep from #1981 instead of the #1382 equivalents. Both PRs patch the same Settings menu, so only one of each mechanism can be active:
PC display rows. VSync, Refresh Rate, Window Mode and Triple Buffering become host-side. They never write the title's members and apply live, so they no longer ask the title to reset its graphics device. Resolution stays a title reset by design, because the title must remake its output targets.
A hang we haven't root-caused yet. Two of the three title device resets we've run at 3840x2160 output hung, both with the size unchanged; the reset stops about 100 ms after the upscaler is remade. We haven't identified which changed field makes the title reset. Stock Graphics rows are applied through the same reset path, so until that's found and fixed, editing them at 3840x2160 can hang the game. We saw your #2862 report of an OOM when a stock change is confirmed; in our build the equivalent is that render scaling 1:1 at 3840x2160 needs a render-target heap larger than the stock one, which we're addressing. For the combined PR that means:
Where we differ from your current #1382 behaviour:
Does this split work for you? If you'd rather keep authorship of specific files, or you have newer label wording than
pr1382-head(a013d463), point us to the commit and we'll take that.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by abilliontokens on 2026-11-29T13:22:57Z.
One correction to my last comment: stock Graphics rows will be read-only while the output is 3840x2160, and editable at smaller sizes, not editable everywhere with a stated risk. That holds until the reset hang is found and fixed, and a stock change at 3840x2160 is re-checked.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AwkGrep256 on 2026-11-29T13:52:52Z.
Thanks @abilliontokens! This split works for me. I'm happy to go with Option B: one combined PR, folding the relevant #1382 work into #1981, with co-authorship on the commits carrying my code and research.
I agree that we should avoid maintaining two competing implementations of the same settings infrastructure. I think we can get a much stronger result by combining the shared settings architecture with your PC-specific runtime implementation.
Here's my understanding of the proposed integration so we're all on the same page.
📋 TL;DR — Proposed Combined Architecture
Choice/Opt,GraphicsChoice,restart_choices!⚙️ Low-Level Implementation Differences
These are areas where I agree we should choose one implementation rather than combine both mechanisms.
write_code,redirect_call,read_memory)🔍 Engineering Trade-offs
Text handling
Memory patching
Settings architecture
This is where I think the biggest opportunity is.
Rather than maintaining separate option tables in
pc_rows.rs, PC rows could consume the same typed definitions:Choice→Opt→GraphicsChoice→ UI-specific adapters.This keeps labels, stored values, ordering, defaults and dependencies together without forcing dynamic PC functionality into the generic settings layer.
🔒 Native Availability & Dependency-Aware Options
Another important feature from #1382 is the ability to use GTA's native disabled/locked presentation for dependent settings.
For example, DLSS-specific options should become unavailable when DLSS is not the selected upscaler.
I'd like to preserve this behaviour through the shared settings definitions rather than reimplementing it separately for the PC menu.
⚡ Dynamic Frame Generation Multipliers
#1382 also implements provider-dependent multiplier availability within the same native settings row.
These behaviours should remain connected to the shared typed settings architecture, while the existing PC runtime continues handling actual Frame Generation application.
🎮 Runtime and Persistence Decisions
The distinction between UI, persistence and runtime application is important. I'd like to preserve that separation.
⚠️ Outstanding Issue: 3840×2160 Device Reset
I agree this needs to be treated as a real validation gate rather than just a known limitation.
I agree with the correction: stock Graphics rows should remain read-only at 3840×2160 until the reset issue is resolved and verified.
📊 Integration Progress
Legend: 🟩 Existing implementation/research · 🟨 Integration or additional work · ⬜ Not yet validated
These bars represent the existence and integration state of individual work, not completed validation of the combined branch.
🤝 Proposed Next Steps
@abilliontokens — thanks again for being open to collaboration and preserving the work rather than duplicating it. I'm happy to help with the integration, typed settings adapters and stock Graphics research.
@trustno1-coder — I'd appreciate your input on the proposed direction. Are you happy with Option B (one combined PR), or would you prefer the two stacked PR approach?
I'm happy to follow whichever structure makes review and long-term maintenance easiest.
Ultimately, I think the goal should be one maintainable settings architecture, with the flexibility of the PC runtime implementation and without duplicating the underlying settings definitions.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by abilliontokens on 2026-11-29T16:43:32Z.
Heads-up: the current head (
c1fe1931) crashes ~2 s after start (0xC0000005) — a mistyped RVA in the last commit's widget-pool cave writes to unmapped memory, and its site also covered a branch target it didn't replay. Builds, 2280 tests, clippy and the policy check all passed on it, so I'm adding a boot check (title reaches the main menu) to the gate list, plus a test that validates each cave's RVAs against the retail image. Back to draft until the fix is pushed and re-gated.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by abilliontokens on 2026-11-29T17:36:03Z.
Back to draft. Head
83e22501crashes as soon as the in-game Settings menu is opened. Commit 17's group-heading cave calls a host function before the displaced call to 0x239E0A0 and doesn't preserve rdx, which that call takes as an argument. A fix is ready (rdx is saved around the host call). Every cave is now being audited for clobbered registers, stack alignment and replayed instructions against the retail image. This goes back to ready only after the fixes, full gates, and a run that starts the game and opens every Settings tab.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by abilliontokens on 2026-11-30T03:09:59Z.
Update on the stock Graphics rows, replacing what I said at 13:22: by default no row asks the game to reset its graphics device any more, because the reset hung at 2560x1600 as well as at 3840x2160. Stock Graphics rows stay editable at every size, but a change is saved when Settings is left and applied the next time the game starts (VIctory writes it into the game's settings before the device is created). Resolution, Series X picture, DLSS quality and Series S render resolution work the same way. VSync, Refresh Rate, Window Mode, Triple Buffering, DLSS Model and frame generation still apply live.
VICTORY_LIVE_RESETS=1brings back the live resets for investigating the hang. This is on the local branch and goes up once the game passes the boot-and-Settings smoke run.@AwkGrep256 I saw your new #1382 commits (
85a6c0be): we'll fold them in with you as co-author. One clash to settle: our DLSS Frame Generation row is built onoutputIndex(the hidden Monitor member), which your Monitor work needs. We're working out options and will propose one here.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by abilliontokens on 2026-11-30T03:11:37Z.
@AwkGrep256 on the outputIndex clash, a proposal. With this PR's patches the game never acts on
outputIndex: its adapter copy is patched so the device always gets adapter 0 / output 0, and its apply never reads that member. So a Monitor row here could only be host-side anyway (VIctory moving its window to the chosen display), whichever member it sits on.For #1981 we'd keep the DLSS Frame Generation row on
outputIndexand leave Monitor hidden, and make the Resolution and Refresh Rate lists come from the display the window is on rather than the primary one. A host-side Monitor row fits better as a follow-up PR built on your memberless-row work (it would also free the frame-generation row from needing a spare member), with you leading it if you'd like.From your newer commits (a013d463..85a6c0be) we'd take nothing into this PR:
setting.rs/monitor.rshave no consumer yet, and our pending-until-close lifecycle replaces the immediate save. Your Clippy cleanups (victory-shader imports,crash::unwind_copycfg) fix main's own warnings, so they'd sit better in their own PR to main. Does that work for you?Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AwkGrep256 on 2026-11-30T12:05:08Z.
That makes sense. One thing I'd like to clarify regarding commit 51c1408
Besides the Monitor model, this commit introduces a broader set of reusable setting abstractions in
victory-core:ToggleSetting,RangeSetting,ChoiceSetting,DynamicChoice,ActionSetting,InfoSetting, andSettingGroup/SettingRef.The idea is to have a common, platform-independent description of different setting types, with the actual UI, persistence and runtime application handled by their respective adapters.
I understand why
setting.rsdoesn't need to be included in #1981 yet if there isn't a concrete consumer, and I'm fine keeping the current integration focused on the typed Choice/Opt foundation.I'd just like to preserve this work as groundwork for future settings interfaces rather than lose the opportunity to share the abstractions when more setting types are needed.
Would you prefer to revisit this when we implement the host-side Monitor selector, or keep the core settings API narrower for now?
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.