You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Frame rate on Linux / Proton / NVIDIA: what we measured this week, and where we look next
#2
Short version: the switches we tried this round did not move frame time beyond noise, and a GPU profile says why. The card is not short of shader power: it spends most of its time busy, but with its shader cores idle. The wall is waiting and synchronisation, not compute or bandwidth.
1. Eight controlled runs: no candidate beats noise
Setup: RTX 5090 alone in the machine (no other game, no builds), headless, Proton with the view-tree wineserver, Series X profile, release build, warm caches, the same save in the opening cell. Each run is measured late, after the game has settled: standing with the camera on the cell window (world frames 1800–2400), then a short walk (frames 2430–2730). Times are milliseconds per frame, lower is better.
run
standing
walk
base (first run)
134.1
156.1
Neptune under-writes, words
138.1
158.9
Neptune under-writes, words + masks
133.4
154.2
VICTORY_CARD_STEPS=2 + VICTORY_RELAY=2
135.9
159.0
card steps + words + masks
134.1
159.1
the same, built with fat LTO, one codegen unit, target-cpu=native
The two base runs differ by 1.4 % standing and 2 % walking, so everything here is within about ±3 % of base. The optimised build profile is the only one slightly ahead (about 2 %), and that is just the compiler settings. An earlier hand-timed run had card steps 17 % faster at the window. That reading did not hold up: single readings swing by up to ±10 %, so we only trust per-minute averages over several minutes, taken in the same time window after loading.
Measuring note for anyone comparing builds: in a 20-minute session, frame time drops about 5 % after the first ~10 minutes (118 → 112 ms in our settle test). Compare candidates at the same minute after loading, never a fresh start against a settled one.
2. What the card is doing: busy, but not working
Nsight Systems GPU metrics, 20 s at 2 kHz (40,000 samples), on the RTX 5090. This capture was taken on TomTomAIbot's LinVxtory build (Series X, ray tracing off, about 6 fps, open world). His line runs Series X at about twice our frame rate in the same spot, and both lines show the same pattern in simpler tools: the card is reported mostly busy (80–94 % on his line, 66–72 % on ours) while drawing only about 120–140 W.
metric
value
graphics engine active
95.1 % (idle in only 0.8 % of samples)
SMs active
23.7 %
SM issue
2.0 %
warps in flight: compute / pixel / vertex
7.1 % / 1.2 % / 1.0 %
DRAM read / write
1.6 % / 1.3 %
PCIe
about 2–3 %
So about three quarters of the time the graphics engine is busy while the shader cores sit idle, and when they run they barely issue. That points at the command stream's front end: barriers, cache flushes, waits inside the stream, and many tiny dispatches one after another. It does not point at shader cost, memory bandwidth or PCIe.
3. Earlier: four pipelines that ate the frame's wait budget (11-25)
On 11-25 (around 17:30 UTC) we found that four compute pipelines never finished being made under Proton (fdd56d97a806bcca, 559d9f0184e15fe3, a1b20bc47e3c9597, e8c962358d862e3f). The port's per-frame pipeline wait (VICTORY_PIPELINE_WAIT_MS, 500 ms by default, shared by the frame) was spent on them in every world frame. With VICTORY_PIPELINE_WAIT_MS=0 our build went from 1.87 to 3.54 fps with the same picture. BitWuehler posted the same per-frame stall, found independently, a few hours later in #1181, which is the public reference for it. The cause is in vkd3d-proton's DXIL to SPIR-V conversion: it recursed without end on loop headers with several back edges. hh-ze's #938 fixes those hangs (its own note names fdd56d97a806bcca); with it all four are made, and the slowest pair takes 86–115 s to make once, then comes from the cache. We still run with the wait at 0, and VICTORY_PIPELINE_WAIT_FIRST_MS=5000 so a pipeline's first use waits instead of being dropped.
The flip side of the same budget turned up this week: a one-shot pass that misses the wait is never run again. BitWuehler traced missing heads to exactly that in #1356.
4. Where we look next
Our focus from here is frame rate on Linux, then picture faults. Open leads, in order:
Count the barriers, flushes and waits per frame (an Nsight Vulkan trace or a RenderDoc event list), and find which ones the translation adds that the console would not need.
Why TomTomAIbot's line runs Series X at about 2× ours in the same spot (with ray tracing costing almost nothing there).
The new opt-in switches in VIctory-NVIDIA aimed at the copy path: #59, #60, #125, #126, #127, #34. We audit them first, then run the same A/B as above.
What settles after ~10 minutes (the 5 % drift): late pipelines, streaming or caches. If we find it, it can be warmed up at start.
Shader pretranslation before start (as in Vice-Tay's Linux script), against the long black screen and cold-cache faults on first start.
Picture: over-bright speckled white on softly reflective surfaces (eyes, sheets, floors), probably the reflection path; VIctory-NVIDIA #124 and #82 look related.
We have more leads than time. If any of these interests you, say so here: we are happy to share setups, scripts and raw numbers.
On Windows? You can still help a lot. Most of the port's copy and wait logic is the same Rust code on both systems, so leads 1, 3 and 4 can be tested on Windows directly. And the most useful single thing would be a baseline: the same spot, same card class and same build on Windows, ideally with a GPU profile (Nsight Systems or PIX). If Windows shows the shader cores busy where we see them idle, the stall is in the Linux path (vkd3d-proton's translation of barriers, Wine's write-watch or wineserver). If Windows shows the same idle cores, it is in the port's own command stream, and a fix helps everyone. inkVI-dive's checkpoint lets both sides start from the same stage.
Credits: card steps by trustno1-coder (via fxceless and PastiiJay / KLBF Lab); Neptune under-writes by zm0kiemedia; the build-profile idea from Keel62155's VIctoryUnified; the switch group and the faster line by TomTomAIbot.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Short version: the switches we tried this round did not move frame time beyond noise, and a GPU profile says why. The card is not short of shader power: it spends most of its time busy, but with its shader cores idle. The wall is waiting and synchronisation, not compute or bandwidth.
1. Eight controlled runs: no candidate beats noise
Setup: RTX 5090 alone in the machine (no other game, no builds), headless, Proton with the view-tree wineserver, Series X profile, release build, warm caches, the same save in the opening cell. Each run is measured late, after the game has settled: standing with the camera on the cell window (world frames 1800–2400), then a short walk (frames 2430–2730). Times are milliseconds per frame, lower is better.
VICTORY_CARD_STEPS=2+VICTORY_RELAY=2target-cpu=nativeTEXTURE_NO_WAIT,JOIN_COPIES,INDIRECT_WINDOW,LATE_WAIT_LISTS=512,MERGE_GAP=0)The two base runs differ by 1.4 % standing and 2 % walking, so everything here is within about ±3 % of base. The optimised build profile is the only one slightly ahead (about 2 %), and that is just the compiler settings. An earlier hand-timed run had card steps 17 % faster at the window. That reading did not hold up: single readings swing by up to ±10 %, so we only trust per-minute averages over several minutes, taken in the same time window after loading.
Measuring note for anyone comparing builds: in a 20-minute session, frame time drops about 5 % after the first ~10 minutes (118 → 112 ms in our settle test). Compare candidates at the same minute after loading, never a fresh start against a settled one.
2. What the card is doing: busy, but not working
Nsight Systems GPU metrics, 20 s at 2 kHz (40,000 samples), on the RTX 5090. This capture was taken on TomTomAIbot's LinVxtory build (Series X, ray tracing off, about 6 fps, open world). His line runs Series X at about twice our frame rate in the same spot, and both lines show the same pattern in simpler tools: the card is reported mostly busy (80–94 % on his line, 66–72 % on ours) while drawing only about 120–140 W.
So about three quarters of the time the graphics engine is busy while the shader cores sit idle, and when they run they barely issue. That points at the command stream's front end: barriers, cache flushes, waits inside the stream, and many tiny dispatches one after another. It does not point at shader cost, memory bandwidth or PCIe.
This fits what others found from the CPU side: the cost of keeping title memory and card memory in step. See DaviTostes on RADV (#118), Marukooh on an RTX 5070 Ti (#1187), and BitWuehler's copies numbers on Linux.
3. Earlier: four pipelines that ate the frame's wait budget (11-25)
On 11-25 (around 17:30 UTC) we found that four compute pipelines never finished being made under Proton (
fdd56d97a806bcca,559d9f0184e15fe3,a1b20bc47e3c9597,e8c962358d862e3f). The port's per-frame pipeline wait (VICTORY_PIPELINE_WAIT_MS, 500 ms by default, shared by the frame) was spent on them in every world frame. WithVICTORY_PIPELINE_WAIT_MS=0our build went from 1.87 to 3.54 fps with the same picture. BitWuehler posted the same per-frame stall, found independently, a few hours later in #1181, which is the public reference for it. The cause is in vkd3d-proton's DXIL to SPIR-V conversion: it recursed without end on loop headers with several back edges. hh-ze's #938 fixes those hangs (its own note namesfdd56d97a806bcca); with it all four are made, and the slowest pair takes 86–115 s to make once, then comes from the cache. We still run with the wait at 0, andVICTORY_PIPELINE_WAIT_FIRST_MS=5000so a pipeline's first use waits instead of being dropped.The flip side of the same budget turned up this week: a one-shot pass that misses the wait is never run again. BitWuehler traced missing heads to exactly that in #1356.
4. Where we look next
Our focus from here is frame rate on Linux, then picture faults. Open leads, in order:
We have more leads than time. If any of these interests you, say so here: we are happy to share setups, scripts and raw numbers.
On Windows? You can still help a lot. Most of the port's copy and wait logic is the same Rust code on both systems, so leads 1, 3 and 4 can be tested on Windows directly. And the most useful single thing would be a baseline: the same spot, same card class and same build on Windows, ideally with a GPU profile (Nsight Systems or PIX). If Windows shows the shader cores busy where we see them idle, the stall is in the Linux path (vkd3d-proton's translation of barriers, Wine's write-watch or wineserver). If Windows shows the same idle cores, it is in the port's own command stream, and a fix helps everyone. inkVI-dive's
checkpointlets both sides start from the same stage.Credits: card steps by trustno1-coder (via fxceless and PastiiJay / KLBF Lab); Neptune under-writes by zm0kiemedia; the build-profile idea from Keel62155's VIctoryUnified; the switch group and the faster line by TomTomAIbot.
(written with AI assistance)
All reactions