GPU time in the world on NVIDIA is spread over ordinary draws (45–120 ms each), not copies or wave64 #3026
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by kawaii-shakal on 2026-11-26T03:52:29Z.
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):
[vertex 58d926085fca4999, pixel edc1cad8ffb79bc9][mesh b7a81f5b96f4ca93, pixel 43e24028d4a1faef][vertex 4e35b816f2f91d68, pixel 659fe9cae59dbd88][vertex 1ce8ba2fe12072c1, pixel 4dd4a3d69c1bd8ca][vertex c5310733d58458c8, pixel 5460ce5f3b925eee][compute a7eeed0646be1ab7]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)
Imported from Marvisak/VIctory. Originally posted by HLVM04 on 2026-11-26T03:56:18Z.
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:
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.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.
Imported from Marvisak/VIctory. Originally posted by Ingenioeren on 2026-11-26T06:42:58Z.
I checked an accounting detail that affects the pipeline totals in this report. On
mainat63bcca4, the per-command table only aggregates submissions containing more than one host-list group. In a synthetic Windows WARP test withVICTORY_GPU_TIMING=1andVICTORY_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 readbackThe 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.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T06:45:04Z.
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
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-26T14:44:07Z.
## The same draw costs 0.0 ms on the GPU in a tree that renders the world — and the hash is in our log too
@kawaii-shakal, your top row is the one I can speak to, because the same pipeline pair appears in our own translation log:
So this is not a shader that only exists on your tree. What differs is what the frame line says about where the time goes.
Our numbers, same title, 12 GB NVIDIA, Windows 10
Frame lines from a tree that draws the world correctly (
crates/victory-gpuwith the capped-heap split), 1280x720,--console series-x:0.0 on the GPUis what the frame line prints on every world frame here. The whole frame is CPU-side preparation. Your 1.1-1.8 seconds on the GPU, against our 0.0 ms with the same shaders translated and the same draw issued, is the largest difference between the two trees I have seen and it is not explained by hardware (5070 Ti vs 4070 SUPER is one tier).What that suggests, and what it does not
It points away from "the translated shader is expensive" and towards something the draw indexes being different between the trees — which is the direction you already suspected (paged view heap, descriptor reads, texture paths). Two specific things I would check, both cheap:
1. Is the draw actually drawing anything? Ours issues the same draw and the world appears. If yours spends 45-123 ms on 2-4 calls against a picture that does not reach the output, the cost may be in a path that ours never walks — a stand-in texture, a format twin, or a view whose contents are null.
VICTORY_GPU_TIMINGwill not say which; a target dump at the draw's bound RTV will.2. Descriptor path. On our tree the whole 1,245,184-slot heap is written to at 92,113 addresses in a run and the heap is split 393,215 title / 606,784 dynamic. If your tree pages instead (#2121), every draw that touches a reclaimed page re-places it — and that cost lands inside the draw, which is exactly the shape of your table (a few calls, tens of ms each).
The control I would run if I had your card
Same scene, same save, both trees, one run each, with
VICTORY_GPU_TIMING=1:main+ your stack: expect the 45-123 ms you measured0.0 on the GPUIf the second shows 0.0, the GPU time is the heap layout, not the shaders, and the fix is in the descriptor path. I cannot run this myself — no 5070 Ti, and the paged path draws black on my 12 GB card, so I have only the one side.
Not measured by me
Your card, your Windows 11, and
mainat your commit. Everything above is one machine: RTX 4070 SUPER 12 GB, driver 591.74, Windows 10.0.19045, Ryzen 7 7800X3D, 31 GB. The write-up and the raw frame lines are at https://github.com/bittertea0323/gta6-win10-notes — no title content in it.Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-26T17:08:19Z.
@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: listsnow matches the fps line'son 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.
Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-27T22:20:53Z.
A map of the open PRs that move host copies of title memory into video memory, since #3312 says it addresses part of this. The numbers are the authors' or testers' own, and the PR links are the sources. My own runs are tests only, no title.
Shadowallocations, the title-memory page table and dirty bitmaps, in DEFAULT heaps up to 25 % of the local budget=1vertex/index/constant,=2written heaps)VICTORY_VRAM_COPIES)VICTORY_CARD_COPIES)mainVICTORY_LOOSE_IN_GPU_UPLOAD)GPUUploadHeapSupportedOverlap. I merged each one locally onto #3312 (
576188a1). #2993, #2705, #2734, #3102, #2875 and #3228 all conflict with it (shadow.rs, andhost.rsormemory.rs). So does #3318, the quadratic-snapshot fix. #3470 and #3440 merge cleanly. Whichever of these lands first, the others need rework.Two observations from the numbers above:
From a fork, for the sizing: trustno1-coder/VIctory-NVIDIA has commit
22035389(readmet3xt-lab). It changes a 512 MB cap on card copies of title buffers to 18 % of the budget (512 to 2048 MB), plus 9 % (at most 1024 MB) for windows. On an RTX 4070 SUPER it reports the opening's six heaviest compute passes going from 20-42 ms each to 0.2-0.4 ms, and gameplay from 3 to 21-25 fps. #3505's 8 GB laptop result (VICTORY_MEMORY_CARD_MB1024 → 2048, about 6×, from another fork) points the same way. The forks' code is GPL-3.0 like this repo.My RTX 3070 8 GB test run of #3312 is in #3312: no regressions against
main, and its VRAM path is used on an 8 GB card.AI-assisted (Claude Code, Claude Opus 5.5 compiled the table, ran the merges and checked the numbers against each PR).