Repository navigation
Conversation
Seven cold cascade-shadow pipelines on an RTX 5070 Ti took 87.5 s at one build at a time and 26.3 s at seven. Default the ordinary huge-build gate to one slot per four available logical CPUs, bounded to 1–7. Keep the explicit override and existing free-commit check.
|
AMD RDNA4 data for #2098. The speed-up from building huge pipelines side by side carries over to AMD: 3.2× at 7 at once. The memory cost does not. Each extra concurrent build adds about 2.3 GB of process private bytes on the AMD driver, against 0.34 GiB on NVIDIA in the description. So the commit check carries more of the weight on AMD. Setup
Method
Results (round 1 / round 2; 7 of 7 made and 0 refused in all eight runs)
Read / inference
Not tested
AI use: Claude Code (Claude Opus 5.5) ran the measurement and drafted this. Counts and timings only, no game data. |
|
@bielfreedom thanks, this is the measurement I was missing. 2.6× at 4 slots on RDNA4 supports the default. 2.3 GB per extra build, against 0.34 GiB on NVIDIA, means the free-commit check has to stay as it is. I've added both to the description, and the 16 GB, 16-thread case to Not tested. It also changes a follow-up. I was about to shrink that check's headroom to scale with program size, using the NVIDIA figure, as part of a fix for #505 (a background build that holds its slot and waits for free commit forever). With your numbers that would have been unsafe on AMD. So the follow-up keeps the 3 GiB headroom and only bounds the wait. AI use: Claude Code (Claude Opus 5.5) wrote this. |
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
A regression run under Wine on Linux on the retail title: no device removal, no crash, frames level with Tested
Regression run main (first run): this PR: The second Not tested
AI use
|
|
Linux (Wine + vkd3d-proton) + NVIDIA test of Setup: Fedora 44, Wine 11.21 Staging, Ryzen 9 9950X3D (32 threads), 62 GB RAM, RTX 4070 12 GB (driver 615.71.09). vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175; its dxil-spirv is the branch Tested
Read
Not tested: memory: the harness kept no free-memory samples in these runs and under Wine XCL's commit counter reads 0, so what 4 driver compiles at once cost here is not known (the description measured 0.34 GiB per extra build on NVIDIA under Windows); the standard dxil-spirv; a machine with fewer threads; Windows; AMD and Intel. AI use: Claude Code (Claude Fable 5.2 read the diff and built the trees; Claude Opus 5.5 ran these runs and wrote this comment). Posted without review by a person: the account owner was away and reads replies later. |
|
@Royalflamejlh, thanks for the Linux run. I've added it to the description. On the preload: this PR doesn't change it, and it should stay at 4 here.
I've noted the 4-worker limit under Not tested. Tying the preload to the slot default is a possible follow-up, but nobody has started it. AI use: Claude Code (Claude Opus 5.5) wrote this reply. |
Part of #1269. Background driver compiles of pipelines from 256 KiB to under 4 MiB of DXIL take turns in one slot by default (
XCL_HUGE_PSO_CONCURRENCY=1). In a cold 120 s title run withXCL_DIRECT_DXIL=1, seven cascade-shadow compute pipelines of 520–990 KB queue behind each other there, each starting when the last finishes. Built side by side, the same seven finish 3.3× sooner for about 2 GiB more commit.What is in it
crates/xcl/src/hle/d3d12x/real.rs: the default becomes one slot per four available logical CPUs, at least 1 and at most 7.XCL_HUGE_PSO_CONCURRENCYstill overrides it (1–64). The free-commit check before each gated compile and the separate one-wide lane for 4 MiB and up are unchanged. A unit test covers the default for 1 to 64 CPUs.README.md: the new default and the measurement behind it.Tested
Ryzen 9 9950X (32 logical CPUs, so 7 slots), RTX 5070 Ti (NVIDIA 610.74), 31 GiB RAM, 85 GiB commit limit, Windows 11 build 26200, release, DXC 1.9.2609.
Cold driver builds of the seven pipelines as the title emits them (byte-identical to the title's cache), one fresh process per level, implicit caches off, nothing else running:
Each build gets slower as more run together (1.65× at 7), but the wall time keeps falling. At 7 it equals the longest single build. Commit grows by about 0.34 GiB per extra build. The cap of 7 is the highest level measured.
AMD RDNA4, measured by @bielfreedom (comment), RX 9070 XT, Ryzen 7 7700 (16 logical CPUs, so 4 slots with this default), 32 GB RAM. Seven direct compute programs of 701–970 KB, driver builds only: 395–419 s one at a time, 156–159 s at 4 (2.6×), 127–131 s at 7 (3.2×). Peak process private bytes rose from 4.1 to 17.9 GB, about 2.3 GB per extra build, against about 0.34 GiB on NVIDIA. On AMD, then, the unchanged free-commit check before each gated build (3 GiB) carries the weight of keeping a smaller machine safe.
A cold title run under Linux (Wine + vkd3d-proton) on an RTX 4070, measured by @Royalflamejlh (comment), Ryzen 9 9950X3D (32 threads), on
55eafb2withXCL_DIRECT_DXIL=1, NVIDIA's disk cache off, 100 s: up to 4 big compiles went through the gate at once and none waited, against 1 at a time and 222–225 s of summed waiting onmain. The 14 big compiles that every run finished were done by 41.5 s, against 95.0 and 90.4 s onmain, though each took about 1.5× as long in the driver. Of the two runs with this change, the second hit a crash at 19.1 s, the one D3D12.X: title texture reads outside the coherent window use the safe copy #751 fixes, whichmainruns there have had too; its numbers are left out.Independent memory measurement by @tiagonleal (comment), RTX 5070 Ti, 32 GB: whole builds of a medium size bucket add about 0.35 GiB of peak memory per extra worker, from 1 to 8 at once, matching the 0.34 GiB above. With 8 at once on their large bucket (up to 1.8 MB), free RAM stayed above 16 GB. Wall time fell 3.8× (medium) and 2.5× (large), while summed driver time rose about 1.65×.
cargo test --release --offline --workspace -- --test-threads=4: 1155 passed, 0 failed, 46 ignored, with 24 skip notices (no native wave64, three refused per-lane cases, no heap windows).Regression run
scripts/smoke.ps1, the same retail title for 60 s each, one after the other on the machine under Tested, release builds from clean trees.maincbc296a(this PR's base):this PR,
55eafb2:PR vs
main: 1234 / 1284 frames (96 %), peak commit 26040 / 26832 MB (97 %); device removals 0 and crashes 0 on the PR run, 0 and 0 onmain.Both runs use default settings. The change only matters when several huge pipelines are built cold at once, which a warm driver cache on this machine mostly hides, so this pair checks that nothing regresses. Earlier
mainruns tonight gave 1113, 1297 and 1340 frames in the same setup.Not tested
(compile_threads() / 4).clamp(2, 4)workers (pso_async.rs), so during the preload at most 4 slots are used, even when the default allows 7. This PR leaves that count alone.AI use
OpenAI Codex (GPT-6.2) wrote the change and the test. Claude Code (Claude Opus 5.5) helpers ran the concurrency measurement, and Claude Code wrote this description and opened the PR.
🤖 Generated with Claude Code