4K: shader cost about twice what the card should take #1

Open
opened 2026-12-02 19:08:31 +00:00 by github-bot · 1 comment
Owner

@⁠kc01-8 on GitHub · 2026-12-01 23:49 UTC · original

At a 4K output (2560x1440 rendered, DLSS Quality, no frame generation) on an RTX 3080 Ti the card is the limit: SMs 90-100 % busy, memory bandwidth 6-17 %, PCIe under 2 GB/s, no throttling. The per-pipeline card meter shows no hot pass: 89.5 ms of card time in 1,156 bindings of 1,070 pipelines, the largest 4.9 ms. A 4060 on Windows (the VIctory-8GB fork) does the same frame in about 50 ms; here it takes 85-140 ms.

Done: VICTORY_SAMPLED_MARKS=0 in the profile (an atomic per texture read that only fed a count): 9-11 fps in the world against 7-9, one run each.

Next, one per run after a warm-up (WARM=1): VICTORY_NAN_SCRUB=0, VICTORY_BVH_MISS=0, the run without VKD3D_CONFIG=no_descriptor_heap. Details: docs/portwatch-lab.md on kc/trustno1.

🤖 Generated with Claude Code

**@⁠kc01-8** on GitHub · 2026-12-01 23:49 UTC · [original](https://github.com/kc01-8/LINUX-NVIDIA-VI/issues/1) At a 4K output (2560x1440 rendered, DLSS Quality, no frame generation) on an RTX 3080 Ti the card is the limit: SMs 90-100 % busy, memory bandwidth 6-17 %, PCIe under 2 GB/s, no throttling. The per-pipeline card meter shows no hot pass: 89.5 ms of card time in 1,156 bindings of 1,070 pipelines, the largest 4.9 ms. A 4060 on Windows (the VIctory-8GB fork) does the same frame in about 50 ms; here it takes 85-140 ms. Done: `VICTORY_SAMPLED_MARKS=0` in the profile (an atomic per texture read that only fed a count): 9-11 fps in the world against 7-9, one run each. Next, one per run after a warm-up (`WARM=1`): `VICTORY_NAN_SCRUB=0`, `VICTORY_BVH_MISS=0`, the run without `VKD3D_CONFIG=no_descriptor_heap`. Details: docs/portwatch-lab.md on kc/trustno1. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 19:08:31 +00:00
Author
Owner

@⁠kc01-8 on GitHub · 2026-12-03 04:54 UTC · original

Measured 2026-12-02 at 1440p with DLSS performance (render 1280x720), kc/trustno1, runs of 300 s, without NVIDIA's performance counters (they need a driver option and a reboot):

  • Shader arithmetic is not the cost. A static count of the 15,462 translated shaders found no register spills and almost no atomics or barriers; the largest overhead is the console's legacy multiply rule (~14 % of operations). Its RDNA forms on this card (VICTORY_HOST_RDNA=1 VICTORY_RDNA_FLOAT=15, a full warm-up) gave 18.6 fps against 19.1: no change.
  • The card is busy but underfed. vkd3d-proton's queue timeline (VKD3D_QUEUE_PROFILE): some queue has work 93-97 % of the time in play; nvidia-smi: kernels run 85-89 % of it; the memory bus 7-8 % busy.
  • About 9,000 compute dispatches a frame, from a vkd3d-proton built with -Denable_profiling=true (VKD3D_TIMESTAMP_PROFILE; it times dispatches, not draws): 90 % under 20 µs each, 55 % of the compute time; 50 % of the time in 19 pipelines. One 0.6 µs pipeline runs about 2,900 times a frame beside ~4,500 indirect executions a frame, most likely the runtime's indirect-argument clamp.
  • VICTORY_INDIRECT_BATCH=3 (the profile has 2): 19.6 against 17.8 fps over 200-300 s, one run each, the picture not checked yet.

So the gap looks like a long chain of small dependent dispatches, each paying a fixed cost on this driver, not the work inside them. Follow-up in #6.

🤖 Generated with Claude Code

**@⁠kc01-8** on GitHub · 2026-12-03 04:54 UTC · [original](https://github.com/kc01-8/LINUX-NVIDIA-VI/issues/1#issuecomment-7368166870) Measured 2026-12-02 at 1440p with DLSS performance (render 1280x720), `kc/trustno1`, runs of 300 s, without NVIDIA's performance counters (they need a driver option and a reboot): - **Shader arithmetic is not the cost.** A static count of the 15,462 translated shaders found no register spills and almost no atomics or barriers; the largest overhead is the console's legacy multiply rule (~14 % of operations). Its RDNA forms on this card (`VICTORY_HOST_RDNA=1 VICTORY_RDNA_FLOAT=15`, a full warm-up) gave **18.6 fps against 19.1**: no change. - **The card is busy but underfed.** vkd3d-proton's queue timeline (`VKD3D_QUEUE_PROFILE`): some queue has work 93-97 % of the time in play; nvidia-smi: kernels run 85-89 % of it; the memory bus 7-8 % busy. - **About 9,000 compute dispatches a frame**, from a vkd3d-proton built with `-Denable_profiling=true` (`VKD3D_TIMESTAMP_PROFILE`; it times dispatches, not draws): 90 % under 20 µs each, 55 % of the compute time; 50 % of the time in 19 pipelines. One 0.6 µs pipeline runs about 2,900 times a frame beside ~4,500 indirect executions a frame, most likely the runtime's indirect-argument clamp. - `VICTORY_INDIRECT_BATCH=3` (the profile has 2): **19.6 against 17.8 fps** over 200-300 s, one run each, the picture not checked yet. So the gap looks like a long chain of small dependent dispatches, each paying a fixed cost on this driver, not the work inside them. Follow-up in #6. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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/kc01-8--LINUX-NVIDIA-VI#1
No description provided.