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

Manually merged
github merged 10 commits from gh-pr/454/head into gh-pr/454/base 2026-11-27 00:35:07 +00:00
Owner

@⁠LooperSalty on GitHub · 2026-11-26 22:46 UTC · original
LooperSalty:feat/victory-vicetay-base → main · +97338 −33178 · 282 files · 10 commits · merged 2026-11-26 23:07 UTC

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

**@⁠LooperSalty** on GitHub · 2026-11-26 22:46 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/454) `LooperSalty:feat/victory-vicetay-base` → `main` · +97338 −33178 · 282 files · 10 commits · merged 2026-11-26 23:07 UTC > [!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)
Vice-Tay (TaynanGT/Vice-Tay, GPL-3.0-or-later) at a252348, without its
.github folder. Measured on an RTX 4070 Super, Series X, warm cache: about
20 fps median in the world against 14.2 for the Neptune base, copies
5-7 ms / 56-64 MB a frame against 17-27 ms / 105-141 MB. The AnyXboxX glue
follows in the next commits.

Source: https://github.com/TaynanGT/Vice-Tay a252348
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Re-applies what main's VIctory had that Vice-Tay lacks, as on the earlier
combined base (596ea5d6): the keyboard map and borderless window
(VICTORY_KEYBOARD, VICTORY_WINDOW_MODE), xmem EraFields and the xasync
XThread slots the root crates need. Vice-Tay already has its own fix for
the async status race, so its version is kept; the dispatch-dump guard is
dropped with the dump, which Vice-Tay does not have.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ported from the Neptune base: xg_oracle.rs as is (plus a small env-mode parser with a test), hooks in xg.rs around Vice-Tay's own layout, copy and tiling code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Neptune base's performance overlay (FPS, 30 s high/low/average, draws,
CPU, GPU, RAM, VRAM, machine and build, F10 to hide), on by default
(VICTORY_OVERLAY=0 turns it off). It also writes its figures to the log
every 5 s, so a run can be read without the screen. F12 screenshots are
not wired on this base yet. Also VICTORY_AUTO_A (Enter a quarter of a
second in every four for that many seconds, used by anyxboxx run
--auto-a) and the Discord presence (VICTORY_DISCORD=1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
TUNED is now Vice-Tay's scripts/play.ps1 -Machine 4070 (not -Safe, windowed,
no panel), 26 variables in the script's order, including
VICTORY_D3D12_DRED=light and the wave-wide allowlist. --dred still sets the
full mode: base() pushes it after the tuned set, quality and overrides.
QUALITY drops the list pool variables Vice-Tay does not read; ALWAYS drops
VICTORY_OCEAN_READBACK (not read either). LINUX_AMD is unchanged.

New golden script tests/fixtures/lancer_victory_vicetay.ps1 (the Neptune one
stays, unused); the launcher's windows-nvidia profile mirrors the new set;
Rust and Python tests updated, plus DRED precedence tests.

Measured 2026-11-26 on an RTX 4070 SUPER + i7-13700KF, Series X, warm cache:
about 20 fps median in the world against 14.2 for the Neptune set.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The tuned set now carries Vice-Tay's light DRED (lists without markers,
part of the measured set): the test checks that only that DRED value is
tuned and never the XG library.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ported from the Neptune base (skornuta/victory-fork origin, see THIRD_PARTY.md): frametime.rs with its tests, the present hook, the one-second record, adapter_summary, and the app's dump path and build label.

Columns kept in Neptune's order. Filled from this base's one-second summary: all but cpu_pct. gpu_pct is gpu/ms as Neptune computes it; ram_mb is the working set from ram_sample; frame is crate::frame::current().
Empty on this base: cpu_pct (no process CPU-share measurement exists here; Row::cpu_pct is an Option and writes an empty cell, not 0).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rule 1 of AGENTS.md: the comments of resolution.rs, frame_rate.rs and descriptor_sites.rs (from Vice-Tay) described the title's own code beyond the sites we patch. They now keep the patched sites' offsets, the original-byte checks, our replacement code and what each setting does. No code changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both READMEs: the new base, what makes it faster, and how to force Full
HD (VICTORY_OUTPUT=1920x1080), which renders at 1280x720 inside instead
of 2560x1440.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:35:03 +00:00
github manually merged commit 5ac6926e59 into gh-pr/454/base 2026-11-27 00:35:07 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 22:46 UTC · original

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.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 22:46 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/454#issuecomment-7204976780) <!-- 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>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 22:46 UTC · original

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.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 22:46 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/454#issuecomment-7204977432) 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).
Author
Owner

@⁠akimfomin on GitHub · 2026-11-26 22:54 UTC · original

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.

**@⁠akimfomin** on GitHub · 2026-11-26 22:54 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/454#issuecomment-7205087487) 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://git.gtahub.st/github/LooperSalty--AnyXboxX/pulls/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://git.gtahub.st/github/LooperSalty--AnyXboxX/pulls/436/commits/137dd1522cc32f8f0f3cc057bc1cadcf61cf941b) · [Lewandox's new two-readback fence test](https://git.gtahub.st/github/LooperSalty--AnyXboxX/pulls/436) 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.
Author
Owner

@⁠mauroalvare on GitHub · 2026-11-26 23:09 UTC · original

@⁠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.

**@⁠mauroalvare** on GitHub · 2026-11-26 23:09 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/454#issuecomment-7205307619) @⁠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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.