Skip to content

feat: move VIctory to the combined base (avatarmanz/VIctory-7900XTX + cool_fox + root fixes), Linux/AMD support - #409

Merged
Exorion1er merged 7 commits into
LooperSalty:mainfrom
Exorion1er:feat/victory-combined-base
Nov 26, 2026
Merged

Exorion1er merged 7 commits into
LooperSalty:mainfrom
Exorion1er:feat/victory-combined-base

Conversation

@Exorion1er

@Exorion1er Exorion1er commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

NVIDIA testers wanted. Everything here was measured on AMD (Linux, RX 9070 XT). If you have an NVIDIA card on Windows, please run anyxboxx run (default TUNED set) on this branch and post: GPU, driver, fps in the world and in the first cutscene, and whether faces, lighting and videos look right. Main's NVIDIA-only paths (wave32 emitter, wave pairs) are not in this base, so NVIDIA may need settings of its own.

Why

On Linux (Proton, RX 9070 XT) the Neptune base ran at about 6 fps with faces deformed, interiors dark and videos stuttering. The build this PR copies in runs at a median of 15.6 fps in the world and about 16 to 20 fps in cutscenes on the same machine, with face geometry, mouths, indoor ray-traced lighting and video frame order fixed (measured from VIctory's log, observed in game; see "How it was measured").

What moves

third_party/victory is replaced by the exact source of that build: avatarmanz/VIctory-7900XTX c9c932c, merged with codec-d/cool_fox f4b48ad, ports of VIctory pull requests (GPU: #255, #268, #291, #316, #325, #329, #332, #290, #301, #305, #311, #320, #326; shaders: #284, #295, #297, #300, #306, #313, #321, #327, #331, #334) and the root fixes below. It is still a plain copy (rule 10), GPL-3.0-or-later; THIRD_PARTY.md has the new sources table, the Neptune table is kept as history.

Re-applied from main because the new base has no equivalent (AnyXboxX glue):

  • keyboard layout and borderless window (VICTORY_KEYBOARD, VICTORY_WINDOW_MODE, from b27dbae), used by the graphical launcher;
  • xmem's EraFields and xasync's XThread slots (from c563689, c6d35c6, 70fa69d), used by crates/anyxboxx-xmem and crates/anyxboxx-xgameruntime;
  • the async status published before a call is released (from 45de483), whose test lives in crates/anyxboxx-xgameruntime.

One change on top of the measured source: VICTORY_DISPATCH_DUMP refuses a folder inside a source tree (ensure_outside_repo, as VIctory's other writers of game-derived output do).

Root fixes in the new base (one line each)

  • Shadows: dxil-spirv (in vkd3d-proton) recursed without end on lane reads inside branches in the six ray-traced shadow programs; the translator now mirrors each v_readlane'd VGPR in LDS and reads it there, so all six pipelines build and interiors are lit.
  • One-shot pipeline wait: CS_ComputeBlendshapeMappings runs once per head; with VICTORY_PIPELINE_WAIT_MS=0 its dispatch was dropped while compiling and the mapping table stayed all 0xFFFFFFFF. One-shot programs are now made at creation and waited for: face geometry is back.
  • LDS order fence: single-wave LDS tree sums (CS_DotOperation/BiasedDot) keep the console wave's LDS access order on the host; all 73 face programs match AnyXboxX's RDNA 2 interpreter.
  • Stale texture uploads / frame order: a texture a list samples whose GPU copy is behind its staging copy is uploaded in that list's prelude instead of "the next list" (ring-buffered video planes showed a 3-frames-old picture). VICTORY_LATE_UPLOADS=0 is the old way; VICTORY_ORDER_TRACE=1 detects it.
  • Port-1 in-place probe: renderer patch 1 (VICTORY_PORT_CONSTANTS) checks at start that the card sees the title's memory in place and turns itself off where a heap opened on a section view is other memory (measured on Wine/RADV without the shim: the card saw none of the CPU's bytes).
  • anonless shim (tools/linux/anonless/anonless.c): libdrm always passes AMDGPU_GEM_USERPTR_ANONONLY, so the kernel refuses to import Wine section memory for the card; the LD_PRELOAD shim clears that bit on that one ioctl, the probe passes and patch 1 engages.
  • Mesa fix (tools/linux/mesa/nir-lower-memory-model-image-intrinsics.patch, Mesa 26.2.7): with vkd3d-proton's descriptor heaps RADV lowers image accesses to image_heap_* before nir_lower_memory_model, which did not handle them, so MakeTexelVisible was dropped without making loads coherent and waves on another CU read stale L0. Synthetic test: 70,144 stale reads to 0; in game the mouths stopped deforming. Same code on Mesa main; not reported upstream yet.

Launcher changes

  • anyxboxx run's tuned set (TUNED) is now VIctory's own scripts/play.ps1 set without -Safe (17 variables; its VICTORY_D3D12_DRED=light is left to --dred). VICTORY_RELAY=2 makes stage 3 of the late waits the default. Python tests now check TUNED against play.ps1 instead of the Neptune golden script (tests/fixtures/lancer_victory_neptune.ps1 removed).
  • --profile linux-amd (LINUX_AMD) = TUNED + VICTORY_FETCH_CHECK=1, VICTORY_PIPELINE_WAIT_MS=0, VICTORY_PORT_CONSTANTS=1, VKD3D_CONFIG=descriptor_heap. The old Linux set (LATE_WAIT=0, SHADER_LOOP_LIMIT=256, PIPELINE_WAIT_MS=50...) is gone.
  • --auto-a sets VICTORY_KEYS (Enter, which also presses the first pad's A, every 4 s up to 148 s).
  • --warm and --precompile run victory shaders <files>: this base's victory warm takes no files (it remakes the host pipelines earlier runs wrote down).
  • Removed (nothing behind them in this base): --xg-dll, --xg-mode, --frametime-dump, and the always-set VICTORY_DISCORD=0 / VICTORY_OCEAN_READBACK=1 (texture read-back is on by default here).
  • Graphical launcher: profiles follow (windows-nvidia and windows-amd = TUNED, Windows + AMD marked measured, NVIDIA marked unmeasured; linux-amd = LINUX_AMD); the XG library row, the F10 overlay toggle and the frame-time CSV toggle are gone (old settings files still load); Quality keeps the three switches this base reads; the 8/12 GB presets keep VICTORY_CARD_BUFFERS_MB and VICTORY_TEXTURE_ROOM_PERCENT (no texture size cap, no draw-window reserve: this base keeps none by default). Quality and the card presets are not measured on this base.
  • New tools/linux/: play.sh (builds and preloads the shim, points VK_DRIVER_FILES at the patched RADV, sets VKD3D_CONFIG and d3dcompiler_47=n,b, checks that Microsoft's d3dcompiler_47.dll is beside victory.exe, then runs anyxboxx run --profile linux-amd --victory-exe ... inside Proton), anonless/anonless.c, mesa/build-radv.sh (clones mesa-26.2.7, applies the patch, builds RADV only, no LLVM, into ~/.local/share/anyxboxx/mesa, no root). Nothing binary is shipped.
  • Docs: docs/running-gta6.md (+ docs/fr/lancer-gta6.md) open with the combined base and a Linux/AMD section; docs/launcher.md, docs/rust-full-status.md (+ French), AGENTS.md layout rows, README headline and VIctory row in English and French (15 to 20 fps, peaks at 28 in cutscenes, ray tracing working).

Dropped with the Neptune base

Features: the XG library oracle (xg_oracle.rs, --xg-dll) and the four xg: layout commits (b69c522, 885c54e, a657b3a, 06b6228); Neptune's F10 overlay, frame-time CSV, screenshots, Discord presence, FidelityFX DLL redirect (VICTORY_FSR_DLL), mouse/keyboard module beyond the keymap, ocean read-back switch, NVIDIA wave32 emitter (VICTORY_WAVE32_NVIDIA, nvidia.rs, wave pairs) and float64 emitter; third_party/victory/tools (start-neptune.ps1, memwatch.ps1).

AnyXboxX main commits on third_party/victory that this base does not carry (in the same or another form): texture size cap and its presets (9e87891), VICTORY_HEAP_SCAN_ALT (ed60e31), VICTORY_PARALLEL_REFRESH (810adeb), VICTORY_CARD_SYNC_BATCH (3933a5f), VICTORY_STEP_INDEX (1dc55dc), VICTORY_COMMIT_GATE (63e38ee), VICTORY_FENCE_WAKE (3d5e80d), VICTORY_WAVE32_NVIDIA (653d912), VICTORY_CLAMP_AFTER_WRITER (0b0deab; this base clamps every indirect record), XMA voice blocks (8cdbf5e; this base has cool_fox's VICTORY_XMA_REFILL), upload buffers' 500 ms wait (19e70c0), VICTORY_SECTION_MB (ee8b92e), VICTORY_WINDOW_SKIP_SAME (baedbee), VICTORY_MERGE_SUBMISSIONS (f98cbc0), typed integer views (e97654d), window upload slabs, packed readbacks and shared uploads (bdda18a, 1202efb, c650c22), VICTORY_INDIRECT_RAW=3 (1afeb0e), LRU staging eviction (47b02cb), descriptor bookkeeping (0f7b43f), VICTORY_HDR_STANDIN (a9bb494), VICTORY_COPY_COALESCE (08f8a1b), VICTORY_HEAP_PASS_DIRTY (6e8dfc5), VICTORY_RELAY_WIDE_MERGE (042f5b4), the xmem remap-gap test fix (3706fba), VICTORY_SKIP_PIPELINES in release builds (#384; diagnostics builds only here), the one-second FPS line on stdout (#385), the slot_evict lock fix (#398; this base has no slot_evict), rejected host pipeline libraries kept beside the new one (#392; Neptune's pipeline/library.rs), kept views yielding when the card has no room (#381), texture pass off the recording thread (#395), Series S upscaler pass lowering (#387), texback/overlay/memory buffer reuse (#418, #420, #426), tile reclaim of unheld mips (#429), pipeline library work (#416). Carried in reworked form by the port branches: boxed upload rows, zeroed mip uploads, scratch chunks, card-copy list, result ring, VICTORY_PAGE_WRITES.

Switch names main's VIctory reads that this base does not (113, from a scan of string literals)

VICTORY_ALIAS_RUNS, VICTORY_AMBIENT_FILE, VICTORY_AMBIENT_TINT, VICTORY_ASK_QUIET, VICTORY_ASK_QUIET_GAP_MB, VICTORY_ASK_WIDE_MB, VICTORY_ASYNC_PRESENT, VICTORY_AUTO_A, VICTORY_BUILD, VICTORY_CAPTURE_HEAVY_FRAMES, VICTORY_CAPTURE_MENUS, VICTORY_CARD_COPIES, VICTORY_CARD_FETCH_INFLIGHT, VICTORY_CARD_FETCH_INFLIGHT_MB, VICTORY_CARD_SYNC_BATCH, VICTORY_CARD_WINDOW_UPLOAD, VICTORY_CARD_WINDOW_UPLOAD_MB, VICTORY_CLAMP_AFTER_WRITER, VICTORY_CLAMP_AHEAD, VICTORY_COMMIT_GATE, VICTORY_CONSTANTS_WAIT, VICTORY_COPY_CHANGED, VICTORY_COPY_COALESCE, VICTORY_DISCORD, VICTORY_DISCORD_APP, VICTORY_DRAW_CENSUS, VICTORY_DROP_DXIL, VICTORY_DS_NOTIFY, VICTORY_DSTORAGE_OWN_HANDLES, VICTORY_DSTORAGE_STALE_MS, VICTORY_DUMP_AFTER, VICTORY_DYNAMIC_WAIT_MS, VICTORY_FAST_COPY, VICTORY_FENCE_WAKE, VICTORY_FOLD_BUFFERS, VICTORY_FRAMETIME_DUMP, VICTORY_FSR_DLL, VICTORY_GUARD_OPEN_AHEAD, VICTORY_HDR_STANDIN, VICTORY_HEAP_COUNT, VICTORY_HEAP_PASS_DIRTY, VICTORY_HEAP_SCAN_ALT, VICTORY_HEAP_SCAN_EVERY, VICTORY_HEAP_SYNC_BLOCKS, VICTORY_HEAP_SYNC_TABLES, VICTORY_INDIRECT_RAW, VICTORY_LIST_POOL_IDLE_S, VICTORY_LIST_POOL_MB, VICTORY_LIST_POOL_MOST, VICTORY_LOOKUP_CACHE, VICTORY_MERGE_RACE, VICTORY_MERGE_SUBMISSIONS, VICTORY_MERGE_SUBMISSIONS_LISTS, VICTORY_MERGE_SUBMISSIONS_MOST, VICTORY_MERGE_SUBMISSIONS_US, VICTORY_MOUSE, VICTORY_NO_COPY_BACK, VICTORY_NULL_MAGENTA, VICTORY_OCEAN_READBACK, VICTORY_OVERLAY, VICTORY_PACE, VICTORY_PARALLEL_REFRESH, VICTORY_PIPELINE_GATE_S, VICTORY_PLACED_LOOSE_KEY, VICTORY_QUIET_BACK, VICTORY_QUIET_BACK_TOGETHER, VICTORY_QUIET_BACK_WATCHED, VICTORY_READY_TABLES, VICTORY_RELAY_KEPT_PIECES, VICTORY_RELAY_OWN_QUEUE, VICTORY_RELAY_WIDE_MERGE, VICTORY_REMAP_SAME, VICTORY_RENDER_S, VICTORY_SCC_LOCAL_ANY, VICTORY_SECTION_BENCH, VICTORY_SECTION_MB, VICTORY_SHADER_CACHE_KEY, VICTORY_SIGNAL_NOW, VICTORY_SLOT_EVICT, VICTORY_SLOT_EVICT_MB, VICTORY_SLOT_EVICT_PERCENT, VICTORY_STAGE_POOL_MB, VICTORY_STEP_INDEX, VICTORY_TABLES_BY_CONTENT, VICTORY_TEXTURE_BACK_MODES, VICTORY_TEXTURE_GATE_S, VICTORY_TEXTURE_HASH_EVERY, VICTORY_TEXTURE_MAX_SIZE, VICTORY_TITLE_COPY_PLAIN, VICTORY_UNDER_WRITES_MASKS, VICTORY_UNDER_WRITES_MASKS_LEAST, VICTORY_UNDER_WRITES_RUNS, VICTORY_UNDER_WRITES_WORDS, VICTORY_VALUE_WAKE, VICTORY_VIEW_ASK, VICTORY_VIEW_OWN_COPY, VICTORY_VRAM_EVICT, VICTORY_VRAM_IDLE_BY_ROOM, VICTORY_VRAM_IDLE_MS, VICTORY_WATCH_4K, VICTORY_WAVE32_NVIDIA, VICTORY_WAVE_LDS_LOOSE, VICTORY_WAVE_PAIRS, VICTORY_WIDE_THREADS, VICTORY_WINDOW_REBAR, VICTORY_WINDOW_SKIP_SAME, VICTORY_XG_DLL, VICTORY_XG_MODE (plus a few VICTORY_TEST_* names of Neptune's tests). This base reads 228 names main's does not.

How it was measured

  • Linux, Fedora 44, RX 9070 XT 16 GB, GE-Proton11-12 (community view-tree wineserver), RADV 26.2.7 with the patch above, anonless shim, diagnostics build, settings = LINUX_AMD. Measured from VIctory's frame-rate log lines over one session from a save (2026-11-26): median 15.6 fps, p75 18.9, best 20.7 (frames with 1,500+ draws), no errors. Earlier A/B on the same save, 4 min each: late-wait stage 3 17.5 fps median vs 10.1 at stage 1. About 6 fps with the previous base on that machine.
  • Observed in game: face geometry back (one-shot fix), mouths right only with the patched RADV, interiors lit (shadow fix), videos/splashes in order (late uploads), new game cutscene about 20 fps.
  • Mesa fix: a synthetic compute test, 70,144 stale reads to 0 (measured).
  • Windows: not measured with this base by us. avatarmanz's README reports about 19 fps (Series X, patches 1+2) on an RX 7900 XTX. Not measured on NVIDIA.

Linux how-to

tools/linux/mesa/build-radv.sh     # once; Fedora 44 lacked: sudo dnf install python3-mako libxshmfence-devel expat-devel
# cross-build both for x86_64-pc-windows-msvc, then:
GAME_DIR=<game folder> VICTORY=<victory.exe, with Microsoft's d3dcompiler_47.dll beside it> \
ANYXBOXX=<anyxboxx.exe> PROTON=<Proton>/files WINEPREFIX=<prefix>/pfx tools/linux/play.sh

MESA=system / ANONLESS=0 to compare. Proton, the patched RADV and the shim are community workarounds measured on one machine; details in docs/running-gta6.md.

Commits

  1. chore: the exact measured VIctory tree (Source/Co-authored-by for avatarmanz and codec-d).
  2. feat(victory): AnyXboxX glue re-applied + dispatch-dump guard.
  3. feat: anyxboxx run and the launcher on the new base, with tests.
  4. feat: tools/linux and its tests.
  5. docs: guides, THIRD_PARTY.md, AGENTS.md, READMEs (EN/FR, following docs: keep README in English and French only, refresh the site #407).
  6. fix(linux): play.sh asks for the prefix's vkd3d-proton and DXVK (found running the PR build through play.sh: Wine's own d3d12 gave no device, white window).
  7. docs: README headline and VIctory row: 15 to 20 fps, peaks at 28 in cutscenes (Linux, RX 9070 XT), ray tracing working.

Rebased on main 50936c0. After commit 1, third_party/victory is byte-identical to the measured tree; commit 2 is the only change on top of it.

Test plan

Done (Linux host, Windows target cross-built, tests run under Proton in a throw-away prefix copy):

  • cargo xtask policy in third_party/victory: asset policy ok; cargo test -p xtask (policy + documented switches are read): 9 passed.
  • VIctory cross-build for Windows: --profile diag --features diagnostics and --release, --locked.
  • victory-shader, victory-gpu, victory-hle tests (default and --all-features) under Proton with the patched RADV and Microsoft's d3dcompiler_47 beside the test binaries: shader 327 passed / 1 failed, gpu 403 (456 with diagnostics) passed / 5 failed, hle 164 passed / 2 failed (keymap 8/8). The failures are Wine/vkd3d-proton environment cases in code this PR does not touch: vkd3d accepts a zero-digest stub DXIL (stub_pipeline_is_created), Wine's write-watch holes (watch::*, 3), views_are_made_beside_the_heap_and_copied_in, a_rejected_blob_gives_an_empty_library, Wine's ws2_32 lacks WSAConnectByList, and the temp folder is not NTFS (1024-link test). To confirm on Windows.
  • VIctory's own clippy -D warnings and cargo fmt --check are not clean on this source (pre-existing in the measured tree: transmute without annotations in victory-loader tests, operator precedence in two shader test files, an unneeded return and a needless borrow in victory-gpu, unformatted files). AnyXboxX's CI only runs the asset policy on third_party/victory; left as measured, to clean in a follow-up if wanted.
  • Root workspace: cargo build --release --workspace and cargo test --workspace (all green) except anyxboxx-d3d12-xs and anyxboxx-kernelx, whose build scripts need MSVC's lib.exe (not available in the cross-build; unrelated to this change). Clippy -D warnings and cargo fmt --check on the touched crates.
  • pytest (Linux): 1405 passed, 498 skipped (Windows-only fake-tool launches and runtime/GPU tests skip as the suite does); ruff W605,F,E9 clean.
  • tools/linux/play.sh end to end under Proton with a stand-in victory.exe that prints its environment: the 21 VICTORY_* of linux-amd plus VKD3D_CONFIG reach it, LD_PRELOAD/VK_DRIVER_FILES reach the Unix side, the shim is mapped in the child process, VICTORY_KEYS for --auto-a.
  • The Mesa patch applies to tag mesa-26.2.7 and equals the diff of the RADV that was measured.

To do before merge:

  • Windows + NVIDIA run (maintainer's RTX 4070 SUPER): fps vs main's 13.8 median, and whether NVIDIA needs settings of its own on this base.
  • Windows pytest with the built runtime (fake-tool launch tests of anyxboxx run), full cargo build --release --workspace with MSVC.
  • A Linux run through tools/linux/play.sh + anyxboxx run (the measured runs set the same variables by hand); build-radv.sh from a clean cache.
  • Graphical launcher on Windows: Play page without the XG row, presets, victory shaders progress (this base prints no per-file progress line, so the bar may stay idle).

🤖 Generated with Claude Code

@Exorion1er
Exorion1er force-pushed the feat/victory-combined-base branch 2 times, most recently from 84feb29 to 3f2a74c Compare November 26, 2026 17:59
ErRusso

This comment was marked as low quality.

Exorion1er and others added 7 commits November 26, 2026 19:56
… base

Replaces the Neptune (VIctory Edit.) 2026-11-25c copy with
avatarmanz/VIctory-7900XTX c9c932c merged with codec-d/cool_fox f4b48ad,
plus the fixes measured on Linux (RX 9070 XT, RADV, Proton):
- ray-traced shadow programs: v_readlane'd VGPRs mirrored in LDS, so
  dxil-spirv no longer recurses forever on lane reads in branches
  (the 6 shadow pipelines now build; interiors are lit)
- one-shot producer pipelines (CS_ComputeBlendshapeMappings) made at
  creation and waited for instead of dropped (face geometry)
- LDS order fence for single-wave tree sums (face dot products)
- stale texture uploads sampled without an upload are uploaded in the
  list's prelude (video/splash frames no longer go backwards)
- renderer port 1 refuses itself where an in-place heap is not that
  memory to the card (Wine/RADV without the anonless shim)
- ported fixes: f16 round-to-nearest-even, RDNA 2 rounding/clamp/f64
  class, wave64 cross-lane reads, card-copy and texture fixes

Source: https://github.com/avatarmanz/VIctory-7900XTX c9c932c
Source: https://github.com/codec-d/cool_fox f4b48ad
Co-authored-by: avatarmanz <64326402+avatarmanz@users.noreply.github.com>
Co-authored-by: codec-d <58233486+codec-d@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Re-applies what main's VIctory had that the new base lacks: the
keyboard map and borderless window (VICTORY_KEYBOARD,
VICTORY_WINDOW_MODE), xmem EraFields and the xasync XThread slots the
root crates need, and the async-status fix. VICTORY_DISPATCH_DUMP now
refuses a folder inside a source tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TUNED is avatarmanz's play.ps1 set (RELAY=2 gives late-wait stage 3);
a linux-amd profile adds FETCH_CHECK=1, PIPELINE_WAIT_MS=0,
PORT_CONSTANTS=1 and VKD3D_CONFIG=descriptor_heap. --auto-a sets
VICTORY_KEYS; warm/precompile call `victory shaders`. Options this base
no longer reads (XG, frame-time CSV, F10 overlay) are removed; old
settings files still load. Tests check TUNED against play.ps1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y.sh)

- anonless: clears libdrm's AMDGPU_GEM_USERPTR_ANONONLY so RADV imports
  Wine section memory (in-place heaps were other memory without it)
- mesa/build-radv.sh + patch: game-only RADV 26.2.7 whose
  nir_lower_memory_model also handles image_heap_*/bindless_image_*
  (descriptor heaps lost MakeTexelVisible; stale L0 reads in WGP mode)
- play.sh: Wine/vkd3d environment, VK_DRIVER_FILES, the shim, and a
  check for Microsoft's d3dcompiler_47 next to victory.exe

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Running guide (EN/FR) with the new base and a Linux/AMD how-to,
launcher and Rust status docs, AGENTS.md layout and tools rows,
THIRD_PARTY.md sources for the combined base and the Mesa patch, and
the VIctory row and test count in all 9 READMEs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run through Proton's `wine` (not its `proton` script), Wine picked its
own d3d12/dxgi: VIctory got no host D3D12 device ("Invalid parameter")
and the window stayed white. play.sh now overrides d3d12, d3d12core,
dxgi, d3d11 and d3d10core as native, like the measured runs did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The headline and the VIctory row now give the combined base's figures
on Linux (15 to 20 fps, peaks at 28 in cutscenes, RX 9070 XT) and say
ray tracing works; "ray tracing is off" leaves the known limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Exorion1er
Exorion1er force-pushed the feat/victory-combined-base branch from daeaaad to b488e51 Compare November 26, 2026 18:56
@Exorion1er
Exorion1er merged commit 37d4686 into LooperSalty:main Nov 26, 2026
4 checks passed

Copy link
Copy Markdown
Contributor

Could we check the impact on open PRs before merging the next VIctory base update? I compared my 41 open PR branches against main immediately before and after #409. All 41 merged cleanly against the previous base, and 37 now have conflicts. Some of those fixes were ported here, so we also need to confirm which PRs still have work left.

For the next base update, please flag the affected PRs before merging and coordinate which fixes will be carried over and which branches need updating. A mergeability check against the proposed base would give contributors a chance to plan that work.

@Skyfrye

Skyfrye commented Nov 26, 2026

Copy link
Copy Markdown

NVIDIA results for the combined base, as asked.

Machine: RTX 5080 (driver 621.01), Ryzen 7 9800X3D, 31 GB, Windows 11 26300.
Build: main at 37d4686, cargo build --release -p victory, the default TUNED set (17 switches), Series X.
Runs: two 10-minute runs with a screen capture every 15 s. Frame rates are from VIctory's frame lines (5 s windows).

Run Pipeline library Median fps 25th-75th percentile
1 (cold) made 372, loaded 4 at first; 1,500-1,700 pipelines being made in the opening cutscene 3.9 3.3-4.6
2 (warm) 3,125 loaded, 0 made 5.6 4.8-6.4
  • Picture: right in the captures. The opening cutscene, the cell and the window scene are lit and textured. No device lost. I did not reach a face close-up.
  • Caveat: the machine was loaded by other work during both runs (about 70% CPU in all), so take the fps as indicative. For scale, the Neptune-based main on this machine ran about 13-15 fps on the same stretch, with my open PRs stacked.

Where the frame goes, from the warm run's log:

  • The card mostly waits for the title. Title threads wait about 100 ms a frame at presents (queue/behind.rs ~913), and "nothing of ours queued" takes most of the frame.
  • List translation is the wall. VICTORY_THIN translated 45,430 calls in 1,233 ms of thread time per frame on 8 threads, about 27 us a call (38 us in the cold run). docs/findings.md gives about 6.4 us on AMD.

Causes we found reading the code (verified against the log). I am working on fixes and will open them as separate PRs with measurements:

  • New card objects wait on the CPU for residency. Each waits for MakeResident plus a copy-queue round trip, one at a time, about 2,000 a second.
  • Unaligned buffer views get a committed buffer each. On NVIDIA (no raw twins) every unaligned buffer view gets a new committed buffer of its own bytes, made resident and waited for under one global mutex. That is about 440 a frame.
  • The driver's background shader threads take about 1.6 cores. VICTORY_D3D12_BACKGROUND=0 is refused without Developer Mode, and the Neptune fallback that put those threads at idle priority is not in this base.
  • 4 compute programs are refused on NVIDIA without the paired wave64 form, and about 36 run an approximate form.
  • VICTORY_CARD_AWAKE=1 keeps the GPU at 98-99% in nvidia-smi from the moment the engine starts, before any world. On NVIDIA it may need its own default; I have not measured it on and off yet.

Measured by me on my copy of the game. Analysis with Claude Code (Claude Opus 5.5).

adanp283-bs pushed a commit to adanp283-bs/AnyXboxX that referenced this pull request Nov 26, 2026
…ase holds on NVIDIA

Reverts the merge of LooperSalty#409. On Windows, RTX 4070 SUPER, i7-13700KF, Series X,
the previous base ran at 14.2 fps median in the world with a warm pipeline
cache (no pipeline compiled during the run). The combined base stayed at
2-5 fps in our runs so far, but those runs still compiled 870-1,200
pipelines, so a warm comparison is still to come. The combined base was
measured on AMD only (its description asks for NVIDIA testers); it can come
back once it is measured on NVIDIA.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox
@BillyBuilds

Copy link
Copy Markdown

Combined base on an RTX 5070 12 GB / 32 GB RAM: memory fixed, but the tuned set drops it to 2.8 fps (5-16 on the Neptune set)

Machine: RTX 5070 12 GB, Core Ultra 7 270K, 32 GB RAM, Windows 11, driver 621.40, own copy of the title (1.0.2.1), Series X profile, anyxboxx run defaults on the combined base (plus a local, unposted --pcores boost: High priority on the P-cores, process-level only, no VICTORY_* change).

Measured (26 November, in the world at my save, after the first-entry pipeline fill of about 15 minutes):

Combined base Neptune set, same save, earlier the same day
fps 2.8 5 to 16, median about 11
frame 352 ms (about 120 ms preparing, 88 ms on the GPU, 69 ms copying back) about 72-130 ms
free RAM, deep in the world 4.9 GB (working set 12.6 GB) walks to 1.5 GB and pages
  • Warm after the merge: full re-translate, 25,668 shaders in 62 s, 221 refused.
  • The memory work is the win: every earlier configuration on this machine walked to 1.5 GB free and paged; the combined base holds 4.9 GB free deep in the world. That part of the combined base is exactly right for 32 GB machines.
  • The cost: for the first time on this machine the GPU is a real share of the frame (88 ms). With a 12 GB card at Series X resolution, the new 17-variable set does not keep up — the same save runs 5-16 fps on the Neptune-era 46-variable set (windows 1536 MB, card buffers 1536 MB, and so on).
  • The title's wave64 ray-tracing structure programs do not lower to wave32 on NVIDIA and are dropped, as VIctory-NVIDIA also reports; ray-traced light stays off on this card either way.

Suggestion: the 17-variable set is tuned on larger cards; a 12 GB card at Series X resolution probably wants the Neptune-era sizing back, at least as a profile or a preset of anyxboxx run. I can A/B --no-tuned-settings with the old set through --override on this machine if that is useful.

AI use: Claude (Cline) collected the logs and drafted this comment; I ran the sessions and checked the numbers.

Copy link
Copy Markdown
Contributor

First bounded check for mauroalvare’s base-update question. After #452, current main 15024d54e690743604a67287f0e3f3f30adbaba8 has the exact same Git tree as pre-#409 50936c0f15d3daa3060389f8977f4e977476d2b9. I could not identify a newer proposed receiving SHA in the public refs and discussion. The comparison below uses restored Neptune.

Full pins, checks and source links. This is source and merge verification. A new base can be checked by the same method as soon as it has a proposed SHA.

AI-assisted source comparison (Codex).

Copy link
Copy Markdown
Contributor

@mauroalvare, the post-#452 comparison is now repeatable on any public PR and receiving commit. The real GitHub run for #433 against restored 15024d54e690743604a67287f0e3f3f30adbaba8 reports one conflict in draw.rs and links the PR's cut regression. After resolving the conflict, that test is the first behavior check to run: the new list should use current constants while the previous list's descriptors remain valid through completion.

If there is another PR or a proposed receiving SHA to compare, you can drop just those two values in PortBridge #98, or use the one-line command there. It checks the public Git trees. The behavior notes above come from manual source review.

AI-assisted source review and tooling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants