NVIDIA wave32, capped view heap, present compose, and HUD improvements #103

Closed
github-bot wants to merge 1 commit from gh-pr/103/head into gh-pr/103/base
Owner

@⁠rivaldodev on GitHub · 2026-11-26 03:27 UTC · original
rivaldodev:feat/nvidia-improvements → main · +1388 −40 · 16 files · 1 commits · closed without merging

Summary

This PR ports NVIDIA-focused compatibility, stability, and quality-of-life improvements from rivaldodev/VItoriaBr (GPL-3.0-or-later) on top of VIctory-7900XTX's fast path, making this fork run great on NVIDIA GPUs as well (tested live on an NVIDIA RTX 5060 Ti 16 GB).

Shaders (NVIDIA wave32 stability & coverage)

  • Automatic divergent barrier guards on narrow-wave GPUs: guards single-console-wave barriers inside per-lane branches on wave32 hardware without disabling uniform barriers or translation-added sync.
  • Uniform first-lane wave-scan proofs: proves that a wave scan's first-lane value is uniform across both wave32 halves (with cycle proof seeding and stable LDS checks), avoiding invalid cross-wave barriers.
  • Signed 64-bit literal sign-extension: properly sign-extends 32-bit literals for signed 64-bit operands.

GPU (Capped 1M view heap, presentation & writeback)

  • VICTORY_DYNAMIC_SLOTS on capped view heaps: honors VICTORY_DYNAMIC_SLOTS on GPUs with a 1,000,000 view heap cap (such as NVIDIA), clamped up to half of the null slot, while keeping the existing uncapped behavior intact for AMD.
  • Second present plane composition (compose.rs, ported from trustno1-coder/VIctory-NVIDIA 7997a20 / fxceless PR 1189): composes the title's second present plane over the main frame.
  • Skip unnecessary table UAV writebacks: tracks which table UAV descriptors a shader actually stores to and skips writeback when the store targets another descriptor.
  • 2-line on-screen performance HUD (fpsbox.rs, VICTORY_FPS_COUNTER): shows FPS, frame time, draws/frame, resolution, VRAM usage, and GPU name (compact for FPS-only, 0 to disable).

Core / HLE / Build

  • Thin LTO (lto = thin) in [profile.release] (inherited by [profile.diag]).
  • VICTORY_HIDDEN_WINDOW: keeps the title window off-screen for unattended runs.
  • Config validation: rejects data_dir equal to or inside cache_dir.

Verification

  • cargo check --locked --workspace --tests — passed
  • cargo test --locked -p victory-core -p victory-gpu fpsbox — passed
  • cargo test --locked -p victory-shader a_first_lane_read_of_a_uniform_scan_carries_across_the_halves — passed
  • cargo build --locked --profile diag -p victory --features diagnostics — passed
  • Tested live in-game on NVIDIA hardware with scripts\play.ps1.
**@⁠rivaldodev** on GitHub · 2026-11-26 03:27 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/103) `rivaldodev:feat/nvidia-improvements` → `main` · +1388 −40 · 16 files · 1 commits · closed without merging ## Summary This PR ports NVIDIA-focused compatibility, stability, and quality-of-life improvements from [rivaldodev/VItoriaBr](https://github.com/rivaldodev/VItoriaBr) (GPL-3.0-or-later) on top of `VIctory-7900XTX`'s fast path, making this fork run great on NVIDIA GPUs as well (tested live on an NVIDIA RTX 5060 Ti 16 GB). ### Shaders (NVIDIA wave32 stability & coverage) - **Automatic divergent barrier guards on narrow-wave GPUs**: guards single-console-wave barriers inside per-lane branches on wave32 hardware without disabling uniform barriers or translation-added sync. - **Uniform first-lane wave-scan proofs**: proves that a wave scan's first-lane value is uniform across both wave32 halves (with cycle proof seeding and stable LDS checks), avoiding invalid cross-wave barriers. - **Signed 64-bit literal sign-extension**: properly sign-extends 32-bit literals for signed 64-bit operands. ### GPU (Capped 1M view heap, presentation & writeback) - **`VICTORY_DYNAMIC_SLOTS` on capped view heaps**: honors `VICTORY_DYNAMIC_SLOTS` on GPUs with a 1,000,000 view heap cap (such as NVIDIA), clamped up to half of the null slot, while keeping the existing uncapped behavior intact for AMD. - **Second present plane composition** (`compose.rs`, ported from `trustno1-coder/VIctory-NVIDIA` `7997a20` / `fxceless` PR 1189): composes the title's second present plane over the main frame. - **Skip unnecessary table UAV writebacks**: tracks which table UAV descriptors a shader actually stores to and skips writeback when the store targets another descriptor. - **2-line on-screen performance HUD** (`fpsbox.rs`, `VICTORY_FPS_COUNTER`): shows FPS, frame time, draws/frame, resolution, VRAM usage, and GPU name (`compact` for FPS-only, `0` to disable). ### Core / HLE / Build - **Thin LTO** (`lto = thin`) in `[profile.release]` (inherited by `[profile.diag]`). - **`VICTORY_HIDDEN_WINDOW`**: keeps the title window off-screen for unattended runs. - **Config validation**: rejects `data_dir` equal to or inside `cache_dir`. ## Verification - `cargo check --locked --workspace --tests` — passed - `cargo test --locked -p victory-core -p victory-gpu fpsbox` — passed - `cargo test --locked -p victory-shader a_first_lane_read_of_a_uniform_scan_carries_across_the_halves` — passed - `cargo build --locked --profile diag -p victory --features diagnostics` — passed - Tested live in-game on NVIDIA hardware with `scripts\play.ps1`.
Ports NVIDIA wave32, capped view heap, presentation, and HUD improvements from rivaldodev/VItoriaBr (GPL-3.0-or-later):

- Shaders (wave32 / NVIDIA stability):
  - Automatically guard divergent single-console-wave barriers on narrow-wave GPUs
  - Prove uniform first-lane values across wave64 halves in wave scans (with cycle seeding and stable LDS check)
  - Sign-extend 32-bit literals for signed 64-bit operands
- GPU (capped view heap, presentation, writeback):
  - Honor VICTORY_DYNAMIC_SLOTS on capped view heaps (e.g. NVIDIA 1M view limit, clamped up to null/2)
  - Compose the title's second present plane (trustno1-coder/VIctory-NVIDIA 7997a20; fxceless PR 1189)
  - Skip table UAV writeback when the store names another descriptor
  - 2-line on-screen performance HUD (VICTORY_FPS_COUNTER: FPS, ms, draws, res, VRAM, GPU)
- Core / HLE / Build:
  - Enable thin LTO in release/diag profiles
  - Support VICTORY_HIDDEN_WINDOW for unattended runs
  - Reject data_dir equal to or inside cache_dir
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:32:13 +00:00
github-bot closed this pull request 2026-11-26 03:32:13 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-26 03:27 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-11-26 03:27 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/103#pullrequestreview-6068157945) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.