Add native Graphics settings alongside F1 #1382
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1382"
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 AwkGrep256 on 2026-11-28T18:26:58Z.
🎮 Shared typed Graphics settings foundation
PR #1382 carries the typed settings and stock Graphics research that PR #1981 can use for the game's own Settings menu.
The F1 menu and the native menu need one source of truth for stored values, labels, ordering, defaults, and dependencies. This PR keeps those rules in idiomatic Rust types and leaves each UI to provide its own adapter.
🦀 What this PR provides
ChoiceandOptfor saved values and labels shared by both menus.GraphicsChoice,Requirement, andrestart_choices!for declarative graphics rows.🧩 Native row abstractions
The core settings module covers more than fieldless choices. Each native row type can use the same metadata and validation while its owning UI supplies the callback and presentation:
Ordered native sections use typed registration entries:
A graphics choice is declared once and can be adapted by F1 or the native menu:
🏷️ Stock Graphics research
The stock catalogue carries the row names, descriptions, missing subsection headings, and nameless-row mappings gathered from the retail menu. Stock setters remain read-only until their save and reset behavior is verified.
🧱 Safe loader writing
The reusable code writer validates the image range, restores page protection, flushes the instruction cache, and reports cleanup failures. Redirects read only their verified five-byte site before installing a near stub.
🔌 What PR #1981 owns
PR #1981 owns the native tab registration, text-lookup hook, site writer, PC display and runtime lifecycle, pending save and revert flow, and hook-specific integration.
This branch does not discover or mutate the title's text map. It does not scan DirectStorage reads, mapped memory, or executable sections. It does not add a second native-menu hook path, duplicate site writer, or PC-specific display callback layer.
🤝 Integration contract
PR #1981 consumes the typed declarations and stock label research. Its native-menu adapters translate those declarations into the game's widgets, while its runtime keeps the live Frame Generation lifecycle and PC display behavior. Both menus use the same saved values and dependency rules.
🧪 Validation
Related work is tracked in PR #1981 and the native Graphics design notes.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AwkGrep256 on 2026-11-28T22:17:41Z.
@trustno1-coder Could you review the typed
Choiceapproach before I push the follow-up?🎮 Latest 4K test
🦀 Adding a dependent choice
The macro generates the
Choiceimplementation and the F1 option table from one declaration.🧪 Retest
█████░5 of 6 in-game checks confirmed on the previous build. The local refactor passed 47 focused tests.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by spook40 on 2026-11-29T01:37:20Z.
Findings on 8 GB RTX 3060 Ti (
1080to1440,60 fps) — Issue #1382draw.rs: When the texture pool hitsno room, indexed texture slots without an existing host copy are deferred withTold::Held(frame + most)and capped at1,024refused per pass, leaving newly requested ground/prop textures reading null/black while over budget.!roomdeferral: Allowing those slots to upload even underno roomrestored the missing porch, ground, and environment textures near Sunrise RV Park, confirming the black rendering came from upload deferral rather than unmapped slots or depth planes.!roomon an 8 GB card pushed the pool to 148 blocks (9,472 MB) (11,676 MBin use vs.6,313 MBline) and dropped performance to ~1.9 fps (~530 ms/frame) due to shared-memory spillover—so a bounded per-pass allowance or priority eviction when!roomis needed rather than a blanket bypass.Follow-up on
main(f9dfb76) — 8 GB RTX 3060 Ti (1080to1440,60 fps)128 MB): Heavy over-line admission (4,184in 5s) pushed system memory load to 94% and crashed during shader/pipeline compilation.64 MB/32 MB): Prevented the crash and kept core scene textures visible, but once texture copies reached the ceiling (~5.5–6.15 GBin texture copies,~8.3–9.3 GBin use), remaining first uploads were refused (11,801–17,538at the texture-copy ceiling), leaving some bushes/props untextured at ~6.6–8.8 fps (~113–160 ms/frame).Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AwkGrep256 on 2026-11-29T12:40:02Z.
@spook40 I'm not really seeing how this is related to #1382. This PR is focused on the native Graphics menu and sharing settings with F1. It doesn't touch
draw.rsor any of the texture streaming, allocation, or VRAM management code you're describing.I'm not dismissing the issue, but I don't think it's fair to attribute it to this PR without showing what change here could be causing it.
If you've found a specific connection, feel free to point it out. Otherwise, I think this is probably better tracked as a separate issue so it doesn't hold up unrelated work.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by spook40 on 2026-11-29T13:02:05Z.
My mistake; I mixed up the number and posted this on the wrong thread. Didn't mean to attribute this to your PR; I'll move it over to its own issue so it's out of your way.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AwkGrep256 on 2026-11-29T13:04:00Z.
Thank you!
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AwkGrep256 on 2026-11-29T21:25:13Z.
Summary
DynamicChoicesupport for connected display options.EnumDisplayDevicesW.Validation
cargo check -p victory --features diagnostics --lockedView 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.