feat: move third_party/victory to the Vice-Tay base (+40 % fps on NVIDIA) #454

Merged
LooperSalty merged 10 commits from upstream-pr/454 into main 2026-11-26 23:07:04 +00:00
LooperSalty commented 2026-11-26 22:46:32 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T22:46:32Z.


Important

Force Full HD, not 4K, to gain fps. The title applies the output size its settings hold, and a Series X wrote 3840x2160 there, so it renders 2560x1440 internally (2/3). Force 1920x1080 with anyxboxx run --override VICTORY_OUTPUT=1920x1080: the internal size drops to 1280x720 and this branch reaches 25-29 fps steady in the world (30 s average 28.0), against ~20 fps at 4K. At 4K the card is the limit (91-96 % busy).

Summary

Moves third_party/victory from the Neptune base to TaynanGT/Vice-Tay (a252348, GPL-3.0-or-later) and re-applies what AnyXboxX needs on top, as the earlier combined base did (#409, reverted by #452).

Why: on our NVIDIA machine, Vice-Tay is the fastest base measured so far.

Measurements (RTX 4070 SUPER, i7-13700KF, 32 GB, driver 621.40, Series X, warm cache)

Run Output World fps Copies a frame Copy-back a frame
Neptune base (main, wt-ab-base) 3840x2160 14.2 median 17-27 ms, 105-141 MB 24-26 ms, 51-53 MB
Vice-Tay play.ps1 -Machine 4070 (their launcher) 3840x2160 ~20 median, 21-24 steady 5-7 ms, 56-64 MB 14 ms, 26-29 MB
This branch, anyxboxx run --auto-a 1920x1080 (VICTORY_OUTPUT) 23.6 median, 25-29 steady (30 s avg 28.0) ~10 ms, 52 MB

Measured from the logs and the overlay's figures (now also written to the log every 5 s). No lost device in any of these runs. The 1080p run had a background cargo build during part of it, so its low points are pessimistic. 4K and 1080p numbers are not comparable with each other.

Where the gain comes from (read from the per-frame lines):

  • Title buffers and shader-read windows kept on the card (VICTORY_CARD_BUFFERS_MB=1536, VICTORY_CARD_WINDOWS_MB=1024, VICTORY_CARD_RESERVE_BUDGETS=1): half the bytes copied up and fetched back.
  • Submissions prepared while the card works (VICTORY_ASYNC_SUBMIT thread, VICTORY_RELAY=2): Neptune's line shows 0 ms of GPU overlap, Vice-Tay's 15-21 ms.
  • Fewer submissions (VICTORY_JOIN_PARTS, VICTORY_JOIN_COPIES).
  • Threads Neptune lacks: list translation (VICTORY_THIN, 8 threads, ~112 ms of work in ~43 ms), landing (VICTORY_LAND, 4 threads, 25 ms in 7 ms), 3 pipeline workers.
  • The remaining limit at 4K is the single submission thread (42 ms of work for a 42-43 ms frame); at 1080p the card is at 77-96 %.

Commits

  • chore: move third_party/victory to the Vice-Tay base (their tree without .github).
  • feat(victory): AnyXboxX glue — keyboard map and borderless window, xmem EraFields, xasync XThread slots (Vice-Tay already had its own async-status fix, kept).
  • feat(victory): XG oracle (VICTORY_XG_DLL, VICTORY_XG_MODE).
  • feat(victory): Neptune overlay, auto-A and Discord — overlay on by default (F10), figures in the log every 5 s; F12 screenshots not wired yet.
  • feat(anyxboxx): tuned settings for the Vice-Tay base (4070 profile) — TUNED is Vice-Tay's play.ps1 -Machine 4070 set; launcher windows-nvidia profile, golden fixture and tests follow. --dred still wins over the tuned VICTORY_D3D12_DRED=light.
  • docs: README headline for the Vice-Tay base, docs: credit the Vice-Tay base (THIRD_PARTY.md, AGENTS.md), test: launcher settings test reads the Vice-Tay golden set.

Also on this branch:

  • Rule 1 pruning: victory-loader/src/{resolution,frame_rate,descriptor_sites}.rs (from Vice-Tay, each off unless its variable is set) describe the title's own code beyond the sites they patch. Their comments are cut down to the patched sites' offsets, the original-byte checks and our replacement code (maintainer's decision: prune, keep the patches; VICTORY_OUTPUT is how runs are made in 1080p).
  • Frametime CSV dump (VICTORY_FRAMETIME_DUMP) ported from the Neptune base, so the launcher option keeps working.

Points for review

  • XG: Vice-Tay computes 64 KiB tiling (slot 0x50) differently from Neptune, whose version was set against the real DLL; the oracle will report 64 KiB tiling differs with -XgDll. Kept Vice-Tay's computation.
  • Launcher: VICTORY_TEXTURE_MAX_SIZE (8 GB / 12 GB presets) is not read by Vice-Tay; listed as an exception in the launcher test.
  • docs/launcher.md and docs/fr/ still describe the Neptune settings (list pool, etc.): follow-up.
  • VICTORY_OCEAN_READBACK and VICTORY_LIST_POOL_* are dropped: Vice-Tay does not read them.

Test plan

  • cargo build --release --workspace
  • cargo test --release -p anyxboxx -p anyxboxx-launcher (24 + 211)
  • cargo test --release -p victory-hle xg (27), auto-A and Discord tests
  • python -m pytest (1545 passed, 361 skipped)
  • python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools
  • cargo xtask policy in third_party/victory
  • Game runs: Vice-Tay launcher at 4K, this branch at 1080p (Series X, warm cache)
  • Rule 1 pruning (7d1d05f1, comments only: 63 title offsets down to the 5 patched sites; code and byte checks unchanged), frametime dump (ef8ad65f, 36 of 37 columns; cpu_pct left empty, not measured on this base)
  • README (English and French): new headline, Full HD advice
  • A 10-minute 1080p run on this branch with nothing else running
  • CI

🤖 Generated with Claude Code

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:5518172987 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/454). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-26T22:46:32Z. --- > [!IMPORTANT] > **Force Full HD, not 4K, to gain fps.** The title applies the output size its settings hold, and a Series X wrote 3840x2160 there, so it renders 2560x1440 internally (2/3). Force 1920x1080 with `anyxboxx run --override VICTORY_OUTPUT=1920x1080`: the internal size drops to 1280x720 and this branch reaches 25-29 fps steady in the world (30 s average 28.0), against ~20 fps at 4K. At 4K the card is the limit (91-96 % busy). ## Summary Moves `third_party/victory` from the Neptune base to **[TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay)** (`a252348`, GPL-3.0-or-later) and re-applies what AnyXboxX needs on top, as the earlier combined base did (#409, reverted by #452). Why: on our NVIDIA machine, Vice-Tay is the fastest base measured so far. ## Measurements (RTX 4070 SUPER, i7-13700KF, 32 GB, driver 621.40, Series X, warm cache) | Run | Output | World fps | Copies a frame | Copy-back a frame | | --- | --- | --- | --- | --- | | Neptune base (main, `wt-ab-base`) | 3840x2160 | 14.2 median | 17-27 ms, 105-141 MB | 24-26 ms, 51-53 MB | | Vice-Tay `play.ps1 -Machine 4070` (their launcher) | 3840x2160 | ~20 median, 21-24 steady | 5-7 ms, 56-64 MB | 14 ms, 26-29 MB | | This branch, `anyxboxx run --auto-a` | 1920x1080 (`VICTORY_OUTPUT`) | 23.6 median, 25-29 steady (30 s avg 28.0) | ~10 ms, 52 MB | | Measured from the logs and the overlay's figures (now also written to the log every 5 s). No lost device in any of these runs. The 1080p run had a background `cargo` build during part of it, so its low points are pessimistic. 4K and 1080p numbers are not comparable with each other. Where the gain comes from (read from the per-frame lines): - Title buffers and shader-read windows kept on the card (`VICTORY_CARD_BUFFERS_MB=1536`, `VICTORY_CARD_WINDOWS_MB=1024`, `VICTORY_CARD_RESERVE_BUDGETS=1`): half the bytes copied up and fetched back. - Submissions prepared while the card works (`VICTORY_ASYNC_SUBMIT` thread, `VICTORY_RELAY=2`): Neptune's line shows 0 ms of GPU overlap, Vice-Tay's 15-21 ms. - Fewer submissions (`VICTORY_JOIN_PARTS`, `VICTORY_JOIN_COPIES`). - Threads Neptune lacks: list translation (`VICTORY_THIN`, 8 threads, ~112 ms of work in ~43 ms), landing (`VICTORY_LAND`, 4 threads, 25 ms in 7 ms), 3 pipeline workers. - The remaining limit at 4K is the single submission thread (42 ms of work for a 42-43 ms frame); at 1080p the card is at 77-96 %. ## Commits - `chore: move third_party/victory to the Vice-Tay base` (their tree without `.github`). - `feat(victory): AnyXboxX glue` — keyboard map and borderless window, xmem `EraFields`, xasync `XThread` slots (Vice-Tay already had its own async-status fix, kept). - `feat(victory): XG oracle` (`VICTORY_XG_DLL`, `VICTORY_XG_MODE`). - `feat(victory): Neptune overlay, auto-A and Discord` — overlay on by default (F10), figures in the log every 5 s; F12 screenshots not wired yet. - `feat(anyxboxx): tuned settings for the Vice-Tay base (4070 profile)` — `TUNED` is Vice-Tay's `play.ps1 -Machine 4070` set; launcher `windows-nvidia` profile, golden fixture and tests follow. `--dred` still wins over the tuned `VICTORY_D3D12_DRED=light`. - `docs: README headline for the Vice-Tay base`, `docs: credit the Vice-Tay base` (THIRD_PARTY.md, AGENTS.md), `test: launcher settings test reads the Vice-Tay golden set`. Also on this branch: - Rule 1 pruning: `victory-loader/src/{resolution,frame_rate,descriptor_sites}.rs` (from Vice-Tay, each off unless its variable is set) describe the title's own code beyond the sites they patch. Their comments are cut down to the patched sites' offsets, the original-byte checks and our replacement code (maintainer's decision: prune, keep the patches; `VICTORY_OUTPUT` is how runs are made in 1080p). - Frametime CSV dump (`VICTORY_FRAMETIME_DUMP`) ported from the Neptune base, so the launcher option keeps working. ## Points for review - XG: Vice-Tay computes 64 KiB tiling (slot 0x50) differently from Neptune, whose version was set against the real DLL; the oracle will report `64 KiB tiling differs` with `-XgDll`. Kept Vice-Tay's computation. - Launcher: `VICTORY_TEXTURE_MAX_SIZE` (8 GB / 12 GB presets) is not read by Vice-Tay; listed as an exception in the launcher test. - `docs/launcher.md` and `docs/fr/` still describe the Neptune settings (list pool, etc.): follow-up. - `VICTORY_OCEAN_READBACK` and `VICTORY_LIST_POOL_*` are dropped: Vice-Tay does not read them. ## Test plan - [x] `cargo build --release --workspace` - [x] `cargo test --release -p anyxboxx -p anyxboxx-launcher` (24 + 211) - [x] `cargo test --release -p victory-hle xg` (27), auto-A and Discord tests - [x] `python -m pytest` (1545 passed, 361 skipped) - [x] `python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools` - [x] `cargo xtask policy` in `third_party/victory` - [x] Game runs: Vice-Tay launcher at 4K, this branch at 1080p (Series X, warm cache) - [x] Rule 1 pruning (`7d1d05f1`, comments only: 63 title offsets down to the 5 patched sites; code and byte checks unchanged), frametime dump (`ef8ad65f`, 36 of 37 columns; `cpu_pct` left empty, not measured on this base) - [x] README (English and French): new headline, Full HD advice - [ ] A 10-minute 1080p run on this branch with nothing else running - [ ] CI 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chatgpt-codex-connector[bot] commented 2026-11-26 22:46:42 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T22:46:42Z.


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-26T22:46:37.246440Z
We couldn’t complete this review. Comment @codex review to try again.
a8f781e 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:7204976780 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/454#issuecomment-7204976780). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T22:46:42Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"a8f781e00d4e28a94b49c3bb92a7675dba33323c","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-26T22:46:37.246440Z">2026-11-26T22:46:37.246440Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `a8f781e` | 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 22:46:45 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T22:46:45Z.


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:7204977432 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/454#issuecomment-7204977432). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T22:46:45Z. --- 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).
akimfomin commented 2026-11-26 22:54:27 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by akimfomin on 2026-11-26T22:54:27Z.


On the proposed Vice-Tay base 5ac6926e59043c06317edbe012aee7e51e738cf7, two still-open fixes need a manual port: #433 conflicts in draw.rs, and #436 conflicts in texback.rs and its tests. PortBridge computed both three-way comparisons from the public Git trees.

For the next revision, I'd start with the #433 cut regression: the new list should read the latest constants while the old list retains its descriptors through completion. This is a compatibility check against #454's exact head. It makes no claim about performance or whether the receiving code already covers the behavior by a different route. Rerun with a PR URL and receiving SHA.

AI-assisted source comparison.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7205087487 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/454#issuecomment-7205087487). Originally posted by [akimfomin](https://github.com/akimfomin) on 2026-11-26T22:54:27Z. --- On the proposed Vice-Tay base `5ac6926e59043c06317edbe012aee7e51e738cf7`, two still-open fixes need a manual port: #433 conflicts in `draw.rs`, and #436 conflicts in `texback.rs` and its tests. PortBridge computed both three-way comparisons from the public Git trees. - [#433 at `3b56fa9`](https://github.com/LooperSalty/AnyXboxX/pull/433/commits/3b56fa946b35b933fb0c0255086758475f98f0e8) · [cut regression](https://github.com/LooperSalty/AnyXboxX/blob/3b56fa946b35b933fb0c0255086758475f98f0e8/third_party/victory/crates/victory-gpu/src/draw/cut_tables_tests.rs) - [#436 at `137dd15`](https://github.com/LooperSalty/AnyXboxX/pull/436/commits/137dd1522cc32f8f0f3cc057bc1cadcf61cf941b) · [Lewandox's new two-readback fence test](https://github.com/LooperSalty/AnyXboxX/pull/436#issuecomment-7205033607) For the next revision, I'd start with the #433 cut regression: the new list should read the latest constants while the old list retains its descriptors through completion. This is a compatibility check against #454's exact head. It makes no claim about performance or whether the receiving code already covers the behavior by a different route. [Rerun with a PR URL and receiving SHA](https://github.com/akimfomin/PortBridge/issues/98). AI-assisted source comparison.
mauroalvare commented 2026-11-26 23:09:48 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by mauroalvare on 2026-11-26T23:09:48Z.


@LooperSalty I compared the same 41 branch heads against both sides of #454. Thirty went from mergeable to conflicting, including #433, which Akim flagged before the merge. Those branches had just been repaired after #452.

The reported NVIDIA gain is a good reason to test Vice-Tay. Before the next base change, please share the exact receiving commit and the list of affected PRs, then give contributors time to review and test their ports on an integration branch. The conflict check is cheap enough to run before merging. Having contributors redo the same work after each base change is considerably more expensive.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7205307619 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/454#issuecomment-7205307619). Originally posted by [mauroalvare](https://github.com/mauroalvare) on 2026-11-26T23:09:48Z. --- @LooperSalty I compared the same 41 branch heads against both sides of #454. Thirty went from mergeable to conflicting, including #433, which Akim flagged before the merge. Those branches had just been repaired after #452. The reported NVIDIA gain is a good reason to test Vice-Tay. Before the next base change, please share the exact receiving commit and the list of affected PRs, then give contributors time to review and test their ports on an integration branch. The conflict check is cheap enough to run before merging. Having contributors redo the same work after each base change is considerably more expensive.
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!454
No description provided.