RT on, RX 9070 XT: VICTORY_CARD_PULL=0 is 38% faster (17.6 → 24.6 fps in a scripted orbit) #183
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#183
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?
@audunleganger on GitHub · 2026-12-02 12:43 UTC · original
With ray tracing on, turning off #93's read-back of card memory by the card's own copies (
VICTORY_CARD_PULL=0, so the processor reads it as before) is the biggest single gain I've found on this machine. The switch is still on by default onmain.Setup: RX 9070 XT 16 GB (Resizable BAR on), i7-13700KF, 32 GB, Arch (kernel 7.3.6), KDE Plasma Wayland, this repo's patched Mesa and vkd3d-proton. Build
f7f0360(later re-checked ondad990bandd044248). Series X profile, 1280x720 render,VICTORY_OUTPUT=1920x1080, fullscreen.Scene: a scripted camera orbit around Jason on the first safehouse's balcony (camera still for 40 s, then orbiting until 300 s). Numbers are over the orbit, 45-300 s in the world.
VICTORY_CARD_PULL=0VICTORY_CARD_PULL=0With RT on, GPU time per frame drops by about 9 ms. The card's copies read title memory at 41-79 MiB/s here (5,472 MiB in 132.9 s with RT on, 8,372 MiB in 105.6 s with RT off). That's no faster than the processor's
rep movsbreads measured at startup (76-97 MB/s), and the copies take GPU time from the frame. The picture looks the same either way.On the later builds (
dad990b, andd044248+ #163 + #164) every RT-on run withVICTORY_CARD_PULL=0lands at 23.5-26.5 fps in the same orbit.Possibly specific to Resizable BAR machines, where the processor's reads of card memory are cheap enough. If so, a default that depends on it (or on measured read speed) might fit.
AI assistance: Claude Code (Claude Opus 5.5) ran the builds and the measurements, read the logs and wrote this report, on the hardware above.
@goldfishdev on GitHub · 2026-12-02 19:00 UTC · original
I've added a runtime check on top of #173. Startup calibration picks whether to read through the card's copies, and if those copies turn out no faster than the CPU, they switch back after 64 MiB. Lmk if that works.
Build is in #215. The log lines to look for are
title memory on the card is read by ...andthe card's copies ... are no faster ....@Bushyon on GitHub · 2026-12-02 21:38 UTC · original
Measured the same switch on an RX 7800 XT: no gain here.
Setup: RX 7800 XT 16 GB (the 16 GB BAR is exposed), Ryzen 9 7900, 31 GB, Fedora 44 (kernel 7.3.3), the project's patched Mesa 26.3.1. Build:
mainatdc9eca8plus #209 (menu and benchmark). Series X, ray tracing on, FSR 4 Quality 1440p → 4K, no frame generation, using #209's benchmark mode.Scene: loads into the safehouse and nobody touches the controls. 5 min runs, first minute left out, two runs each.
VICTORY_CARD_PULL=0(runs)Identical runs differ by 3-4% in average fps here, so the averages are the same. The 1% low was lower in both runs with the switch off, but two runs each are too few to call it. After about 2 min the idle camera differs between runs, hence the 55-115 s row.
The log's
title memory on the card is read by copies of the card's ownline is there in the default runs and absent with=0. RT off was not measured, and neither was the runtime check in #215. The scene is not the orbit used above.