perf(gpu): port lazy GPU->CPU copy-back v2, O(dirty) CopiedPages, AVX2 SIMD & telemetry #357

Closed
github-bot wants to merge 2 commits from github-bot/gh-357 into main AGit
Owner

@⁠Vladimir-Human on GitHub · 2026-11-26 12:29 UTC · original
Vladimir-Human:perf/lazy-copyback-and-simd → main · +8381 −161 · 8 files · 2 commits · closed without merging

Ports the lazy GPU->CPU copy-back v2 engine, O(dirty) CopiedPages, AVX2 diff/merge SIMD paths, and per-frame lazy copy-back telemetry from fxceless/victory-fork#1178, adapted cleanly for LooperSalty/AnyXboxX while preserving all Neptune features (RwLock guards, VICTORY_WATCH_4K=1, windowup transient buffers, VICTORY_WINDOW_REBAR, VICTORY_QUIET_BACK, VICTORY_INFLIGHT_FETCH, VICTORY_RELAY_OWN_QUEUE).

Summary of Changes

  • Opt-in Lazy GPU->CPU Copy-Back (VICTORY_LAZY_COPYBACK=1, default off — shadow.rs, host.rs, watch.rs, inplace.rs, xmem.rs, lib.rs):
    • Defers GPU->CPU readback of eligible GPU-written 64 KiB pages across card_back, relay_card_back (both pieces and kept for VICTORY_RELAY_OWN_QUEUE), relay_card_inflight (VICTORY_INFLIGHT_FETCH), and relay_hand_back, materializing on demand via VEH only for pages the title CPU actually touches.
    • Explicitly excludes window, rebar, transient(), and in-place shadows (place.is_some() || window || rebar || transient() || data.is_null()).
    • Self-bypass & coalesced protection: internal layer reads (host::copy_mapped(!title_dst), host::read_into) service deferred pages directly from VRAM via lock-free LazyAccessHold + lazy_read_bypass on a dedicated D3D12_COMMAND_LIST_TYPE_COPY queue (zero VEH faults, zero VirtualProtect churn); host::copy_mapped(title_dst) and host::write_mapped flush+hold before writing; inplace::write_section_own reuses ALIASES persistent whole-section views for tear-free MEM_MAPPED materialization; contiguous runs coalesce into one VirtualQuery-clipped VirtualProtect per uniform region; lock-free 2-level LAZY_MAPPED_VIEW bitset keeps steady-state MEM_MAPPED watch::known_view / watch::guard refreshes lock-free.
    • Coherence & D3D12 multi-engine safety: xmem::write_physical and xmem::page_window flush+hold shown pages via kernel_will_write_hold outside physical() BEFORE physical mutation (preserving partial-page GPU complements and preventing post-write kernel_will_write clobber); watch::written_through_view and watch::title_memory_written release deferred pages safely; watch::views_mapped flushes existing deferred aliases unconditionally before opening guards; lazy_submit_gpu_guard() serializes Host::submit ExecuteCommandLists + Signal + submitted_fence + note_write_fence (late & sync) against COPY-queue readbacks (dropped before any WaitForSingleObject, zero cost when inactive).
  • O(dirty) CopiedPages & AVX2 SIMD (shadow.rs):
    • Upgrades Shadow::copied to CopiedPages (SmallRuns + 64-page uncopied_bits O(dirty) plan_stale / plan_stale_filtered, preserving VICTORY_WATCH_4K=1 stale_mask/note_4k/extend_runs).
    • Adds AVX2 first_difference, last_difference, merge_piece (with equal-vector fast path), merge_sync_card, wc_sfence, copy_from_wc, and slices_equal_wc.
  • Per-Frame Telemetry (frametime.rs, host.rs, shadow.rs):
    • Adds 6 columns to frametime.rs CSV (lazy_deferred_pages, lazy_veh_faults, lazy_self_bypass_hits, lazy_bytes_readback, lazy_materialize_ms, lazy_protect_ms) and per-window Meter::frame logging when VICTORY_LAZY_COPYBACK=1 is active.
  • Regression & Benchmark Suite (shadow_lazy_tests.rs):
    • 26 unit/GPU/stress tests (kept in a separate module file so all .rs files remain well under the 512 KiB policy limit) + 2 --ignored hardware benchmarks.

Verification

  • cargo run -p xtask -- policy --staged: ok (200 files ok, all files < 512 KiB)
  • cargo clippy -p victory-gpu -p victory-hle --all-targets (default & --all-features): 0 warnings in touched/added lines
  • VICTORY_D3D12_DEBUG=1 (0 D3D12 debug errors):
    • victory-gpu shadow (default): 59 passed; 0 failed; 2 ignored
    • victory-gpu shadow::lazy_and_simd_tests (--all-features): 26 passed; 0 failed; 2 ignored
    • victory-gpu watch: 15/15, frametime: 1/1, inplace: 6/6
    • victory-hle xmem: 14/14
    • Full victory-gpu lib (skipping only the 3 pre-existing c4c93bd baseline failures): 207 passed; 0 failed (default), 220 passed; 0 failed (--features diagnostics)
  • Hardware --release benchmarks:
    • bench_lazy_copyback (64 MiB GPU-written carded VRAM):
      • 0% CPU reads: 39.258 -> 1.225 ms/f (32.05x, readback 64.00 -> 0.00 MB/f, 0.0 VEH faults)
      • 0.3% CPU + 10% layer reads: 40.198 -> 8.861 ms/f (4.54x, readback 64.00 -> 0.19 MB/f, 3.0 VEH faults, 100.0 self-bypass hits, 0.02 ms protect)
      • 2% sparse CPU reads: 38.860 -> 4.358 ms/f (8.92x, readback 64.00 -> 1.25 MB/f, 20.0 VEH faults)
    • bench_shadow_and_rebar: plan_stale (160 MiB, 4 dirty) 11.3 ns/call; 64 MiB SIMD first+last 0.40 ms (168.3 GB/s), merge_piece 4.63 ms, merge_sync_card 6.03 ms, changed_runs 5.52 ms.
**@⁠Vladimir-Human** on GitHub · 2026-11-26 12:29 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/357) `Vladimir-Human:perf/lazy-copyback-and-simd` → `main` · +8381 −161 · 8 files · 2 commits · closed without merging Ports the lazy GPU->CPU copy-back v2 engine, O(dirty) `CopiedPages`, AVX2 diff/merge SIMD paths, and per-frame lazy copy-back telemetry from `fxceless/victory-fork#1178`, adapted cleanly for `LooperSalty/AnyXboxX` while preserving all Neptune features (`RwLock` guards, `VICTORY_WATCH_4K=1`, `windowup` transient buffers, `VICTORY_WINDOW_REBAR`, `VICTORY_QUIET_BACK`, `VICTORY_INFLIGHT_FETCH`, `VICTORY_RELAY_OWN_QUEUE`). ## Summary of Changes - **Opt-in Lazy GPU->CPU Copy-Back (`VICTORY_LAZY_COPYBACK=1`, default off — `shadow.rs`, `host.rs`, `watch.rs`, `inplace.rs`, `xmem.rs`, `lib.rs`):** - Defers GPU->CPU readback of eligible GPU-written 64 KiB pages across `card_back`, `relay_card_back` (both `pieces` and `kept` for `VICTORY_RELAY_OWN_QUEUE`), `relay_card_inflight` (`VICTORY_INFLIGHT_FETCH`), and `relay_hand_back`, materializing on demand via VEH only for pages the title CPU actually touches. - Explicitly excludes `window`, `rebar`, `transient()`, and in-place shadows (`place.is_some() || window || rebar || transient() || data.is_null()`). - **Self-bypass & coalesced protection:** internal layer reads (`host::copy_mapped(!title_dst)`, `host::read_into`) service deferred pages directly from VRAM via lock-free `LazyAccessHold` + `lazy_read_bypass` on a dedicated `D3D12_COMMAND_LIST_TYPE_COPY` queue (zero VEH faults, zero `VirtualProtect` churn); `host::copy_mapped(title_dst)` and `host::write_mapped` flush+hold before writing; `inplace::write_section_own` reuses `ALIASES` persistent whole-section views for tear-free `MEM_MAPPED` materialization; contiguous runs coalesce into one `VirtualQuery`-clipped `VirtualProtect` per uniform region; lock-free 2-level `LAZY_MAPPED_VIEW` bitset keeps steady-state `MEM_MAPPED` `watch::known_view` / `watch::guard` refreshes lock-free. - **Coherence & D3D12 multi-engine safety:** `xmem::write_physical` and `xmem::page_window` flush+hold shown pages via `kernel_will_write_hold` outside `physical()` BEFORE physical mutation (preserving partial-page GPU complements and preventing post-write `kernel_will_write` clobber); `watch::written_through_view` and `watch::title_memory_written` release deferred pages safely; `watch::views_mapped` flushes existing deferred aliases unconditionally before opening guards; `lazy_submit_gpu_guard()` serializes `Host::submit` `ExecuteCommandLists` + `Signal` + `submitted_fence` + `note_write_fence` (late & sync) against `COPY`-queue readbacks (dropped before any `WaitForSingleObject`, zero cost when inactive). - **O(dirty) `CopiedPages` & AVX2 SIMD (`shadow.rs`):** - Upgrades `Shadow::copied` to `CopiedPages` (`SmallRuns` + 64-page `uncopied_bits` O(dirty) `plan_stale` / `plan_stale_filtered`, preserving `VICTORY_WATCH_4K=1` `stale_mask`/`note_4k`/`extend_runs`). - Adds AVX2 `first_difference`, `last_difference`, `merge_piece` (with equal-vector fast path), `merge_sync_card`, `wc_sfence`, `copy_from_wc`, and `slices_equal_wc`. - **Per-Frame Telemetry (`frametime.rs`, `host.rs`, `shadow.rs`):** - Adds 6 columns to `frametime.rs` CSV (`lazy_deferred_pages`, `lazy_veh_faults`, `lazy_self_bypass_hits`, `lazy_bytes_readback`, `lazy_materialize_ms`, `lazy_protect_ms`) and per-window `Meter::frame` logging when `VICTORY_LAZY_COPYBACK=1` is active. - **Regression & Benchmark Suite (`shadow_lazy_tests.rs`):** - 26 unit/GPU/stress tests (kept in a separate module file so all `.rs` files remain well under the 512 KiB policy limit) + 2 `--ignored` hardware benchmarks. ## Verification - `cargo run -p xtask -- policy --staged`: **ok** (`200 files ok`, all files `< 512 KiB`) - `cargo clippy -p victory-gpu -p victory-hle --all-targets` (default & `--all-features`): **0 warnings** in touched/added lines - `VICTORY_D3D12_DEBUG=1` (0 D3D12 debug errors): - `victory-gpu` `shadow` (default): **59 passed; 0 failed; 2 ignored** - `victory-gpu` `shadow::lazy_and_simd_tests` (`--all-features`): **26 passed; 0 failed; 2 ignored** - `victory-gpu` `watch`: **15/15**, `frametime`: **1/1**, `inplace`: **6/6** - `victory-hle` `xmem`: **14/14** - Full `victory-gpu` lib (skipping only the 3 pre-existing `c4c93bd` baseline failures): **207 passed; 0 failed** (default), **220 passed; 0 failed** (`--features diagnostics`) - Hardware `--release` benchmarks: - `bench_lazy_copyback` (64 MiB GPU-written carded VRAM): - `0% CPU reads`: `39.258 -> 1.225 ms/f` (**32.05x**, readback `64.00 -> 0.00 MB/f`, `0.0` VEH faults) - `0.3% CPU + 10% layer reads`: `40.198 -> 8.861 ms/f` (**4.54x**, readback `64.00 -> 0.19 MB/f`, `3.0` VEH faults, `100.0` self-bypass hits, `0.02 ms` protect) - `2% sparse CPU reads`: `38.860 -> 4.358 ms/f` (**8.92x**, readback `64.00 -> 1.25 MB/f`, `20.0` VEH faults) - `bench_shadow_and_rebar`: `plan_stale` (160 MiB, 4 dirty) `11.3 ns/call`; 64 MiB SIMD `first+last 0.40 ms` (`168.3 GB/s`), `merge_piece 4.63 ms`, `merge_sync_card 6.03 ms`, `changed_runs 5.52 ms`.
Ports the verified lazy copy-back v2 engine, O(dirty) stale-page planning,
AVX2 diff/merge SIMD paths, and per-frame diagnostic telemetry from
fxceless/victory-fork#1178, adapted to AnyXboxX's Neptune architecture:

- Opt-in lazy GPU->CPU copy-back (`VICTORY_LAZY_COPYBACK=1`, default off):
  keeps eligible GPU-written 64 KiB pages GPU-resident (`PAGE_NOACCESS`)
  across `card_back`, `relay_card_back` (including `VICTORY_RELAY_OWN_QUEUE`),
  `relay_card_inflight` (`VICTORY_INFLIGHT_FETCH`), and `relay_hand_back`,
  explicitly excluding `window`, `rebar`, `transient()`, and in-place shadows.
- Zero self-faults & coalesced protection: routes internal layer reads
  (`host::copy_mapped`, `host::read_into`) through lock-free `LazyAccessHold`
  + `lazy_read_bypass` on a dedicated `D3D12_COMMAND_LIST_TYPE_COPY` queue,
  reuses `inplace::ALIASES` persistent whole-section views for tear-free
  `MEM_MAPPED` flushes, coalesces contiguous `VirtualProtect` runs, and keeps
  steady-state `MEM_MAPPED` refreshes lock-free via `LAZY_MAPPED_VIEW`.
- Full coherence & multi-engine safety: flushes+holds shown pages before
  DirectStorage physical writes (`xmem::write_physical` / `page_window`),
  flushes existing deferred aliases in `watch::views_mapped`, releases pages
  cleanly in `watch::written_through_view` / `title_memory_written`, and
  serializes `DIRECT` submit fence updates against `COPY` readbacks.
- O(dirty) `CopiedPages` + AVX2 SIMD: replaces linear stale-page scans with
  an O(dirty) uncopied bitset (preserving `VICTORY_WATCH_4K=1`) and adds
  AVX2 `first_difference`, `last_difference`, `merge_piece` (with equal-vector
  fast path), `merge_sync_card`, and WC helpers (`copy_from_wc`/`slices_equal_wc`).
- Per-frame telemetry: logs `lazy copy-back per frame` and adds 6 columns to
  `frametime.rs` CSV (`lazy_deferred_pages`, `lazy_veh_faults`,
  `lazy_self_bypass_hits`, `lazy_bytes_readback`, `lazy_materialize_ms`,
  `lazy_protect_ms`).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 12:31:10 +00:00
Author
Owner

@⁠Skyfrye on GitHub · 2026-11-26 14:42 UTC · original

For information: I tried this PR in an integration build on main at 2cc6593 (after #358 and #377), stacked with #354, #345 and my #278, #279, #292, #307, #360-#362, #381 and #382. It no longer applies to main. The conflicts are in what the code does, not just neighbouring lines: host.rs (7 conflicts): the fence mirror (submitted_fence) against #354's last_signalled, the late-path signal and note_write_fence against #354's texture stamping, and the GpuWrite check inside stale_under_flights, which #361 rewrote as one pass (RefreshSpans); declared_writes(runs) is gone with #362. I left it out of that build rather than guess at the merge. A rebase on current main would let it in the next one.

🤖 Generated with Claude Code

**@⁠Skyfrye** on GitHub · 2026-11-26 14:42 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/357#issuecomment-7195217811) For information: I tried this PR in an integration build on `main` at `2cc6593` (after #358 and #377), stacked with #354, #345 and my #278, #279, #292, #307, #360-#362, #381 and #382. It no longer applies to `main`. The conflicts are in what the code does, not just neighbouring lines: host.rs (7 conflicts): the fence mirror (`submitted_fence`) against #354's `last_signalled`, the late-path signal and `note_write_fence` against #354's texture stamping, and the GpuWrite check inside `stale_under_flights`, which #361 rewrote as one pass (`RefreshSpans`); `declared_writes(runs)` is gone with #362. I left it out of that build rather than guess at the merge. A rebase on current `main` would let it in the next one. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot force-pushed github-bot/gh-357 from eb8e7163e4 to b89cc0a1a0 2026-11-26 15:15:16 +00:00 Compare
Author
Owner

@⁠Vladimir-Human on GitHub · 2026-11-26 15:12 UTC · original

@⁠Skyfrye Rebased strictly onto current main (26c11d4, post-75f88de / #358 / #377 / #367 / #383; new head b89cc0a, without pulling in unmerged PRs):

  • host.rs (stale_under_flights): kept the Step::GpuWrite has_lazy_resync_under_writes settle guard alongside #383's VICTORY_STEP_INDEX (if !indexed) Step::Refresh path.
  • shadow.rs & tests: synced Card with #340 (note_carded/Card::me/FLAGGED + has_dirty/has_sent) and Card::prints, and preserved #377's VICTORY_CLAMP_AFTER_WRITER hook.
  • Verified with cargo xtask policy (215 files ok), cargo clippy -p victory-gpu -p victory-hle --lib --tests (0 new warnings), and VICTORY_D3D12_DEBUG=1 tests (shadow:: 64/64 incl. all lazy_and_simd_tests, watch:: 16/16, frametime:: 1/1, inplace:: 6/6, victory-hle 121/121; full victory-gpu runs show only the 3 pre-existing main failures in descriptor::host::tests::spans_say_the_next_start_and_the_lowest_level_viewed and indirect::tests::warp_card_*).

If stacked with #354/#361/#362 in an integration build:

  1. submitted_fence / note_write_fence vs #354: submitted_fence is just a monotonic AtomicU64 mirror of self.fence's last signalled value—it can reuse #354's last_signalled directly as long as lazy_submit_gpu_guard() spans ExecuteCommandLists + Signal + note_write_fence(*submitted) on the late, sync, and card_back paths (alongside #354's texture stamping).
  2. stale_under_flights vs #361: the single Step::GpuWrite(shadow, address, len) check (shadow.writes_pending() && shadow.has_lazy_resync_under_writes(*address, *len)) drops directly into #361's RefreshSpans pass without affecting Refresh span collection.
  3. declared_writes(runs) vs #362: #357 only iterates the submission's declared (shadow, range) write set to call shadow.note_write_fence(*submitted) after Signal and to feed relay_hand_back; #362's replacement write list can supply that same set.
**@⁠Vladimir-Human** on GitHub · 2026-11-26 15:12 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/357#issuecomment-7195942117) @⁠Skyfrye Rebased strictly onto current `main` (`26c11d4`, post-`75f88de` / #358 / #377 / #367 / #383; new head `b89cc0a`, without pulling in unmerged PRs): - `host.rs` (`stale_under_flights`): kept the `Step::GpuWrite` `has_lazy_resync_under_writes` settle guard alongside `#383`'s `VICTORY_STEP_INDEX` (`if !indexed`) `Step::Refresh` path. - `shadow.rs` & tests: synced `Card` with `#340` (`note_carded`/`Card::me`/`FLAGGED` + `has_dirty`/`has_sent`) and `Card::prints`, and preserved `#377`'s `VICTORY_CLAMP_AFTER_WRITER` hook. - Verified with `cargo xtask policy` (`215 files ok`), `cargo clippy -p victory-gpu -p victory-hle --lib --tests` (0 new warnings), and `VICTORY_D3D12_DEBUG=1` tests (`shadow::` 64/64 incl. all `lazy_and_simd_tests`, `watch::` 16/16, `frametime::` 1/1, `inplace::` 6/6, `victory-hle` 121/121; full `victory-gpu` runs show only the 3 pre-existing `main` failures in `descriptor::host::tests::spans_say_the_next_start_and_the_lowest_level_viewed` and `indirect::tests::warp_card_*`). If stacked with `#354`/`#361`/`#362` in an integration build: 1. **`submitted_fence` / `note_write_fence` vs `#354`:** `submitted_fence` is just a monotonic `AtomicU64` mirror of `self.fence`'s last signalled value—it can reuse `#354`'s `last_signalled` directly as long as `lazy_submit_gpu_guard()` spans `ExecuteCommandLists` + `Signal` + `note_write_fence(*submitted)` on the late, sync, and `card_back` paths (alongside `#354`'s texture stamping). 2. **`stale_under_flights` vs `#361`:** the single `Step::GpuWrite(shadow, address, len)` check (`shadow.writes_pending() && shadow.has_lazy_resync_under_writes(*address, *len)`) drops directly into `#361`'s `RefreshSpans` pass without affecting `Refresh` span collection. 3. **`declared_writes(runs)` vs `#362`:** `#357` only iterates the submission's declared `(shadow, range)` write set to call `shadow.note_write_fence(*submitted)` after `Signal` and to feed `relay_hand_back`; `#362`'s replacement write list can supply that same set.
Author
Owner

@⁠Vladimir-Human on GitHub · 2026-11-26 18:50 UTC · original

Pushed follow-up c62aea7 to perf/lazy-copyback-and-simd syncing the v2 VEH escape fix, split-4 KiB batch unprotect fix, hot-page cooldown / O(1) fast-reject, and upgraded regression tests onto third_party/victory:

  • Bounded LAZY_TABLE_EPOCH retry in watch.rs::on_write (MAX_EPOCH_RETRIES = 32 + committed_protect) and LAZY_FLUSH_TOTAL > 0 || LAZY_TABLE_EPOCH > 0 on both PageAccess::Accessible paths in lazy_on_fault.
  • Uniform-only restore_rw_run with full split-4 KiB unprotect_and_write_page / write_section_subregion fallback in flush_claimed_batch and lazy_release_range.
  • fetch_max in lazy_mark_hot, u32::MAX - 1 timed-cooldown clamp, LAZY_RESYNC Acquire guard before lazy_post_resync_state, and upgraded regression tests in shadow_lazy_tests.rs.
  • Local verification in third_party/victory (VICTORY_D3D12_DEBUG=1, WARP / unit & GPU-compute harness):
    • cargo xtask policy: exit 0 (215 files ok).
    • cargo clippy -p victory-gpu --features diagnostics --all-targets: 0 warnings in shadow.rs, shadow_lazy_tests.rs, or the touched watch.rs lines.
    • cargo test -p victory-gpu --features diagnostics -- lazy_copyback --test-threads=1: 26 passed; 0 failed; 1 ignored.
    • cargo test -p victory-gpu --features diagnostics -- watch:: --test-threads=1: 16 passed; 0 failed.
    • Full cargo test -p victory-gpu --features diagnostics -- --test-threads=1: 279 passed; 3 failed; 6 ignored (only the 3 pre-existing origin/main failures in descriptor::host::tests::spans_say_the_next_start_and_the_lowest_level_viewed, indirect::tests::warp_card_fetch_copies_flagged_pieces_to_their_slots, and indirect::tests::warp_card_patch_writes_the_masked_bytes_and_no_others).
**@⁠Vladimir-Human** on GitHub · 2026-11-26 18:50 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/357#issuecomment-7200904934) Pushed follow-up `c62aea7` to `perf/lazy-copyback-and-simd` syncing the v2 VEH escape fix, split-4 KiB batch unprotect fix, hot-page cooldown / O(1) fast-reject, and upgraded regression tests onto `third_party/victory`: - Bounded `LAZY_TABLE_EPOCH` retry in `watch.rs::on_write` (`MAX_EPOCH_RETRIES = 32` + `committed_protect`) and `LAZY_FLUSH_TOTAL > 0 || LAZY_TABLE_EPOCH > 0` on both `PageAccess::Accessible` paths in `lazy_on_fault`. - Uniform-only `restore_rw_run` with full split-4 KiB `unprotect_and_write_page` / `write_section_subregion` fallback in `flush_claimed_batch` and `lazy_release_range`. - `fetch_max` in `lazy_mark_hot`, `u32::MAX - 1` timed-cooldown clamp, `LAZY_RESYNC` `Acquire` guard before `lazy_post_resync_state`, and upgraded regression tests in `shadow_lazy_tests.rs`. - Local verification in `third_party/victory` (`VICTORY_D3D12_DEBUG=1`, WARP / unit & GPU-compute harness): - `cargo xtask policy`: exit 0 (`215 files ok`). - `cargo clippy -p victory-gpu --features diagnostics --all-targets`: 0 warnings in `shadow.rs`, `shadow_lazy_tests.rs`, or the touched `watch.rs` lines. - `cargo test -p victory-gpu --features diagnostics -- lazy_copyback --test-threads=1`: **26 passed; 0 failed; 1 ignored**. - `cargo test -p victory-gpu --features diagnostics -- watch:: --test-threads=1`: **16 passed; 0 failed**. - Full `cargo test -p victory-gpu --features diagnostics -- --test-threads=1`: **279 passed; 3 failed; 6 ignored** (only the 3 pre-existing `origin/main` failures in `descriptor::host::tests::spans_say_the_next_start_and_the_lowest_level_viewed`, `indirect::tests::warp_card_fetch_copies_flagged_pieces_to_their_slots`, and `indirect::tests::warp_card_patch_writes_the_masked_bytes_and_no_others`).
github-bot force-pushed github-bot/gh-357 from c62aea77e1 to e47bee6875 2026-11-26 19:12:22 +00:00 Compare
Author
Owner

@⁠Vladimir-Human on GitHub · 2026-11-26 19:11 UTC · original

Rebased onto main (50936c0 -> e47bee6, resolved frametime.rs alongside #420 and adapted inplace.rs to the BTreeMap/HashMap view-table changes).
Verified locally (VICTORY_D3D12_DEBUG=1): cargo xtask policy (216 files ok), cargo clippy -p victory-gpu --features diagnostics --all-targets & -p victory-hle --all-targets exit 0; lazy_copyback 26/26 (1 ignored), frametime:: 4/4, watch:: 16/16, inplace:: 6/6 passed.

**@⁠Vladimir-Human** on GitHub · 2026-11-26 19:11 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/357#issuecomment-7201290805) Rebased onto `main` (`50936c0` -> `e47bee6`, resolved `frametime.rs` alongside #420 and adapted `inplace.rs` to the `BTreeMap`/`HashMap` view-table changes). Verified locally (`VICTORY_D3D12_DEBUG=1`): `cargo xtask policy` (`216 files ok`), `cargo clippy -p victory-gpu --features diagnostics --all-targets` & `-p victory-hle --all-targets` exit `0`; `lazy_copyback` `26/26` (1 ignored), `frametime::` `4/4`, `watch::` `16/16`, `inplace::` `6/6` passed.
Author
Owner

@⁠Vladimir-Human on GitHub · 2026-11-26 19:19 UTC · original

Noting that #409 (37d4686) replaced third_party/victory with the combined avatarmanz + cool_fox base (124 files changed), putting this Neptune-based branch in CONFLICTING right after the 50936c0 rebase.
The same lazy-copyback v2 patch set is up to date and clean on PastiiJay/klbf-lab#59 and fxceless/victory-fork#1178; happy to re-port onto 37d4686+ once the #409 base settles if you want it here.

**@⁠Vladimir-Human** on GitHub · 2026-11-26 19:19 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/357#issuecomment-7201451272) Noting that #409 (`37d4686`) replaced `third_party/victory` with the combined `avatarmanz + cool_fox` base (`124` files changed), putting this Neptune-based branch in `CONFLICTING` right after the `50936c0` rebase. The same `lazy-copyback v2` patch set is up to date and clean on `PastiiJay/klbf-lab#59` and `fxceless/victory-fork#1178`; happy to re-port onto `37d4686+` once the `#409` base settles if you want it here.
github-bot closed this pull request 2026-11-27 00:36:11 +00:00
Author
Owner

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

Closing after #454 moved third_party/victory to the Vice-Tay base (TaynanGT/Vice-Tay a252348).

CopiedPages/VICTORY_LAZY_COPYBACK and the files it touches do not apply to the new base (about 8,400 lines to port), the mode is opt-in and no gain was measured. Vice-Tay already cuts the copy-back by keeping title buffers on the card.

Thanks for the work. If you measure a gain on the new base, a new PR against main is welcome.

🤖 Closed by Claude Code on behalf of the maintainer

**@⁠LooperSalty** on GitHub · 2026-11-26 23:09 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/357#issuecomment-7205299708) Closing after #454 moved `third_party/victory` to the Vice-Tay base (TaynanGT/Vice-Tay a252348). `CopiedPages`/`VICTORY_LAZY_COPYBACK` and the files it touches do not apply to the new base (about 8,400 lines to port), the mode is opt-in and no gain was measured. Vice-Tay already cuts the copy-back by keeping title buffers on the card. Thanks for the work. If you measure a gain on the new base, a new PR against `main` is welcome. _🤖 Closed by [Claude Code](https://claude.com/claude-code) on behalf of the maintainer_

Pull request closed

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