feat: victory: fps ports from rorodev6 and the forks, behind VICTORY_* switches (-Fast launcher set) #234

Closed
github-bot wants to merge 14 commits from gh-pr/234/head into gh-pr/234/base
Owner

@⁠LooperSalty on GitHub · 2026-11-25 20:11 UTC · original
LooperSalty:feat/fps-rorodev → main · +2047 −48 · 15 files · 14 commits · closed without merging

Summary

Ports of the parts of rorodev6's and the fork's fps work that save time without changing the picture, plus the fork commits this branch builds on, behind VICTORY_* switches. Everything new is off by default; the launcher's -Fast switch turns on the measured-useful set. Nothing here has been measured in game yet except where stated.

Commits

Commit What Source
fa9e5b35, e4700a97 Series S upscaler stand-in (a pass of ours) shadowdog00/vi-pc-combo af62a99
16957d6e VICTORY_TEXTURE_BATCH=1: textures read in place together, several threads shadowdog00/vi-pc-combo 6f07e7b (hand port)
9ce6d1c5 Parallel copy refreshes on multicore hosts Trexies/victory-fork VIwork, via WillyboPeep/victory-all-forks 8422f48
ae114b90 VICTORY_COPY_COMPARE=1: refresh only changed 4 KiB pieces Trexies/victory-fork, all-forks 7ac7891 (author recorded as victory-local, no real identity)
ce0216c4 Split an unwatchable range instead of copying the whole buffer Trexies/victory-fork, all-forks 807a0d0 (author recorded as anonymous)
c20f10a7 VICTORY_INDIRECT_GATHER=1: scattered indirect records clamped once per list fxceless
778e3fec VICTORY_STAGING_DOUBLE=1 (off; see below) and the in-flight fix: a staging buffer dropped while a submission may read it is kept until that submission finishes, never pooled at once this repository
0840776f VICTORY_STAGING_BLOCKS=1: staging cut from 64 MiB upload blocks (ranges.rs); a buffer dropped mid-flight hands its range back only when its submissions finish shadowdog00/vi-pc-combo 0781f61, via rorodev6/victory
a4f807fa VICTORY_HEAP_PASS_DIRTY=1: the heap-buffer pass re-looks only at slots marked since its last pass (full sweep every 256 passes) ShakiraRED V1 c2271e5 (squash over Trexies VIwork)
3a3bb8ef Copy merge compares 32-byte chunks and skips equal ones (no switch; tested against the byte loop) ShakiraRED V1 c2271e5
28e91ccd tools/lancer_victory.ps1 -Fast: the measured set, never VICTORY_RELAY this repository
0770a070 THIRD_PARTY rows for the sources above -

The Trexies and ShakiraRED commits are squashes or re-applications; their author identities in the source repositories are placeholders or contributor-level, so they are recorded as found.

Measurements (honest labels)

  • Maintainer, RTX 4070 SUPER / i7-13700KF, Series S, 1280x720, world (earlier runs): rorodev6 build 10-11.6 fps, 86 ms/frame, GPU busy about 66 ms per frame. Ours with the four options (VICTORY_RELAY=2 etc.): 4.9 fps, 202 ms/frame; passes 61 -> 45 ms with VICTORY_CARD_REHASH_RUNS=1.
  • Analysis of the logs (measured counters, not a profiler): the gap is not GPU work (the card is busy about the same, 66-71 ms per frame in both). It is about 12 submissions a frame waiting for a staging buffer still in flight, roughly 60 ms a frame of settles under "title memory read". VICTORY_STAGING_BLOCKS and the in-flight fix address that path. This is an inference from counters, not yet confirmed by a run.
  • VICTORY_STAGING_DOUBLE=1 (fresh buffer instead of settling): regressed in Series X, 2.9 fps against about 5 (the fresh buffers are refreshed in full at first submission: 240 MB a frame). Kept off, not in -Fast. The in-flight safety fix in the same commit stays.
  • Not yet measured in game: VICTORY_STAGING_BLOCKS, VICTORY_HEAP_PASS_DIRTY, the chunked merge, and the default-on questions. All default off. Measure with -Fast and without, then decide defaults.

Test instructions (Series X, the maintainer's rule)

All game runs for this PR use the default console, Series X. Do not set VICTORY_DISPLAY_MODE and do not pass --console series-s.

# baseline (default options, Series X)
.\tools\lancer_victory.ps1 -GameDir <your game folder>
# faster set (adds VICTORY_CARD_REHASH_RUNS, INDIRECT_WINDOW, JOIN_COPIES, TEXTURE_BATCH, INDIRECT_GATHER, STAGING_BLOCKS, HEAP_PASS_DIRTY)
.\tools\lancer_victory.ps1 -GameDir <your game folder> -Fast

Compare the frame line (fps, ms/frame, passes, and the "staging buffers" and "heap buffers" lines). Check a cutscene screenshot for any difference from the baseline; a picture change is a bug in the port.

Left out (and why)

  • VICTORY_TITLE_CACHED (rorodev, vmem.rs, from 78e95de): about 230 lines in the HLE memory model; needs its own review.
  • VICTORY_TEXTURE_HEAPS (rorodev, the texture half of 0781f61, resource.rs): about 250 lines placing textures in heaps; separate change.
  • VICTORY_GROUPED_MESH_CLAMP (rorodev, the draw half of 31634e4): overlaps VICTORY_INDIRECT_GATHER, already ported from c20f10a7.
  • VICTORY_DEPTH_BOUNDS (rorodev, pipeline/host.rs, inside 4436f8f with 180 unrelated lines): not separable cleanly.
  • rorodev's STAGING_POOL variant: covered by VICTORY_STAGING_BLOCKS (rorodev's default is the block path).
  • From ShakiraRED c2271e5, deliberately not taken: VICTORY_COPY_PLAIN, low guards, ambient.

Known test issue

watch::tests::a_check_during_a_held_kernel_write_leaves_its_blocks_open is flaky (it also fails intermittently on the base commit; it passes alone). Not touched here.

Verification

  • cargo build --locked --profile diag -p victory --features diagnostics: ok, no warnings.
  • cargo test -p victory-gpu --features diagnostics --lib: 174 passed (the flaky test passed in this run).
  • cargo xtask policy: 185 files ok.
  • pytest (full): 1031 passed, 300 skipped.
  • ruff check --select W605,F,E9 PrototypeScarlett tests tools: clean.
  • Game was not run for these tests; the game and the in-game numbers above are the maintainer's.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz

**@⁠LooperSalty** on GitHub · 2026-11-25 20:11 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/234) `LooperSalty:feat/fps-rorodev` → `main` · +2047 −48 · 15 files · 14 commits · closed without merging ## Summary Ports of the parts of rorodev6's and the fork's fps work that save time without changing the picture, plus the fork commits this branch builds on, behind `VICTORY_*` switches. Everything new is **off by default**; the launcher's `-Fast` switch turns on the measured-useful set. Nothing here has been measured in game yet except where stated. ## Commits | Commit | What | Source | | --- | --- | --- | | fa9e5b35, e4700a97 | Series S upscaler stand-in (a pass of ours) | shadowdog00/vi-pc-combo af62a99 | | 16957d6e | `VICTORY_TEXTURE_BATCH=1`: textures read in place together, several threads | shadowdog00/vi-pc-combo 6f07e7b (hand port) | | 9ce6d1c5 | Parallel copy refreshes on multicore hosts | Trexies/victory-fork VIwork, via WillyboPeep/victory-all-forks 8422f48 | | ae114b90 | `VICTORY_COPY_COMPARE=1`: refresh only changed 4 KiB pieces | Trexies/victory-fork, all-forks 7ac7891 (author recorded as victory-local, no real identity) | | ce0216c4 | Split an unwatchable range instead of copying the whole buffer | Trexies/victory-fork, all-forks 807a0d0 (author recorded as anonymous) | | c20f10a7 | `VICTORY_INDIRECT_GATHER=1`: scattered indirect records clamped once per list | fxceless | | 778e3fec | `VICTORY_STAGING_DOUBLE=1` (off; see below) and the in-flight fix: a staging buffer dropped while a submission may read it is kept until that submission finishes, never pooled at once | this repository | | 0840776f | `VICTORY_STAGING_BLOCKS=1`: staging cut from 64 MiB upload blocks (`ranges.rs`); a buffer dropped mid-flight hands its range back only when its submissions finish | shadowdog00/vi-pc-combo 0781f61, via rorodev6/victory | | a4f807fa | `VICTORY_HEAP_PASS_DIRTY=1`: the heap-buffer pass re-looks only at slots marked since its last pass (full sweep every 256 passes) | ShakiraRED V1 c2271e5 (squash over Trexies VIwork) | | 3a3bb8ef | Copy merge compares 32-byte chunks and skips equal ones (no switch; tested against the byte loop) | ShakiraRED V1 c2271e5 | | 28e91ccd | `tools/lancer_victory.ps1 -Fast`: the measured set, never `VICTORY_RELAY` | this repository | | 0770a070 | THIRD_PARTY rows for the sources above | - | The Trexies and ShakiraRED commits are squashes or re-applications; their author identities in the source repositories are placeholders or contributor-level, so they are recorded as found. ## Measurements (honest labels) - Maintainer, RTX 4070 SUPER / i7-13700KF, **Series S**, 1280x720, world (earlier runs): rorodev6 build 10-11.6 fps, 86 ms/frame, GPU busy about 66 ms per frame. Ours with the four options (`VICTORY_RELAY=2` etc.): 4.9 fps, 202 ms/frame; passes 61 -> 45 ms with `VICTORY_CARD_REHASH_RUNS=1`. - Analysis of the logs (measured counters, not a profiler): the gap is not GPU work (the card is busy about the same, 66-71 ms per frame in both). It is about 12 submissions a frame waiting for a staging buffer still in flight, roughly 60 ms a frame of settles under "title memory read". `VICTORY_STAGING_BLOCKS` and the in-flight fix address that path. This is an inference from counters, not yet confirmed by a run. - `VICTORY_STAGING_DOUBLE=1` (fresh buffer instead of settling): **regressed in Series X, 2.9 fps against about 5** (the fresh buffers are refreshed in full at first submission: 240 MB a frame). Kept off, not in `-Fast`. The in-flight safety fix in the same commit stays. - **Not yet measured in game:** `VICTORY_STAGING_BLOCKS`, `VICTORY_HEAP_PASS_DIRTY`, the chunked merge, and the default-on questions. All default off. Measure with `-Fast` and without, then decide defaults. ## Test instructions (Series X, the maintainer's rule) All game runs for this PR use the default console, Series X. Do **not** set `VICTORY_DISPLAY_MODE` and do not pass `--console series-s`. ```powershell # baseline (default options, Series X) .\tools\lancer_victory.ps1 -GameDir <your game folder> # faster set (adds VICTORY_CARD_REHASH_RUNS, INDIRECT_WINDOW, JOIN_COPIES, TEXTURE_BATCH, INDIRECT_GATHER, STAGING_BLOCKS, HEAP_PASS_DIRTY) .\tools\lancer_victory.ps1 -GameDir <your game folder> -Fast ``` Compare the frame line (`fps`, `ms/frame`, `passes`, and the "staging buffers" and "heap buffers" lines). Check a cutscene screenshot for any difference from the baseline; a picture change is a bug in the port. ## Left out (and why) - `VICTORY_TITLE_CACHED` (rorodev, `vmem.rs`, from 78e95de): about 230 lines in the HLE memory model; needs its own review. - `VICTORY_TEXTURE_HEAPS` (rorodev, the texture half of 0781f61, `resource.rs`): about 250 lines placing textures in heaps; separate change. - `VICTORY_GROUPED_MESH_CLAMP` (rorodev, the draw half of 31634e4): overlaps `VICTORY_INDIRECT_GATHER`, already ported from c20f10a7. - `VICTORY_DEPTH_BOUNDS` (rorodev, `pipeline/host.rs`, inside 4436f8f with 180 unrelated lines): not separable cleanly. - rorodev's `STAGING_POOL` variant: covered by `VICTORY_STAGING_BLOCKS` (rorodev's default is the block path). - From ShakiraRED c2271e5, deliberately not taken: `VICTORY_COPY_PLAIN`, low guards, ambient. ## Known test issue `watch::tests::a_check_during_a_held_kernel_write_leaves_its_blocks_open` is flaky (it also fails intermittently on the base commit; it passes alone). Not touched here. ## Verification - `cargo build --locked --profile diag -p victory --features diagnostics`: ok, no warnings. - `cargo test -p victory-gpu --features diagnostics --lib`: 174 passed (the flaky test passed in this run). - `cargo xtask policy`: 185 files ok. - `pytest` (full): 1031 passed, 300 skipped. - `ruff check --select W605,F,E9 PrototypeScarlett tests tools`: clean. - Game was not run for these tests; the game and the in-game numbers above are the maintainer's. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz
As Series S the title renders 1280x720 and has AMD's upscaler make the
1920x1080 picture. Its passes are console-compiled programs the translator
does not read, so the output stayed black (ss_try4). The runtime now hands
the title's lookup of the upscaler's ffxDispatch a function of ours: an
upscale dispatch becomes one pass that draws the colour input over the
output with linear filtering, after which the title's state is set again
on the list. Other dispatches go to the upscaler as before.
VICTORY_UPSCALE=title leaves the upscaler alone.

ss_up1 (Series S): the opening cutscene shows, 88-146 ms a frame (286-420
as Series X in batch_try1), no device errors. Faces are lit. Hair is
missing and the picture is softer than the upscaler's would be.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit af62a9942b6674b439b0c3143d1f283c344d8a8f)
recording_list (a mesh list, absent here) becomes host_list; the unused
export host_adapter is removed.

Source: shadowdog00/vi-pc-combo af62a99
Co-authored-by: shadowdog00 <[email protected]>

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LwHrL4tW8PW9t9yQ4GbErX
At submission each refresh alone waited for the end of a runtime remap
(95% of the textures step in the opening cutscene). With
VICTORY_TEXTURE_BATCH=1 the refreshes of a list first ask the write watch
and the guards, then hold the title's memory still once and hash/detile on
up to 12 threads. Off by default; no effect with VICTORY_TEXTURE_NO_WAIT=1.
Hand port of shadowdog00's 6f07e7b onto our refresh (guard, views, no_wait).

Source: shadowdog00/vi-pc-combo 6f07e7b
Co-authored-by: shadowdog00 <[email protected]>

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz
Source: Trexies/victory-fork VIwork via WillyboPeep/victory-all-forks 8422f48
Co-authored-by: spacede <[email protected]>

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 2d97d669f40517a16af284f51e5a04b31a3dc80f)
Source: Trexies/victory-fork VIwork via WillyboPeep/victory-all-forks 7ac7891
Co-authored-by: victory-local <[email protected]>

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit dd63bbd3930a5acace12810248e98f5bc9e42b89)
Source: Trexies/victory-fork VIwork via WillyboPeep/victory-all-forks 807a0d0
Co-authored-by: anonymous <[email protected]>

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit f1bdcd6a9c062a9d318296a221daa77ff3d26809)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz
A single indirect record that misses its window gets a slot that the list's
prelude fills in one clamp pass by a table of offsets, instead of a compute
pass of ours in front of its draw. Gathering ends at a dispatch or at a draw
whose shaders can store to buffers. Off by default; needs
VICTORY_INDIRECT_WINDOW=1. Manual port: our clamp shader uses bit 3 of
has_count for gathered records (bit 2 is our dispatch split), and the
diagnostics counters, window check and card meter of the source are left out.

Source: fxceless/victory-fork 465b94f
Co-authored-by: fxceless <[email protected]>

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A texture whose staging buffer a list or a flight still holds was
recorded into again, so the submission settled (waited for the card)
for it: about 12 settles and 60 ms a frame in the world. With the switch
a fresh buffer takes the texture's place for the list recording it; the
old one lives on with its holders. Reuse needs no holder besides the map
and no unfinished submission on the buffer (texture::reusable).

Also: a staging buffer dropped while a submission may still read it is
kept alive through host::retire and never pooled (it was pooled at once,
which VICTORY_STAGING_POOL_MB would turn into a race).

Frame line: staging buffers (VICTORY_STAGING_DOUBLE) counts fresh
buffers made while busy, their bytes, submissions that still settled for
a staging buffer in flight, and buffers kept until their submissions
finished.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz
Staging buffers were a committed upload buffer per texture, about 0.5 ms
each and 1,000-2,200 a frame in the opening cutscene. With
VICTORY_STAGING_BLOCKS=1 they are pieces of 64 MiB upload blocks, cut
on 4 KiB grain by ranges.rs. A piece goes back to its block when its
staging buffer is dropped; a buffer dropped while a submission may still
read it hands its piece to host::retire, so the range is reused only
after that submission has finished. Off by default.

Also: a staging buffer dropped while a submission may still read it is
no longer pooled at once (VICTORY_STAGING_POOL_MB), which was a race.

Frame line: staging buffers count pieces cut from blocks and the fresh
buffers of VICTORY_STAGING_DOUBLE.

Source: shadowdog00/vi-pc-combo 0781f61 (via rorodev6/victory)
Co-authored-by: shadowdog00 <[email protected]>

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz
The pass over the heap's buffer views re-looked at every view (81,000
in the world) every 16 passes. With VICTORY_HEAP_PASS_DIRTY=1 a slot is
looked at again only when its buffer view was written or went, when the
title released the resource its record named (descriptor::forget), when
its 12-byte record in title memory changed, or when it found no host
copy (every 16 passes). Every 256 passes all slots are looked at again as
a safety net. The spans of host copies are worked out again only for
copies whose slots went. Off by default; the old pass stays the default.

Source: ShakiraRED V1 c2271e5 (reddxd-byte/ShakiraRED-dt, a squash over Trexies/victory-fork VIwork)
Co-authored-by: ShakiraRED contributors <[email protected]>

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz
merge_piece walked every byte of a fetched copy against the held copy
and the title's. It now skips 32-byte chunks equal to the held copy and
handles the bytes of the others one by one, as before. The output is the
same: a test checks it against the byte loop on lengths around the chunk
size. Pure CPU; no change to what is drawn.

Source: ShakiraRED V1 c2271e5 (reddxd-byte/ShakiraRED-dt, a squash over Trexies/victory-fork VIwork)
Co-authored-by: ShakiraRED contributors <[email protected]>

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz
-Fast sets VICTORY_CARD_REHASH_RUNS, VICTORY_INDIRECT_WINDOW,
VICTORY_JOIN_COPIES, VICTORY_TEXTURE_BATCH, VICTORY_INDIRECT_GATHER,
VICTORY_STAGING_BLOCKS and VICTORY_HEAP_PASS_DIRTY. It never sets
VICTORY_RELAY (fork issue #89) nor VICTORY_STAGING_DOUBLE (regressed in
Series X: 2.9 fps against about 5). The default launch is unchanged until
game runs confirm the set. The tests check each variable is read by
VIctory and that the fake launch sees the switches only with -Fast.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz
Rows for shadowdog00/vi-pc-combo (staging blocks, via rorodev6/victory),
Trexies/victory-fork via WillyboPeep/victory-all-forks (parallel copy
refresh, COPY_COMPARE, unwatchable ranges) and ShakiraRED-dt c2271e5
(heap pass, chunked merge).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:39:06 +00:00
github-bot closed this pull request 2026-11-26 05:39:06 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 20:12 UTC · original · edited 2026-11-25 20:15 UTC

Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T20:15:25.283866Z 0770a07 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-25 20:12 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/234#issuecomment-7173326610) · edited 2026-11-25 20:15 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"0770a070d70eb0de0121ce1bcec7844646cad950","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-25T20:15:25.283866Z">2026-11-25T20:15:25.283866Z</relative-time> | `0770a07` | 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

@⁠LooperSalty on GitHub · 2026-11-25 20:39 UTC · original

Superseded: our VIctory base moves to Neptune (VIctory Edit.) 2026-11-25c in a new PR, which measured ~12.5 fps median in the world in Series X on the maintainer's RTX 4070 SUPER (this branch: ~3.8 fps, still rising, in a short run). Closed at the maintainer's request.

**@⁠LooperSalty** on GitHub · 2026-11-25 20:39 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/234#issuecomment-7173999445) Superseded: our VIctory base moves to Neptune (VIctory Edit.) 2026-11-25c in a new PR, which measured ~12.5 fps median in the world in Series X on the maintainer's RTX 4070 SUPER (this branch: ~3.8 fps, still rising, in a short run). Closed at the maintainer's request.
@ -4971,0 +5192,4 @@
self.list.ResourceBarrier(&[transition(
&set.scratch,
D3D12_RESOURCE_STATE_INDIRECT_ARGUMENT,
D3D12_RESOURCE_STATE_COMMON,
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 20:15 UTC · original

P1 Badge Keep gathered scratch buffers in one consistent resource state

With VICTORY_INDIRECT_GATHER=1 (including the launcher's -Fast set), State::indirect still calls crate::indirect::done(list, &bounded) after each gathered draw, explicitly transitioning its scratch buffer from INDIRECT_ARGUMENT to COMMON. This additional transition at list close therefore declares an incorrect before-state after the final draw. The gathered path needs separate state handling: either retain INDIRECT_ARGUMENT until this closing barrier or avoid emitting the redundant barrier. Otherwise the new path records invalid D3D12 resource transitions.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 20:15 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/234#discussion_r4700335703) **<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Keep gathered scratch buffers in one consistent resource state** With `VICTORY_INDIRECT_GATHER=1` (including the launcher's `-Fast` set), `State::indirect` still calls `crate::indirect::done(list, &bounded)` after each gathered draw, explicitly transitioning its scratch buffer from `INDIRECT_ARGUMENT` to `COMMON`. This additional transition at list close therefore declares an incorrect before-state after the final draw. The gathered path needs separate state handling: either retain `INDIRECT_ARGUMENT` until this closing barrier or avoid emitting the redundant barrier. Otherwise the new path records invalid D3D12 resource transitions. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
@ -2467,0 +2550,4 @@
let mid = ((from + to) / 2) & !(PAGE - 1);
if mid > from && mid < to {
let left = self.update_free(from, mid);
return left + self.update_free(mid, to);
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 20:15 UTC · original

P2 Badge Remember ranges that cannot be write-watched

For committed memory that has neither write-watch nor view guards, every recursive watch::writes call returns None. This now splits the entire range down to 64 KiB pieces, but those leaves never set NOT_WATCHED, so the complete failed-query tree is repeated on every refresh. For example, a 64 MiB unwatchable buffer incurs 2,047 watch/guard attempts per refresh instead of the previous one-time failure followed by a direct copy. Cache unwatchable pieces or distinguish wholly unwatchable allocations from ranges crossing reservation boundaries so this default-on change does not turn ordinary buffer refreshes into thousands of kernel queries.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 20:15 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/234#discussion_r4700335713) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Remember ranges that cannot be write-watched** For committed memory that has neither write-watch nor view guards, every recursive `watch::writes` call returns `None`. This now splits the entire range down to 64 KiB pieces, but those leaves never set `NOT_WATCHED`, so the complete failed-query tree is repeated on every refresh. For example, a 64 MiB unwatchable buffer incurs 2,047 watch/guard attempts per refresh instead of the previous one-time failure followed by a direct copy. Cache unwatchable pieces or distinguish wholly unwatchable allocations from ranges crossing reservation boundaries so this default-on change does not turn ordinary buffer refreshes into thousands of kernel queries. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
@ -0,0 +37,4 @@
if std::env::var_os("VICTORY_UPSCALE").is_some_and(|v| v == "title") {
return original;
}
ORIGINAL.store(original, Relaxed);
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 20:15 UTC · original

P1 Badge Add regression coverage for the new upscaler interception

The new upscaler interception is enabled by default, parses a dispatch description using fixed byte offsets, and substitutes a new GPU pass, but the commit adds no test exercising that behavior. The existing internal-HLSL compilation test also omits UPSCALE; the launcher tests merely check the DLL filename. Add synthetic dispatch-description tests covering interception and fallback, plus compilation or WARP coverage of the replacement pass. This is required by the repository's explicit rule that new behavior include a test that fails without it.

AGENTS.md reference: AGENTS.md:L54-L54

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 20:15 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/234#discussion_r4700335727) **<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Add regression coverage for the new upscaler interception** The new upscaler interception is enabled by default, parses a dispatch description using fixed byte offsets, and substitutes a new GPU pass, but the commit adds no test exercising that behavior. The existing internal-HLSL compilation test also omits `UPSCALE`; the launcher tests merely check the DLL filename. Add synthetic dispatch-description tests covering interception and fallback, plus compilation or WARP coverage of the replacement pass. This is required by the repository's explicit rule that new behavior include a test that fails without it. AGENTS.md reference: [AGENTS.md:L54-L54](https://github.com/LooperSalty/AnyXboxX/blob/0770a070d70eb0de0121ce1bcec7844646cad950/AGENTS.md#L54-L54) Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
@ -49,1 +49,4 @@
| [rorodev6/victory](https://github.com/rorodev6/victory) (rorodev6) | GPL-3.0 ou ultérieure | | Compteur de fps en haut à gauche (`fps_overlay.rs`, commit `4ddc0c1`), porté avec une taille réglable (`VICTORY_FPS_OVERLAY_SIZE`) |
| [shadowdog00/vi-pc-combo](https://github.com/shadowdog00/vi-pc-combo) (shadowdog00) | GPL-3.0 ou ultérieure | | Stand-in de l'upscaler du titre en Series S (`upscale.rs`, `af62a99`) ; lecture groupée des textures sur place sur plusieurs threads (`6f07e7b`, portage à la main, `VICTORY_TEXTURE_BATCH=1`) ; staging découpé dans des blocs de 64 Mio (`ranges.rs`, `0781f61`, `VICTORY_STAGING_BLOCKS=1`, repris via [rorodev6/victory](https://github.com/rorodev6/victory)) |
| [Trexies/victory-fork](https://github.com/Trexies/victory-fork) (branche VIwork), repris via [WillyboPeep/victory-all-forks](https://github.com/WillyboPeep/victory-all-forks) (`all-forks`) | GPL-3.0 ou ultérieure (licence du fork, à confirmer par son auteur) | | Copies de rafraîchissement en parallèle sur les machines multicœurs (`9ce6d1c5`, source `8422f48`, auteur spacede) ; `VICTORY_COPY_COMPARE=1` (`ae114b90`, source `7ac7891`, auteur inscrit victory-local, faute d'identité réelle) ; découpe d'une plage non surveillée (`ce0216c4`, source `807a0d0`, auteur inscrit anonymous) |
| [reddxd-byte/ShakiraRED-dt](https://github.com/reddxd-byte/ShakiraRED-dt) (commit `c2271e5`, squash de la branche VIwork de Trexies) | GPL-3.0 ou ultérieure | | Passe du heap à lignes sales (`heap_pass.rs`, `VICTORY_HEAP_PASS_DIRTY=1`, désactivée par défaut) et comparaison de fusion de copies par blocs de 32 octets (`shadow.rs`, `merge_piece`, sans changement de rendu : testée contre la boucle d'octets) |
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 20:15 UTC · original

P1 Badge Preserve the required source-author trailers for the ports

These rows document code imported from other repositories, but reviewed commit 5dfdf53 contains neither the required Source: trailer nor any Co-authored-by: trailer crediting the source authors. Its summary table identifies repositories and commits, but does not preserve the author attribution required by AGENTS.md rule 10. Retain the required source and author trailers when consolidating these ports; updating THIRD_PARTY.md satisfies only the separate sources-table requirement.

AGENTS.md reference: AGENTS.md:L59-L59

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 20:15 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/234#discussion_r4700335733) **<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Preserve the required source-author trailers for the ports** These rows document code imported from other repositories, but reviewed commit `5dfdf53` contains neither the required `Source:` trailer nor any `Co-authored-by:` trailer crediting the source authors. Its summary table identifies repositories and commits, but does not preserve the author attribution required by `AGENTS.md` rule 10. Retain the required source and author trailers when consolidating these ports; updating `THIRD_PARTY.md` satisfies only the separate sources-table requirement. AGENTS.md reference: [AGENTS.md:L59-L59](https://github.com/LooperSalty/AnyXboxX/blob/0770a070d70eb0de0121ce1bcec7844646cad950/AGENTS.md#L59-L59) Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 20:15 UTC · original · reviewed

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0770a070d7

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 20:15 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/234#pullrequestreview-6064320137) · **reviewed** <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `0770a070d7` <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". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback". </details>

Pull request closed

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