perf: fxceless copy index, card sync batch and parallel refresh, cool_fox fence wake (opt-in, +8 % measured) #383

Merged
LooperSalty merged 7 commits from upstream-pr/383 into main 2026-11-26 14:48:40 +00:00
LooperSalty commented 2026-11-26 14:34:57 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T14:34:57Z.


Five ports from two neighbouring VIctory forks. Each is credited as rule 10 asks (Source: and Co-authored-by: in the commit message, rows in THIRD_PARTY.md), and each sits behind its own switch, off by default.

Commit From What Switch
feat: step copies found by an index fxceless/victory-gta6 84c5dc00 copy lookups by step become a map instead of linear searches (20,000 to 43,000 a frame in their logs); a unit test checks the index against the search form VICTORY_STEP_INDEX=1 (or alt)
feat: card copies recorded in three steps fxceless/victory-gta6 6aed0780 (their PR #1227) copies to the card first, then the state changes in one call, then the hash passes, instead of a switch per copy; Neptune's mask pass kept per copy VICTORY_CARD_SYNC_BATCH=1 (or alt)
feat: texture checks side by side fxceless/victory-gta6 ceb9e1f7 (host.rs part only) the texture checks of a submission run on the helper pool VICTORY_PARALLEL_REFRESH=1 (or alt)
feat: wake blocked fence waits by address codec-d/cool_fox e05d4633 WaitOnAddress/WakeByAddressAll instead of polling for fence waits; optional wake on GPU memory writes VICTORY_FENCE_WAKE=1, VICTORY_VALUE_WAKE=1
feat: stop texture uploads under low commit codec-d/cool_fox ab75ac3e an admission gate that keeps a commit reserve VICTORY_COMMIT_GATE=1

alt switches the feature on and off every 20 s within one run, for A/B measurement.

Measured (maintainer's machine, 2026-11-26: RTX 4070 SUPER, i7-13700KF, Series X, VIctory logs, one run each)

Run Median fps Last 2 min Dropped draws a frame Copies to the card
main before #358 13.4 13.2 440 ~20 ms
#358 + #377 switches + FENCE_WAKE + COMMIT_GATE + WAVE32_NVIDIA 15.0 15.5 452 ~16 ms
the same + STEP_INDEX + CARD_SYNC_BATCH + PARALLEL_REFRESH 16.2 17.1 397 12–17 ms

No crash or device loss. The three fxceless switches were measured together, so the share of each is not known yet. FENCE_WAKE and COMMIT_GATE alone measured neutral (15.1 against 14.8). VALUE_WAKE was not measured. Everything stays off by default here; a follow-up turns the set on in the launcher once a second run confirms it.

Test plan

  • cargo build --release -p victory; cargo test --release -p victory-gpu: 236 passed, and only the 3 WARP tests that already fail on main fail (spans_say_the_next_start_and_the_lowest_level_viewed, warp_card_patch_writes_the_masked_bytes_and_no_others, warp_card_fetch_copies_flagged_pieces_to_their_slots); new tests the_index_gives_what_the_search_gives, parallel_refresh_is_off_unless_set, and the fence-wake and commit-gate tests
  • cargo xtask policy: 214 files ok
  • In-game runs above
  • CI green

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:6628906157 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/383). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-26T14:34:57Z. --- Five ports from two neighbouring VIctory forks. Each is credited as rule 10 asks (`Source:` and `Co-authored-by:` in the commit message, rows in `THIRD_PARTY.md`), and each sits behind its own switch, off by default. | Commit | From | What | Switch | | --- | --- | --- | --- | | `feat: step copies found by an index` | fxceless/victory-gta6 `84c5dc00` | copy lookups by step become a map instead of linear searches (20,000 to 43,000 a frame in their logs); a unit test checks the index against the search form | `VICTORY_STEP_INDEX=1` (or `alt`) | | `feat: card copies recorded in three steps` | fxceless/victory-gta6 `6aed0780` (their PR #1227) | copies to the card first, then the state changes in one call, then the hash passes, instead of a switch per copy; Neptune's mask pass kept per copy | `VICTORY_CARD_SYNC_BATCH=1` (or `alt`) | | `feat: texture checks side by side` | fxceless/victory-gta6 `ceb9e1f7` (`host.rs` part only) | the texture checks of a submission run on the helper pool | `VICTORY_PARALLEL_REFRESH=1` (or `alt`) | | `feat: wake blocked fence waits by address` | codec-d/cool_fox `e05d4633` | `WaitOnAddress`/`WakeByAddressAll` instead of polling for fence waits; optional wake on GPU memory writes | `VICTORY_FENCE_WAKE=1`, `VICTORY_VALUE_WAKE=1` | | `feat: stop texture uploads under low commit` | codec-d/cool_fox `ab75ac3e` | an admission gate that keeps a commit reserve | `VICTORY_COMMIT_GATE=1` | `alt` switches the feature on and off every 20 s within one run, for A/B measurement. ## Measured (maintainer's machine, 2026-11-26: RTX 4070 SUPER, i7-13700KF, Series X, VIctory logs, one run each) | Run | Median fps | Last 2 min | Dropped draws a frame | Copies to the card | | --- | --- | --- | --- | --- | | `main` before #358 | 13.4 | 13.2 | 440 | ~20 ms | | #358 + #377 switches + `FENCE_WAKE` + `COMMIT_GATE` + `WAVE32_NVIDIA` | 15.0 | 15.5 | 452 | ~16 ms | | the same + `STEP_INDEX` + `CARD_SYNC_BATCH` + `PARALLEL_REFRESH` | **16.2** | **17.1** | **397** | 12–17 ms | No crash or device loss. The three fxceless switches were measured together, so the share of each is not known yet. `FENCE_WAKE` and `COMMIT_GATE` alone measured neutral (15.1 against 14.8). `VALUE_WAKE` was not measured. Everything stays off by default here; a follow-up turns the set on in the launcher once a second run confirms it. ## Test plan - [x] `cargo build --release -p victory`; `cargo test --release -p victory-gpu`: 236 passed, and only the 3 WARP tests that already fail on `main` fail (`spans_say_the_next_start_and_the_lowest_level_viewed`, `warp_card_patch_writes_the_masked_bytes_and_no_others`, `warp_card_fetch_copies_flagged_pieces_to_their_slots`); new tests `the_index_gives_what_the_search_gives`, `parallel_refresh_is_off_unless_set`, and the fence-wake and commit-gate tests - [x] `cargo xtask policy`: 214 files ok - [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 14:35:02 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T14:35:02Z.


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-26T14:34:59.655044Z
We couldn’t complete this review. Comment @codex review to try again.
810adeb 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:7195028997 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/383#issuecomment-7195028997). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T14:35:02Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"810adeb17b1fcede6a3bd2db1e183cbfdbc1318e","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-26T14:34:59.655044Z">2026-11-26T14:34:59.655044Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `810adeb` | 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 14:35:04 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T14:35:04Z.


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:7195029727 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/383#issuecomment-7195029727). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T14:35:04Z. --- 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!383
No description provided.