RTX 3060 Ti (8 GB): measurements of the retail title's world load (memory by kind, ExecuteIndirect rounds, GPU 26 s behind) #2666
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2666
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?
@LucasHoepfner on GitHub · 2026-11-26 05:37 UTC · original
Measurements from an 8 GB NVIDIA card, for whoever works on the world load of the newer retail title of #505. It reaches the world here and runs for 300 s without a device removal, at 0.2 to 0.6 frames a second. I did not find the cause of the frame rate; below is what was measured, what was ruled out, and what is still open. Related: #2595 (RTX 3070 on nvidia-dev), #675, #2403, #2057.
Setup
mainatb49be18with #684 #751 #1803 #2229 #2551 #2581 #1975 #2404 #2097 #1798 #2590 #2385 #1182 and the top commit of #735 merged locally. Also run as they are:nvidia-devatc044dc6andamd-devatb5c0275.XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_PSO_WAIT_MS=50, warm caches, 140 to 300 s a run, world reached after about 76 s.xcl nvprofile install --mb 2048). With 1 GB the device was removed at world entry (0x887a0005); with 2 GB it was not in any run.What was measured
XCL_SPLIT_INDIRECT_ROUNDS=2instead of the default 32 takes 1.5 GB off that rest (3,149 to about 1,650 MB), 1.8 GB off non-local memory (6,926 to 5,166 MB) and 2.6 GB off the commit, with 0 slabs lost in 140 s. 208 command signatures are made between 76 and 80 s, one per split program's first ExecuteIndirect, and each of those records 32 rounds times its pieces. My reading, not proven: the driver keeps memory for each recorded ExecuteIndirect with a root-constant argument until the allocator is reset. The frame rate did not change.XCL_DEVICE_TYPE=lockhart,XCL_RENDER_RES=1920x1080(#735),XCL_TEXTURE_MAX=256(#2385), 2 rounds: 9,968 MB local, still 2.7 GB over the budget, 6 to 13 frames per 20 s. Of the 4,544 MB of sparse pools only 3,258 MB are mapped. WithXCL_RENDER_RES=1280x720the title divides by zero (0xc0000094 at +0x28f03e8) at 81 s.nvidia-devamd-devamd-devhas 29 times fewer pieces and the same frame rate, so the number of chain pieces is not what limits it here.5. GPU load by process and engine (Windows' GPU Engine counters) in the world: the title's 3D engine 93 %, and the System process's copy engine 30 % on average and up to 96 %: Windows moves video memory all the time. Dedicated memory is full (7.7 to 8.0 GB) with 7 to 12 GB shared.
6. XCL's own steps before a submit, switched off one at a time while the title rendered (texture uploads, target pages, uploads into the sparse windows): no change in GPU load (91 to 99 %) or frames. They do cost CPU on the submitting thread: the texture step 3 to 5 s of every 10 s, and about 11,000 UpdateTileMappings calls per 10 s take 4.5 s (0.4 ms each;
churn_update_tile_mappings_timinggives 69 µs each on the idle card).7. The GPU is far behind the title. With the title's draws, its dispatches and XCL's pre-submit steps all skipped, the title submits nothing for 26 s, its render thread spins in a wait, and its 3D engine stays 90 to 95 % busy the whole time; then the title ends at +0x23cf683, the address of #675. So queued work takes at least 26 s to drain.
Open
Not tested
mainatb49be18: https://github.com/LucasHoepfner/xcl/tree/diag/world-load-measurements (what each does:scripts/diag/README.md). Not for merge. Onmainthey passcargo check -p xcl --all-targets; the runs above were made with the same changes on the local merge, not on that branch.Also seen
XCL_THREAD_DUMP_ATcrashed the process on this tree (0xc0000005 in ntdll on the dump thread).AI use