Skip to content

GPU: NVIDIA stability and low-risk performance backports - #1

Draft
ChaerilM wants to merge 1 commit into
mainfrom
perf/nvidia-fork-backports
Draft

ChaerilM wants to merge 1 commit into
mainfrom
perf/nvidia-fork-backports

Conversation

@ChaerilM

Copy link
Copy Markdown
Owner

Changes

  • Adapt fxceless #1393: create D3D12 command signatures outside the shared cache mutex; recheck before publishing. Concurrent cold misses can create duplicates but only one is cached.
  • Adapt the stack-root-constant portion of fxceless #1399: use a 64-dword stack buffer in hot draw/dispatch binding, with a heap fallback; no change to root values.
  • Adapt fxceless #1389: skip zero-count graphics and compute root constant calls in both runtime binding and shader host fixtures (reported NVIDIA driver crash).
  • Adapt VItoriaBr #111 conservatively: VICTORY_BUFFERED_TITLE_READS=1 enables buffered synchronous read-only CreateFileW opens of mounted title paths. Default behavior remains unchanged; overlapped and writable opens keep their flags. This can change unaligned-read behavior, so opt-in only.

Review / testing

Added cache lock/retry/publication and file-open flag tests. GitHub comparison verified the intended three files only. No Rust build or Windows/NVIDIA execution was performed; draft pending CI and hardware validation. Suggested: cargo test -p victory-gpu command_signature_cache; cargo test -p victory-hle buffered_title_read_flags; cargo test -p victory-shader; compare identical cold and warm cache runs on NVIDIA and AMD with frame-time, 1% low, RAM/VRAM and device-removal logs. For the opt-in file-cache switch compare load times separately and confirm identical rendering.

Deferred higher-impact work

XCL #2844 reports 0.62 to 3.03 FPS on RTX 5070 Ti with a driver-backed coherent UMA window; it requires a substantial architectural port. VItoriaBr #106 reports lower RAM with smaller windows; requires its window architecture. fxceless #1397 paired wave64 and #1352 lean spread dispatch are dependent on divergent shader/indirect paths. Kelvaroq's public wave64 patch and UMA patch similarly need prerequisite changes. Do not assume the reported fork benchmarks carry over to this branch.

All source repositories have GPLv3 license files; our workspace is GPL-3.0-or-later. Source PR links retained for attribution. No main-branch changes.

…ot constants

Adapt fxceless/victory-fork PRs Marvisak#1393, Marvisak#1399 and Marvisak#1389 to our current draw and shader paths. Also adapt uiliannn/VItoriaBr PR Marvisak#111 as opt-in buffered reads for mounted title files only.

Sources: fxceless/victory-fork#1393
fxceless/victory-fork#1399
fxceless/victory-fork#1389
uiliannn/VItoriaBr#111
ChaerilM added a commit that referenced this pull request Nov 27, 2026
Keep existing victory.toml path configuration unchanged. Validate three performance settings, allow git-ignored local overrides, restore the parent process environment, and allowlist only the three authored preset paths in asset policy. Intended for use with PR #1 and #2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant