perf: CLAMP_AFTER_WRITER and NVIDIA Wave32 (opt-in), two cool_fox fixes #377

Merged
LooperSalty merged 5 commits from upstream-pr/377 into main 2026-11-26 14:26:16 +00:00
LooperSalty commented 2026-11-26 13:51:48 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T13:51:48Z.


Stacked on #358: merge that one first, and GitHub then retargets this one to main. Four commits taken from two neighbouring VIctory forks, each credited as rule 10 asks (Source: and Co-authored-by: in the message, rows in THIRD_PARTY.md).

Commit From What Switch
fix: upload buffers wait 500 ms after the driver refuses memory codec-d/cool_fox ab75ac3 no burst of driver calls after E_OUTOFMEMORY bug fix, always on
fix: XMA voices publish complete blocks and resume after a refill codec-d/cool_fox 8cc31ab (audio part) short blocks no longer padded with silence bug fix, always on
feat: port VICTORY_CLAMP_AFTER_WRITER clankenjoyer/neptune-fps 64327b85 indirect records are sanitized once after the pass that writes them, instead of clamped at every read VICTORY_CLAMP_AFTER_WRITER=1, off by default
feat: NVIDIA Wave32 lowering codec-d/cool_fox 8cc31ab3 (shader part) ACCC containers with the active-lane loop made wave-wide, select SCC, restored lanes, uniform-address LDS VICTORY_WAVE32_NVIDIA=1, off by default

The shader translator's source changes, so this build invalidates the shader cache once, even with the switch off: the cache key hashes victory-shader/src.

Measured (maintainer's machine, 2026-11-26: RTX 4070 SUPER, Series X, VIctory logs, one run each, on top of #358 with its three switches)

Run Median fps Last 2 min Dropped draws a frame
#358 base 14.5 14.2 434
+ VICTORY_CLAMP_AFTER_WRITER=1 14.8 16.6 380
+ VICTORY_WAVE32_NVIDIA=1 (with fence and commit-gate switches not in this PR) 15.0 15.5 452

The clamp shows fewer dropped draws and the best last two minutes, with 31 to 35 sanitize passes a frame and no record emptied. Wave32 did not lower the dropped draws: it reaches only the ACCC (FSR) compute shaders. Its frame times were the steadiest of the day (52 to 59 ms). Both stay off by default until more runs confirm them. No crash or device loss in any run. The XMA fix was not judged by ear yet.

Test plan

  • victory-gpu: 8 new tests (indirect/san_tests.rs); victory-shader: 8 new tests; only the 3 WARP failures already on main remain
  • cargo build --release -p victory, cargo xtask policy
  • In-game runs above
  • CI green

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:6628107446 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/377). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-26T13:51:48Z. --- Stacked on #358: merge that one first, and GitHub then retargets this one to `main`. Four commits taken from two neighbouring VIctory forks, each credited as rule 10 asks (`Source:` and `Co-authored-by:` in the message, rows in `THIRD_PARTY.md`). | Commit | From | What | Switch | | --- | --- | --- | --- | | `fix: upload buffers wait 500 ms after the driver refuses memory` | codec-d/cool_fox `ab75ac3` | no burst of driver calls after `E_OUTOFMEMORY` | bug fix, always on | | `fix: XMA voices publish complete blocks and resume after a refill` | codec-d/cool_fox `8cc31ab` (audio part) | short blocks no longer padded with silence | bug fix, always on | | `feat: port VICTORY_CLAMP_AFTER_WRITER` | clankenjoyer/neptune-fps `64327b85` | indirect records are sanitized once after the pass that writes them, instead of clamped at every read | `VICTORY_CLAMP_AFTER_WRITER=1`, off by default | | `feat: NVIDIA Wave32 lowering` | codec-d/cool_fox `8cc31ab3` (shader part) | `ACCC` containers with the active-lane loop made wave-wide, select SCC, restored lanes, uniform-address LDS | `VICTORY_WAVE32_NVIDIA=1`, off by default | The shader translator's source changes, so this build invalidates the shader cache once, even with the switch off: the cache key hashes `victory-shader/src`. ## Measured (maintainer's machine, 2026-11-26: RTX 4070 SUPER, Series X, VIctory logs, one run each, on top of #358 with its three switches) | Run | Median fps | Last 2 min | Dropped draws a frame | | --- | --- | --- | --- | | #358 base | 14.5 | 14.2 | 434 | | + `VICTORY_CLAMP_AFTER_WRITER=1` | 14.8 | **16.6** | **380** | | + `VICTORY_WAVE32_NVIDIA=1` (with fence and commit-gate switches not in this PR) | 15.0 | 15.5 | 452 | The clamp shows fewer dropped draws and the best last two minutes, with 31 to 35 sanitize passes a frame and no record emptied. Wave32 did not lower the dropped draws: it reaches only the `ACCC` (FSR) compute shaders. Its frame times were the steadiest of the day (52 to 59 ms). Both stay off by default until more runs confirm them. No crash or device loss in any run. The XMA fix was not judged by ear yet. ## Test plan - [x] `victory-gpu`: 8 new tests (`indirect/san_tests.rs`); `victory-shader`: 8 new tests; only the 3 WARP failures already on `main` remain - [x] `cargo build --release -p victory`, `cargo xtask policy` - [x] In-game runs above - [ ] CI green 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox
chatgpt-codex-connector[bot] commented 2026-11-26 13:51:55 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T13:51:55Z.


Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-26T13:51:52.301946Z
We couldn’t complete this review. Comment @codex review to try again.
653d912 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7193944132 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/377#issuecomment-7193944132). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T13:51:55Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"653d9121f1b3dde716a975810b269a72be668967","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-26T13:51:52.301946Z">2026-11-26T13:51:52.301946Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `653d912` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
chatgpt-codex-connector[bot] commented 2026-11-26 13:51:58 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T13:51:58Z.


You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7193944953 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/377#issuecomment-7193944953). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T13:51:58Z. --- You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/cloud/settings/usage). To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your [settings](https://chatgpt.com/settings/code-review).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LooperSalty/AnyXboxX!377
No description provided.