Linux: Ryzen 7 5800X measurements (CPU bound), and ray tracing measured on that machine #4

Closed
github-bot wants to merge 1 commit from github-bot/gh-4 into main AGit
Owner

@⁠Molier on GitHub · 2026-11-27 17:25 UTC · original
Molier:linux-5800x-findings → main · +66 −0 · 1 files · 1 commits · closed without merging

Measurements from a second machine with the same GPU but a slower CPU. Split as you asked: the Mesa
build script is out, and MESA_PREFIX is its own PR (#33).

Hardware: Ryzen 7 5800X (8 cores, 32 MB L3, no 3D V-Cache), 32 GB, RX 9070 XT, CachyOS kernel
7.4.0-rc1, Proton Experimental bleeding-edge (vkd3d-proton 71cae0) with wineserver-view-tree.patch.

What this PR contains now: only docs/linux-wine.md — the 5800X numbers (CPU bound; Mesa 26.2.6 vs
main; huge pages; the release-build teal rectangle) with a line saying they are mine, and a new section
with the ray-tracing switches measured on Linux, which the README says had not been done:

Run (1afad58, 4K out, FSR 4 Quality, pipelines warmed) fps ms a frame on the GPU copies copies back
ray tracing off 12.6 79 17 ms 61 MB 43 MB
ray tracing on (VICTORY_BVH_BUILDER=1) 8.6 117 31 ms 152 MB 57 MB

0 draws without a host pipeline in both runs, no device loss, picture right. With ray tracing off
the same build drops about 347 draws a frame without a host pipeline (the builder's stages); the
picture is complete and the count does not change after warm --used.

cargo xtask policy --staged passes.

**@⁠Molier** on GitHub · 2026-11-27 17:25 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/4) `Molier:linux-5800x-findings` → `main` · +66 −0 · 1 files · 1 commits · closed without merging Measurements from a second machine with the same GPU but a slower CPU. Split as you asked: the Mesa build script is out, and `MESA_PREFIX` is its own PR (#33). **Hardware:** Ryzen 7 5800X (8 cores, 32 MB L3, no 3D V-Cache), 32 GB, RX 9070 XT, CachyOS kernel 7.4.0-rc1, Proton Experimental bleeding-edge (vkd3d-proton `71cae0`) with `wineserver-view-tree.patch`. **What this PR contains now:** only `docs/linux-wine.md` — the 5800X numbers (CPU bound; Mesa 26.2.6 vs main; huge pages; the release-build teal rectangle) with a line saying they are mine, and a new section with the ray-tracing switches measured on Linux, which the README says had not been done: | Run (`1afad58`, 4K out, FSR 4 Quality, pipelines warmed) | fps | ms a frame | on the GPU | copies | copies back | |---|---|---|---|---|---| | ray tracing off | 12.6 | 79 | 17 ms | 61 MB | 43 MB | | ray tracing on (`VICTORY_BVH_BUILDER=1`) | 8.6 | 117 | 31 ms | 152 MB | 57 MB | 0 draws without a host pipeline in both runs, no device loss, picture right. With ray tracing off the same build drops about 347 draws a frame without a host pipeline (the builder's stages); the picture is complete and the count does not change after `warm --used`. `cargo xtask policy --staged` passes.
The build's ray-tracing switches had not been run on Linux yet. On a 5800X and an
RX 9070 XT, 1afad58 draws the world with the builder running, 0 dropped draws and no
device loss: 12.6 fps without ray tracing, 8.6 with it, both at 4K output with FSR 4
Quality, after warming the pipelines.

The measurements in the section above are Oscar Swyns' (Molier), as he offered; the
Mesa script from #4 is left out.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 03:06:20 +00:00
Author
Owner

@⁠Slaktarn700 on GitHub · 2026-11-29 11:17 UTC · original

Thank you, these numbers help a lot. I will keep the measurements; I have not tested the Mesa script, so I leave the PR open for now.

**@⁠Slaktarn700** on GitHub · 2026-11-29 11:17 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/4#issuecomment-7255014278) Thank you, these numbers help a lot. I will keep the measurements; I have not tested the Mesa script, so I leave the PR open for now.
Author
Owner

@⁠Slaktarn700 on GitHub · 2026-11-29 22:01 UTC · original

Thank you again, these are useful numbers. I would like to use the measurements in the docs with your name and a note that they are yours. I would leave the Mesa script out: it builds whatever is on Mesa main that day and deletes build/ and prefix/ in the folder it is given. MESA_PREFIX on its own could be a small separate PR if you like.

**@⁠Slaktarn700** on GitHub · 2026-11-29 22:01 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/4#issuecomment-7263334518) Thank you again, these are useful numbers. I would like to use the measurements in the docs with your name and a note that they are yours. I would leave the Mesa script out: it builds whatever is on Mesa main that day and deletes build/ and prefix/ in the folder it is given. `MESA_PREFIX` on its own could be a small separate PR if you like.
Author
Owner

@⁠Slaktarn700 on GitHub · 2026-12-01 02:29 UTC · original

Thank you, the split is what I had in mind, and the ray-tracing numbers on Linux are useful. MESA_PREFIX is in main now (57bfc69, your commit). Before the text goes in, could you check these? They look like slips, by the numbers in the text itself:

  • "5.7x the copies a frame (61 -> 152 MB)": that is 2.5x (with the copies back, 104 -> 209 MB, 2.0x).
  • "about 120 ms of a 117 ms frame": more than the frame.
  • "in both runs 0 draws a frame without a host pipeline", and further down "with ray tracing off this build drops about 347": which one is it?
  • "4K output with FSR 4 Quality (1706x960)": 1706x960 is Quality for 2560x1440; for 4K it would be 2560x1440. Which output was it?
  • "Mesa older than 26.3 costs about 30 %": measured is 26.2.6 against main; main is 30 % faster, so the older one is 23 % slower, and other versions were not tried.
  • The table names build-mesa-main.sh, which is not in the repository.
  • Transparent huge pages: please say that it changes the whole system and why someone might not want it, or leave the sudo line out.

One more thing, from your text: a release build of 42b2226 showed only a teal rectangle, and two runs stopped with an access violation, while the diag build was fine. Does bd906bd or newer still do that for you? A release build of bd906bd ran two minutes here (RX 9070 XT, Mesa 26.3.1, 2560x1440) with a right picture and no crash, but that is one run on another machine. If it does, the log (Copy a report in the launcher's Tools; read it first) would help.

**@⁠Slaktarn700** on GitHub · 2026-12-01 02:29 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/4#issuecomment-7298670037) Thank you, the split is what I had in mind, and the ray-tracing numbers on Linux are useful. `MESA_PREFIX` is in main now (57bfc69, your commit). Before the text goes in, could you check these? They look like slips, by the numbers in the text itself: - "5.7x the copies a frame (61 -> 152 MB)": that is 2.5x (with the copies back, 104 -> 209 MB, 2.0x). - "about 120 ms of a 117 ms frame": more than the frame. - "in both runs 0 draws a frame without a host pipeline", and further down "with ray tracing off this build drops about 347": which one is it? - "4K output with FSR 4 Quality (1706x960)": 1706x960 is Quality for 2560x1440; for 4K it would be 2560x1440. Which output was it? - "Mesa older than 26.3 costs about 30 %": measured is 26.2.6 against main; main is 30 % faster, so the older one is 23 % slower, and other versions were not tried. - The table names `build-mesa-main.sh`, which is not in the repository. - Transparent huge pages: please say that it changes the whole system and why someone might not want it, or leave the `sudo` line out. One more thing, from your text: a release build of `42b2226` showed only a teal rectangle, and two runs stopped with an access violation, while the diag build was fine. Does `bd906bd` or newer still do that for you? A release build of `bd906bd` ran two minutes here (RX 9070 XT, Mesa 26.3.1, 2560x1440) with a right picture and no crash, but that is one run on another machine. If it does, the log (**Copy a report** in the launcher's Tools; read it first) would help.
github-bot force-pushed github-bot/gh-4 from eb0aa2ced9 to 525843cee9 2026-12-01 06:34:22 +00:00 Compare
github-bot force-pushed github-bot/gh-4 from 525843cee9 to 3036c2f052 2026-12-01 07:11:12 +00:00 Compare
Author
Owner

@⁠Molier on GitHub · 2026-12-01 07:18 UTC · original

All seven are right — thank you. They are slips in my text, and they are fixed in the branch:

  • "5.7x the copies" — right, it is 2.5x: 61 → 152 MB, and with the copies back 104 → 209 MB
    (2.0x). I had divided the wrong pair.
  • "about 120 ms of a 117 ms frame" — wrong. Copies and copies back are 77 ms of that frame
    (35.6 + 41.8, prep 77.3). The 120 was prep + submission added twice.
  • "in both runs 0 draws a frame without a host pipeline" — the ray tracing run drops none, the
    ray tracing off run drops about 347 (the builder's stages). The text now says which row is which;
    the picture is complete in both, and the count does not move after warming the pipelines.
  • 1706x960 — wrong, thank you: it is 2560x1440. The log line is
    render=[2560, 1440] output=[3840, 2160], render scale 0.6667. 1706x960 is the 1440p Quality size,
    which is what the section above runs at.
  • 30 % vs 23 % — reworded to what was measured: main was 30 % faster than 26.2.6, so 26.2.6 is
    23 % slower. No other version was tried.
  • build-mesa-main.sh — that script is not in the tree any more, so the table no longer names it;
    the row just says MESA_PREFIX= with a Vulkan-only Mesa build in a prefix of its own.
  • Huge pages — the sudo line is out. The text says it is a system-wide setting that lasts until
    reboot, and that whoever does not want to change the whole machine for one game should skip it.

Release build and the teal rectangle. I built dc679db release on this machine (5800X, 9070 XT,
main RADV, patched Proton) and ran it twice:

run output fps ms GPU copies copies back no host pipeline
release, 4K out / FSR Quality (2560x1440 in) 3840x2160 13.8 72.8 22.3 ms 19.7 ms / 64 MB 31.8 ms / 43 MB 346
release, 2560x1440 out / FSR Quality (1706x960 in) 2560x1440 14.5 69.0 13.5 ms 23.9 ms / 68 MB 25.9 ms / 43 MB 344

Both drew the world — prison cell, the character, lit interiors, the yard through the window — and
screenshots confirm it. No teal rectangle, no access violation, no device loss, 12.5 of 14.8 GB VRAM.
So the teal rectangle we saw with 42b2226 release does not come back with dc679db here: one machine,
two runs, no proof, but it points at what changed between the two rather than at the release profile.
For comparison, on the same machine the diag build of 1afad58 gave 12.6 fps / 79 ms — release is
about 9 % faster.

Thank you for taking MESA_PREFIX in (57bfc69).

**@⁠Molier** on GitHub · 2026-12-01 07:18 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/4#issuecomment-7303891389) All seven are right — thank you. They are slips in my text, and they are fixed in the branch: - **"5.7x the copies"** — right, it is **2.5x**: 61 → 152 MB, and with the copies back 104 → 209 MB (2.0x). I had divided the wrong pair. - **"about 120 ms of a 117 ms frame"** — wrong. Copies and copies back are **77 ms** of that frame (35.6 + 41.8, prep 77.3). The 120 was prep + submission added twice. - **"in both runs 0 draws a frame without a host pipeline"** — the ray tracing run drops none, the **ray tracing off** run drops about 347 (the builder's stages). The text now says which row is which; the picture is complete in both, and the count does not move after warming the pipelines. - **1706x960** — wrong, thank you: it is **2560x1440**. The log line is `render=[2560, 1440] output=[3840, 2160]`, render scale 0.6667. 1706x960 is the 1440p Quality size, which is what the section above runs at. - **30 % vs 23 %** — reworded to what was measured: main was 30 % faster than 26.2.6, so 26.2.6 is 23 % slower. No other version was tried. - **`build-mesa-main.sh`** — that script is not in the tree any more, so the table no longer names it; the row just says `MESA_PREFIX=` with a Vulkan-only Mesa build in a prefix of its own. - **Huge pages** — the `sudo` line is out. The text says it is a system-wide setting that lasts until reboot, and that whoever does not want to change the whole machine for one game should skip it. **Release build and the teal rectangle.** I built `dc679db` release on this machine (5800X, 9070 XT, main RADV, patched Proton) and ran it twice: | run | output | fps | ms | GPU | copies | copies back | no host pipeline | |---|---|---|---|---|---|---|---| | release, 4K out / FSR Quality (2560x1440 in) | 3840x2160 | 13.8 | 72.8 | 22.3 ms | 19.7 ms / 64 MB | 31.8 ms / 43 MB | 346 | | release, 2560x1440 out / FSR Quality (1706x960 in) | 2560x1440 | 14.5 | 69.0 | 13.5 ms | 23.9 ms / 68 MB | 25.9 ms / 43 MB | 344 | Both drew the world — prison cell, the character, lit interiors, the yard through the window — and screenshots confirm it. No teal rectangle, no access violation, no device loss, 12.5 of 14.8 GB VRAM. So the teal rectangle we saw with `42b2226` release does not come back with `dc679db` here: one machine, two runs, no proof, but it points at what changed between the two rather than at the release profile. For comparison, on the same machine the `diag` build of `1afad58` gave 12.6 fps / 79 ms — release is about 9 % faster. Thank you for taking `MESA_PREFIX` in (57bfc69).
github-bot closed this pull request 2026-12-01 15:00:48 +00:00
Author
Owner

@⁠Slaktarn700 on GitHub · 2026-12-01 14:56 UTC · original

Thank you, all seven are right now, and the teal test on dc679db is good to know. Your text is in c11828f under your name, with one line that the teal rectangle did not come back there.

**@⁠Slaktarn700** on GitHub · 2026-12-01 14:56 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/4#issuecomment-7315074741) Thank you, all seven are right now, and the teal test on `dc679db` is good to know. Your text is in c11828f under your name, with one line that the teal rectangle did not come back there.

Pull request closed

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