RT on, RX 9070 XT: VICTORY_CARD_PULL=0 is 38% faster (17.6 → 24.6 fps in a scripted orbit) #183

Closed
opened 2026-12-02 12:45:59 +00:00 by github-bot · 2 comments
Owner

@⁠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 on main.

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 on dad990b and d044248). 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.

runs fps 1% low GPU ms/frame
RT on, default 3 17.6 (16.2 / 17.8 / 18.9) 8.1 42.3
RT on, VICTORY_CARD_PULL=0 3 24.6 (24.2 / 24.5 / 25.1) 10.0-11.0 33.4-33.7
RT off, default 3 33.1 (32.4 / 33.0 / 33.8) 14.7 25.5
RT off, VICTORY_CARD_PULL=0 2 35.4 (34.3 / 36.4) 15.1 / 16.5

With 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 movsb reads 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, and d044248 + #163 + #164) every RT-on run with VICTORY_CARD_PULL=0 lands 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.

**@⁠audunleganger** on GitHub · 2026-12-02 12:43 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/183) 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 on `main`. **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 on `dad990b` and `d044248`). 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. | | runs | fps | 1% low | GPU ms/frame | |---|---|---|---|---| | RT on, default | 3 | 17.6 (16.2 / 17.8 / 18.9) | 8.1 | 42.3 | | RT on, `VICTORY_CARD_PULL=0` | 3 | **24.6** (24.2 / 24.5 / 25.1) | 10.0-11.0 | 33.4-33.7 | | RT off, default | 3 | 33.1 (32.4 / 33.0 / 33.8) | 14.7 | 25.5 | | RT off, `VICTORY_CARD_PULL=0` | 2 | 35.4 (34.3 / 36.4) | 15.1 / 16.5 | | With 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 movsb` reads 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`, and `d044248` + #163 + #164) every RT-on run with `VICTORY_CARD_PULL=0` lands 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 12:45:59 +00:00
Author
Owner

@⁠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 ... and the card's copies ... are no faster ....

**@⁠goldfishdev** on GitHub · 2026-12-02 19:00 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/183#issuecomment-7355481837) 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 ...` and `the card's copies ... are no faster ...`.
Author
Owner

@⁠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: main at dc9eca8 plus #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.

ray tracing on default (runs) VICTORY_CARD_PULL=0 (runs)
average fps 18.1 (17.8, 18.4) 18.3 (18.1, 18.5)
average fps, 55-115 s (same shots in the compared runs) 18.8 (18.4, 19.2) 18.6 (18.3, 18.8)
1% low 10.5 (10.9, 10.1) 9.6 (9.3, 9.8)
slowest whole second 12.2 (10.7, 13.6) 12.1 (10.9, 13.3)

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 own line 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.

**@⁠Bushyon** on GitHub · 2026-12-02 21:38 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/183#issuecomment-7359559251) 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: `main` at `dc9eca8` plus #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. | ray tracing on | default (runs) | `VICTORY_CARD_PULL=0` (runs) | |---|---|---| | average fps | 18.1 (17.8, 18.4) | 18.3 (18.1, 18.5) | | average fps, 55-115 s (same shots in the compared runs) | 18.8 (18.4, 19.2) | 18.6 (18.3, 18.8) | | 1% low | 10.5 (10.9, 10.1) | 9.6 (9.3, 9.8) | | slowest whole second | 12.2 (10.7, 13.6) | 12.1 (10.9, 13.3) | 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 own` line 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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#183
No description provided.