Field report: where the GPU time goes on an RTX 3060 12 GB (per-pipeline card times with VICTORY_GPU_TIMES) #2735

Open
opened 2026-11-29 16:43:29 +00:00 by grosterr · 0 comments
grosterr commented 2026-11-29 16:43:29 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by grosterr on 2026-11-29T16:43:29Z.


On this PC the frame is limited by the card. This report breaks the card's time down by command and by pipeline, which may help decide which GPU work to go after next.

System: RTX 3060 12 GB, Ryzen 7 5700X, 32 GB RAM, Windows 11. Build: 829188e plus 16 open PRs and #2386 (the diagnostics build fix), built with --features diagnostics and LTO off. Settings: Series S, DLSS Quality preset K, FSR 3 FG 2x, RT off. Scene: Jason's house, standing on the balcony, about 9,000 draws per frame.

1. The card, not the CPU, sets the frame here. A normal build in the same place (no timing): about 79 ms per frame, of which the card is busy about 58 ms. In Nsight Systems (60 s): GR Active 74 %, SMs Active 55 %, SM issue 15.6 %, DRAM read 7.6 % / write 3.2 %. Warps per cycle: compute 13.5, pixel 2.5, vertex 2.1. So the shader units mostly wait. The card is not short of memory bandwidth or pixel work. cardmeter: 47.3 ms of the frame is in the title's own lists, about 4 ms in the layer's (2.4 ms refreshing copies, 1.9 ms comparing).

2. Per command, with VICTORY_GPU_TIMES=1. This switch puts a timestamp on every noted command and leaves the submissions as they are. Average of 22 five-second reports:

commands (first word) card time per frame commands per frame
indirect 35.4 ms ~8,100 (≈4.4 µs each)
dispatch 14.3 ms ~1,150
mesh 5.5 ms ~1,480
alias copy (the layer's) 2.1 ms 82
draw / indexed / copy 1.8 ms ~310
all 59.1 ms

The timestamps cost something: 7.8 fps instead of ~12.7, and GPU BUSY was 68.6 ms instead of ~58. The split between kinds should still hold.

3. No single heavy pass. 1,283–1,392 different pipeline keys run per report. The heaviest is 3.3 ms per frame, 5.5 % of the total. The top 40 together are 31.9 ms (54 %), and the other ~27 ms is spread over ~1,250 keys. The heaviest ones:

ms per frame commands per frame what
3.26 200 indirect [mesh adc5c689b0552cc2, pixel 64ea0f3428db6a24]
2.68 92 indirect [mesh 89a622617919c92a, pixel 6539386abadf88c7]
2.47 267 indirect [mesh 0a2ea81ca59d6510, pixel 19acd330dacc8f32]
2.10 82 alias copy
1.51 1 indirect [vertex e732a8b4bea4c0dd, pixel 456f02b52910aabc]
1.50 108 indirect [mesh df4b2c7798c14c90, pixel d9fcb8a4425fc59b]
1.23 1 dispatch [compute 34fb51b8a0312e82]
1.00 221 indirect [mesh ff2afa5e9a460ff0, pixel 3084ebdc38f9b9ec]
0.96 1 indirect [compute 776d835da5ffa646]
0.87 156 indirect [mesh 0a2ea81ca59d6510, pixel 4b3d2c8f7a15e7a1]

Keys seen 10 or more times per frame make up 21.1 ms of the top 40, and one-off passes 10.8 ms. Most of the time is geometry: ~9,600 small indirect and mesh calls, ~41 ms.

4. Joining indirect executions would not help this scene. The counters VICTORY_INDIRECT_MERGE keeps even when it is off say that of ~5,200 indirect executions per frame, 0 could join the one before. About 3,450 come after the title changed their binding, ~1,350 use another pipeline, and ~350 come after a title call that records.

5. About 10 ms of GPU BUSY is outside the commands. GPU BUSY was 68.6 ms against 59.1 ms of timed commands. That is gaps between commands (barriers, waits) plus the layer's own lists. The barrier PRs that are still open (#1852 UAV_FOLD, #1890, #1851 WAIT_SHARE) go after exactly this part. I'll measure them on this scene next and post the numbers.

How to get the same table: build with --features diagnostics (needs #2386 on 829188e), run with VICTORY_GPU_TIMES=1, stand still for 2–3 minutes. Then average the the card's time by command (timing run) lines of victory_gpu::copystat. Not VICTORY_GPU_TIMING: it sends each list on its own, which changes the frame.

Posted by Claude Code on behalf of the machine's owner.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6681346222 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2735). Originally posted by [grosterr](https://github.com/grosterr) on 2026-11-29T16:43:29Z. --- On this PC the frame is limited by the card. This report breaks the card's time down by command and by pipeline, which may help decide which GPU work to go after next. **System:** RTX 3060 12 GB, Ryzen 7 5700X, 32 GB RAM, Windows 11. Build: `829188e` plus 16 open PRs and #2386 (the diagnostics build fix), built with `--features diagnostics` and LTO off. Settings: Series S, DLSS Quality preset K, FSR 3 FG 2x, RT off. Scene: Jason's house, standing on the balcony, about 9,000 draws per frame. **1. The card, not the CPU, sets the frame here.** A normal build in the same place (no timing): about 79 ms per frame, of which the card is busy about 58 ms. In Nsight Systems (60 s): GR Active 74 %, SMs Active 55 %, **SM issue 15.6 %**, DRAM read 7.6 % / write 3.2 %. Warps per cycle: compute 13.5, pixel 2.5, vertex 2.1. So the shader units mostly wait. The card is not short of memory bandwidth or pixel work. `cardmeter`: 47.3 ms of the frame is in the title's own lists, about 4 ms in the layer's (2.4 ms refreshing copies, 1.9 ms comparing). **2. Per command, with `VICTORY_GPU_TIMES=1`.** This switch puts a timestamp on every noted command and leaves the submissions as they are. Average of 22 five-second reports: | commands (first word) | card time per frame | commands per frame | |---|---|---| | `indirect` | **35.4 ms** | ~8,100 (≈4.4 µs each) | | `dispatch` | 14.3 ms | ~1,150 | | `mesh` | 5.5 ms | ~1,480 | | `alias copy` (the layer's) | 2.1 ms | 82 | | `draw` / `indexed` / `copy` | 1.8 ms | ~310 | | **all** | **59.1 ms** | | The timestamps cost something: 7.8 fps instead of ~12.7, and GPU BUSY was 68.6 ms instead of ~58. The split between kinds should still hold. **3. No single heavy pass.** 1,283–1,392 different pipeline keys run per report. The heaviest is 3.3 ms per frame, 5.5 % of the total. The top 40 together are 31.9 ms (54 %), and the other ~27 ms is spread over ~1,250 keys. The heaviest ones: | ms per frame | commands per frame | what | |---|---|---| | 3.26 | 200 | indirect `[mesh adc5c689b0552cc2, pixel 64ea0f3428db6a24]` | | 2.68 | 92 | indirect `[mesh 89a622617919c92a, pixel 6539386abadf88c7]` | | 2.47 | 267 | indirect `[mesh 0a2ea81ca59d6510, pixel 19acd330dacc8f32]` | | 2.10 | 82 | alias copy | | 1.51 | 1 | indirect `[vertex e732a8b4bea4c0dd, pixel 456f02b52910aabc]` | | 1.50 | 108 | indirect `[mesh df4b2c7798c14c90, pixel d9fcb8a4425fc59b]` | | 1.23 | 1 | dispatch `[compute 34fb51b8a0312e82]` | | 1.00 | 221 | indirect `[mesh ff2afa5e9a460ff0, pixel 3084ebdc38f9b9ec]` | | 0.96 | 1 | indirect `[compute 776d835da5ffa646]` | | 0.87 | 156 | indirect `[mesh 0a2ea81ca59d6510, pixel 4b3d2c8f7a15e7a1]` | Keys seen 10 or more times per frame make up 21.1 ms of the top 40, and one-off passes 10.8 ms. Most of the time is geometry: ~9,600 small indirect and mesh calls, ~41 ms. **4. Joining indirect executions would not help this scene.** The counters `VICTORY_INDIRECT_MERGE` keeps even when it is off say that of ~5,200 indirect executions per frame, **0** could join the one before. About 3,450 come after the title changed their binding, ~1,350 use another pipeline, and ~350 come after a title call that records. **5. About 10 ms of GPU BUSY is outside the commands.** GPU BUSY was 68.6 ms against 59.1 ms of timed commands. That is gaps between commands (barriers, waits) plus the layer's own lists. The barrier PRs that are still open (#1852 `UAV_FOLD`, #1890, #1851 `WAIT_SHARE`) go after exactly this part. I'll measure them on this scene next and post the numbers. How to get the same table: build with `--features diagnostics` (needs #2386 on `829188e`), run with `VICTORY_GPU_TIMES=1`, stand still for 2–3 minutes. Then average the `the card's time by command (timing run)` lines of `victory_gpu::copystat`. Not `VICTORY_GPU_TIMING`: it sends each list on its own, which changes the frame. Posted by Claude Code on behalf of the machine's owner.
Sign in to join this conversation.
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA#2735
No description provided.