Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem#591
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@luisaugustz on GitHub · 2026-12-05 13:29 UTC · original
A/B results on RX 9070 XT + Ryzen 7 5800X: #518, #522, #533, #551, #553, #555, CPU PRs, and where ray tracing costs in the city
About 50 runs of the
downtownroute from #554, plus spawn runs, on one machine.VICTORY_BVH_HARDWARE=1(+6 % at spawn, +10 % in the city).bvhclass crashed the card once. The other open performance PRs I tried make no difference here.Setup
ntsync, theperformancegovernor.RADV_PERFTEST=empty (nonosam).VICTORY_BVH_BUILDER=1 VICTORY_BVH_IN_PLACE=1). Baseline withVICTORY_BVH_HARDWARE=0; see finding 1 for=1.VICTORY_FRAME_INTERVAL_MS=0).mainatb581f7ewith #445, #496, #533, #535 and #554 applied, plus local patches (ultrawide, audio, weather), which don't touch rendering or paging defaults.Method
VICTORY_BENCH_ROUTE=downtown. The script presses Enter and waits 40 s once the world is drawing. It then averages thestats: framelines over 200 s and kills the game.stats: frameline in the window.Run-to-run spread on the city baseline is 15.5–16.7 fps over 10 runs, most within ±0.3. Differences under about 0.5 fps are noise.
City (
downtown), 200 s windowspreparing_msVICTORY_MEMO=0(#533 off)VICTORY_PAGES=0VICTORY_PICK_REFRESH_AHEAD=1(#555)VICTORY_CASTABLE_ALIAS=1(#551)VICTORY_JOIN_BARRIERS=1(#553)VICTORY_CARD_PULL=0 VICTORY_PAGES_SEEN=1VICTORY_LATE_FENCE=1VICTORY_KEEP_HOST_BUFFERS=1VICTORY_VRAM_FIRST=1(all classes)VICTORY_VRAM_CLASSES=tiles,textures,rt,bvhVICTORY_VRAM_CLASSES=bvhVICTORY_BVH_HARDWARE=1(node test on)VICTORY_BVH_BUILDER=0(ray tracing off)Spawn, 60 s windows
VICTORY_BVH_HARDWARE=1VICTORY_PAGES=0VICTORY_VRAM_FIRST=1buffersFindings
VICTORY_BVH_HARDWARE=1: +6 % at spawn, +10 % in the city.#518: about +5 %, in both places. Spawn 30.05 → 31.6 and city 15.9 → 16.4. The picture is the same. The first run prepares all 94,520 pipelines again (about 12 min here) and adds about 7.5 GB to the cache.
#533 (memo): about +0.7 fps in the city, and a better worst 5 s (10.3 vs 8.2).
No measurable gain here from #555, #551, #553,
LATE_FENCE,KEEP_HOST_BUFFERS,CARD_PULL=0+PAGES_SEEN=1, or the CPU PRs together. They are all within noise of the baseline or below it. With the CPU PRs,preparing_mswas slightly higher (13.3 vs 12.7). One #551 run showed a single bright green tree in its end screenshot. The other two runs were clean, so this may be unrelated.VICTORY_PAGES=0: about +3 % in the city, and the same at spawn on this machine.In the city, ray tracing's cost is on the card, not the CPU. A 30 s
perfsample of the process, ray tracing on vs off:title-maincorestitle-mainper frameThe game's own CPU work per frame is the same in both, so with ray tracing on
title-mainwaits longer. At spawn the same card draws about 190 W, so in the city it is busy but drawing much less power.VICTORY_RT_STAMPS=1in the city gives the card's time per frame:The timers slow everything down, so only the ratio counts. About 1 frame in 20 in the city has 500 to 8,000 builder dispatches; the
builder burstdiagnostics line names them.#522 details
um/residency.rschanges (five hunks). Itspatches/vkd3d.patchpart was not applied, soVICTORY_VRAM_REBAR=0had no effect here. That switch was not used.xmem poolwent fromV 3.3 GBtoV 0.1 GB, card VRAM from 14.2 to 13.4–13.7 GB, and GTT from 10.9 to 12.4–13.0 GB. Texture handles alive went from about 52k to about 120k, and card time per frame rose to 67–75 ms. At 4K with FSR 4, the card's total use is already above the 13.7 GB budget, so the residency pass seems to stay "pressed" and keeps demoting title pages.VICTORY_VRAM_CLASSES=bvh: the card faulted and was removed after about 4 minutes.amdgpulogged agfxhubpage fault (SQC (data),MAPPING_ERROR), consistent with a shader reading title memory in place while its page was being moved. This was withVICTORY_BVH_IN_PLACE=1.Not done
MESA_VK_TRACE=rgp, unified memory doesn't load (unified memory is not there, withradv/amdgpu: failed to set new pstate. (-16)before it), and withoutVICTORY_WARM=0one pipeline fails to prepare under the trace.AI assistance: Claude Code (Claude Opus 5.5) ran the builds and the benchmarks, read the logs and wrote this report, on the hardware above.
@tommiehansen on GitHub · 2026-12-05 17:03 UTC · original
Thanks for all the testing, very useful data! :) The traversal/builder split is particularly interesting. Would be great to see the same downtown route with the full replacement HWRT stack (starting at #468), then an isolated A/B with #429 and #452 on top of it. Those have promising CPU-side results, but real gameplay numbers would be much more valuable here.
@luisaugustz on GitHub · 2026-12-05 20:25 UTC · original
@tommiehansen Ran it on RX 9070 XT 16 GB + Ryzen 7 5800X (RADV, 4K output, FSR 4 Performance),
downtownroute from #554, 200 s windows.Build: main
49f5f9e8with the head of #452 merged (the stack from #468 plus #429 and #452), plus a few local patches. The only code conflict was two sets of tests added at the same spot instructure.rs; I kept both.VICTORY_BVH_HARDWARE=1. One run per arm, so treat differences under about 1 fps as noise.preparing_msVICTORY_HW_RTunsetVICTORY_HW_RT=1withVICTORY_HW_RT_FREED_GATHERED=0 VICTORY_HW_RT_FREED_INDEX=0(#429's switches off)VICTORY_HW_RT=1VICTORY_HW_RT=1 VICTORY_HW_RT_REMAP_SNAPSHOTS=1(#452)Spawn, 60 s: 35.8 fps without and 36.5 fps with
VICTORY_HW_RT=1.hardware RT lossesline were 0, and there was no device loss.write_tabletime from 4.7 s to 3.7 s over the run, but I saw no fps gain from it.AI assistance: Claude Code ran the builds and benchmarks and wrote this report.
@tommiehansen on GitHub · 2026-12-05 20:59 UTC · original · edited 2026-12-05 21:11 UTC
Thanks for running these! :) The #429 result looks promising, and the remap traffic reduction with #452 is substantial, but the FPS result clearly needs more investigation. A few interleaved runs of the last three arms would be particularly useful given the city run-to-run variance.
Currently held back slighly by no merge for hardware ray tracing stack unfortunately.
More time would be allocated to this if PR's for the new RTHW-stack got merged.