GPU time in the world on NVIDIA is spread over ordinary draws (45–120 ms each), not copies or wave64 #3028

Open
opened 2026-11-26 06:26:53 +00:00 by github-bot · 4 comments
Owner

@⁠kawaii-shakal on GitHub · 2026-11-26 03:52 UTC · original

On an RTX 5070 Ti (Windows 11, native D3D12), GTA VI in the world runs at 0.4–0.8 fps. With VICTORY_GPU_TIMING=1 VICTORY_D3D12_DRED=1 (diagnostics build), the GPU takes 1.1–1.8 s per frame and the CPU 0.1–0.4 s. The GPU time is spread over ordinary draws. The wave64 compute programs (console flow, #439) are not where it goes.

Costliest commands, ms per frame (several 5 s windows):

command ms/frame calls/frame
draw [vertex 58d926085fca4999, pixel edc1cad8ffb79bc9] 45–123 2–4
indirect [mesh b7a81f5b96f4ca93, pixel 43e24028d4a1faef] 72–96 30–157
indirect [vertex 4e35b816f2f91d68, pixel 659fe9cae59dbd88] 19–122 9–27
draw [vertex 1ce8ba2fe12072c1, pixel 4dd4a3d69c1bd8ca] ~61 1
draw [vertex c5310733d58458c8, pixel 5460ce5f3b925eee] 20–59 7
dispatch [compute a7eeed0646be1ab7] ~48 1

Moving host copies into GPU upload heaps does not change these numbers. That covers buffers (#2870) and, in a local change, the loose windows as well, in the spirit of #2875: 5.2 GB of copies sat in video memory against 1.3 GB before, and the per-draw times stayed the same. So these draws are not bound by shaders reading the copies across PCIe. A single draw at ~61 ms points at the translated shaders themselves, or at what they index: the paged view heap (#2121), descriptor reads, or texture paths.

I can run more diagnostics builds or dump specific shaders if someone has a lead.

🤖 Generated with Claude Code (Claude Opus 5.5)

**@⁠kawaii-shakal** on GitHub · 2026-11-26 03:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/3028) On an RTX 5070 Ti (Windows 11, native D3D12), GTA VI in the world runs at 0.4–0.8 fps. With `VICTORY_GPU_TIMING=1 VICTORY_D3D12_DRED=1` (diagnostics build), the GPU takes 1.1–1.8 s per frame and the CPU 0.1–0.4 s. The GPU time is spread over ordinary draws. The wave64 compute programs (console flow, #439) are not where it goes. Costliest commands, ms per frame (several 5 s windows): | command | ms/frame | calls/frame | |---|---|---| | draw `[vertex 58d926085fca4999, pixel edc1cad8ffb79bc9]` | 45–123 | 2–4 | | indirect `[mesh b7a81f5b96f4ca93, pixel 43e24028d4a1faef]` | 72–96 | 30–157 | | indirect `[vertex 4e35b816f2f91d68, pixel 659fe9cae59dbd88]` | 19–122 | 9–27 | | draw `[vertex 1ce8ba2fe12072c1, pixel 4dd4a3d69c1bd8ca]` | ~61 | 1 | | draw `[vertex c5310733d58458c8, pixel 5460ce5f3b925eee]` | 20–59 | 7 | | dispatch `[compute a7eeed0646be1ab7]` | ~48 | 1 | Moving host copies into GPU upload heaps does not change these numbers. That covers buffers (#2870) and, in a local change, the loose windows as well, in the spirit of #2875: 5.2 GB of copies sat in video memory against 1.3 GB before, and the per-draw times stayed the same. So these draws are not bound by shaders reading the copies across PCIe. A single draw at ~61 ms points at the translated shaders themselves, or at what they index: the paged view heap (#2121), descriptor reads, or texture paths. I can run more diagnostics builds or dump specific shaders if someone has a lead. 🤖 Generated with [Claude Code](https://claude.com/claude-code) (Claude Opus 5.5)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:26:53 +00:00
Author
Owner

@⁠HLVM04 on GitHub · 2026-11-26 03:56 UTC · original

A same-card comparison from the fxceless fork (not upstream main), RTX 5070 Ti, Windows 11, native D3D12, so the card itself isn't what limits these draws:

  • Fork 9376fd6, Series X profile, VICTORY_GPU_TIMING=1 VICTORY_D3D12_DRED=1, one run: the frame line said 185.8 ms on the GPU, and the per-command sums were 119.7 ms (indirect 72.4 ms over 5,165 commands, dispatch 39.0 over 3,853, mesh 4.1, alias copy 1.9). The heaviest single dispatch was 7.2 ms, the heaviest indirect mesh group 6.3 ms over 197 commands.
  • On the Series S profile with several fork PRs on top, means after 60 s were 90 ms preparing, 43 ms on the GPU and 69 ms copying back. The card waited about 1 ms a frame, so the frame is processor-bound there.

So the same title and card take 0.04–0.19 s of GPU time a frame on that tree, against your 1.1–1.8 s. That points at something in this tree's handling of those draws rather than at the hardware. Diffing how the fork treats them could help. Different scenes and trees, one or a few runs each.

**@⁠HLVM04** on GitHub · 2026-11-26 03:56 UTC · [original](https://github.com/Marvisak/VIctory/issues/3028#issuecomment-7182152542) A same-card comparison from the fxceless fork (not upstream main), RTX 5070 Ti, Windows 11, native D3D12, so the card itself isn't what limits these draws: - Fork 9376fd6, Series X profile, `VICTORY_GPU_TIMING=1 VICTORY_D3D12_DRED=1`, one run: the frame line said 185.8 ms on the GPU, and the per-command sums were 119.7 ms (indirect 72.4 ms over 5,165 commands, dispatch 39.0 over 3,853, mesh 4.1, alias copy 1.9). The heaviest single dispatch was 7.2 ms, the heaviest indirect mesh group 6.3 ms over 197 commands. - On the Series S profile with several fork PRs on top, means after 60 s were 90 ms preparing, 43 ms on the GPU and 69 ms copying back. The card waited about 1 ms a frame, so the frame is processor-bound there. So the same title and card take 0.04–0.19 s of GPU time a frame on that tree, against your 1.1–1.8 s. That points at something in this tree's handling of those draws rather than at the hardware. Diffing how the fork treats them could help. Different scenes and trees, one or a few runs each.
Author
Owner

@⁠Ingenioeren on GitHub · 2026-11-26 06:42 UTC · original

I checked an accounting detail that affects the pipeline totals in this report. On main at 63bcca4, the per-command table only aggregates submissions containing more than one host-list group. In a synthetic Windows WARP test with VICTORY_GPU_TIMING=1 and VICTORY_D3D12_DRED=1, a one-list submission produced a readable timestamp entry but no aggregate entry. Submitting two lists with one note each produced one aggregate entry per list. The test used empty command lists and did not load the title. Aggregation gate · Timestamp readback

The frame's submission time still includes the one-list groups, so the per-command totals can omit work. A comparison between upstream and a fork that splits submissions differently can therefore change what appears in this table. PR #1735 already proposes reporting each timed list. This result confirms the coverage gap on main and does not identify the cause of the long draws.

AI-assisted synthetic verification by OpenAI Codex.

**@⁠Ingenioeren** on GitHub · 2026-11-26 06:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/3028#issuecomment-7184709640) I checked an accounting detail that affects the pipeline totals in this report. On `main` at `63bcca4`, the per-command table only aggregates submissions containing more than one host-list group. In a synthetic Windows WARP test with `VICTORY_GPU_TIMING=1` and `VICTORY_D3D12_DRED=1`, a one-list submission produced a readable timestamp entry but no aggregate entry. Submitting two lists with one note each produced one aggregate entry per list. The test used empty command lists and did not load the title. [Aggregation gate](https://github.com/Marvisak/VIctory/blob/63bcca43c6a00a758510398fa43096ce7e4f7df0/crates/victory-gpu/src/host.rs#L1255-L1303) · [Timestamp readback](https://github.com/Marvisak/VIctory/blob/63bcca43c6a00a758510398fa43096ce7e4f7df0/crates/victory-gpu/src/host.rs#L1713-L1736) The frame's submission time still includes the one-list groups, so the per-command totals can omit work. A comparison between upstream and a fork that splits submissions differently can therefore change what appears in this table. PR #1735 already proposes reporting each timed list. This result confirms the coverage gap on main and does not identify the cause of the long draws. AI-assisted synthetic verification by OpenAI Codex.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-26 06:45 UTC · original

Automated triage for the maintainers.

Run report: RTX 5070 Ti, Windows 11, native D3D12, diagnostics build, in the world at 0.4–0.8 fps with 1.1–1.8 s of GPU time a frame spread over ordinary draws (single draws of 45–120 ms), and unchanged when the host copies were moved into upload heaps. The frame time in the world on this card is discussed in #400 (same card, where the ~0.8 s per frame go, and the copy PRs measured against main); please add further measurements there. The paged view heap mentioned (#2121) is open and compared in #1627 and #1760.

Two details that place this exactly are missing: the VIctory commit this was built from (and whether #2870 and the local change were on top of it), and the NVIDIA driver version.

The comment below compares a third-party fork on the same card; forks can't be checked from this tracker.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-26 06:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/3028#issuecomment-7184744113) <!-- victory-issue-triage v1 verdict=needs-info seen=2026-11-26T03:56:18Z at=2026-11-26T07:05:00Z --> Automated triage for the maintainers. Run report: RTX 5070 Ti, Windows 11, native D3D12, diagnostics build, in the world at 0.4–0.8 fps with 1.1–1.8 s of GPU time a frame spread over ordinary draws (single draws of 45–120 ms), and unchanged when the host copies were moved into upload heaps. The frame time in the world on this card is discussed in #400 (same card, where the ~0.8 s per frame go, and the copy PRs measured against `main`); please add further measurements there. The paged view heap mentioned (#2121) is open and compared in #1627 and #1760. Two details that place this exactly are missing: the VIctory commit this was built from (and whether #2870 and the local change were on top of it), and the NVIDIA driver version. The comment below compares a third-party fork on the same card; forks can't be checked from this tracker. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠neonbyte1 on GitHub · 2026-11-26 17:08 UTC · original

@⁠Ingenioeren the single-list gap you found on WARP: #3313 fixes it. gpu_times() now runs for every submission while timing is on. On an RTX 5090 under Wine, GPU timing: lists now matches the fps line's on the GPU (742–766 against 751–797 ms/frame); without it, about 100 ms/frame was missing from the summary. You're credited there.

AI-assisted (Claude); measured on my machine, no game data shared.

**@⁠neonbyte1** on GitHub · 2026-11-26 17:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/3028#issuecomment-7198554736) @⁠Ingenioeren the single-list gap you found on WARP: #3313 fixes it. `gpu_times()` now runs for every submission while timing is on. On an RTX 5090 under Wine, `GPU timing: lists` now matches the fps line's `on the GPU` (742–766 against 751–797 ms/frame); without it, about 100 ms/frame was missing from the summary. You're credited there. _AI-assisted (Claude); measured on my machine, no game data shared._
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/Marvisak--VIctory#3028
No description provided.