D3D12.X: a draw does not wait for a graphics pipeline still being built #1798
No reviewers
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!1798
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1798"
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?
@isaacwingate on GitHub · 2026-11-24 20:53 UTC · original
isaacwingate:draws-dont-wait-pr→main· +38 −4 · 1 files · 1 commits · openpso_asyncmeans a graphics pipeline still being built to go on with its stand-in, which draws nothing, while a worker builds it; only compute pipelines are waited for (a skipped dispatch would leave its outputs unwritten). Butgraphics_boundandExecuteIndirectcalledresolve_wait, which waits for the build – and builds it on the title's thread when no worker has started it. With lazy pipelines that is every graphics pipeline's first draw. They now take their pipeline withresolve_for_bind, which waits for compute pipelines only. Part of #505.Related: #1652 (stacked on #1274, 10 files) also stops draws waiting, among other changes; #267 bounds the draw wait to 4 s. This is the small change on its own.
What is in it
crates/xcl/src/hle/d3d12x/bind.rs:pso_for_draw(=pso_async::resolve_for_bind) for draws (graphics_bound) andExecuteIndirect; a pending graphics pipeline's draw uses its stand-in, a pending one's ExecuteIndirect is skipped as before; compute is waited for as before. TheXCL_TRACE_FRAMElookup no longer waits either. Test:a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built– fails without the change (the draw waited the build's 1.5 s and got the real pipeline).mainc4d37be: the only conflict was this test landing next toexecute_indirect_reads_the_arguments_written_before_it(both kept);execute_indirect'sfresh_indirect_argumentsis unaffected, both tests pass.Tested
cargo test --workspace -- --test-threads=4on55e7beb: 960 passed, 0 failed, 43 ignored (SKIPPED:no wave64for the wave64 forms of the newlower/lower_dxilGPU tests,gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware; three wave32 per-lane cases off16_programs_on_the_gpu/f32_programs_on_the_gpurefused;heap_window_out_of_memory_falls_back_to_the_switch_form– no heap windows;pso_measurement_compiles_an_exact_synthetic_record– cannot disable the driver cache)XCL_NETWORK=0, with #899's wait log, through its world load (on main1c87b1d, before this was rebased): without this, 25 graphics binds waited 33.2 s in all within 25 s as the world loaded (1 – 5 s each, mostly for a worker's build), next to the compute waits; with it, the same world load logged 0 graphics waits. On #889 an RTX 4080 report found a title thread held inbind::execute_indirect→resolve_waitat the watchdog's abort.Regression run
Both with
XCL_COHERENT_MB=4095(without it the window is 512 MB or 4 GB depending on the commit free at the start, #284), one after the other.main:
PR:
Not tested
AI use
🤖 Generated with Claude Code
@freemanovec on GitHub · 2026-11-24 22:17 UTC · original
Test report for #1798 on Linux / Wine / RADV, with the retail title of #505. Tested at head 141df97; the rebased head
55e7bebhas the same patch.Without #1798, our longest earlier run (main + the local picks below, without #1798) ended with the title thread in
bind::execute_indirect->pso_async::resolve_waitbehind pixel-shader DXC. No present came after 160.6 s. With #1798 on maine9e94ce, no thread dump shows a title thread inexecute_indirectorgraphics_bound, so the graphics wait is gone here too. The title still does not present after ~150 s or leave the loading screen in 1200 s. The title threads now wait on compute pipelines:real::cl_set_pipeline_state->resolve_for_bind->resolve_wait, anddxc::compilecalled fromtranslated_compute_pso_onceon the title thread, ~13 s per 3.7–4.6 MB HLSL compute program.Tested
e9e94ce+ 141df97 (#1798) + local picks not on main: #867, #871, #684, #433, #794, a 4 GiB window alignment workaround, diagnostic logging, and compute pipelines of 256 KiB+ DXIL built on a 64 MiB-stack thread. Release build, x86_64-pc-windows-gnu (llvm-mingw).cargo test --lib -- --test-threads=4on the D3D12.X / sparse / xg / kernelx subset plusa_draw_does_not_wait_for_a_graphics_pipeline_still_being_built: 136 passed, 0 failed, 2 ignored.sparse_readback_waits,sparse_readback_lands: 1 passed each.gpu::dxiltests one by one: 86 passed, 1 ignored, 2 abort (integer_ops_match_cpu,uaddc_and_usubb_match_cpu, exit 3, the same one9e94ce). No SKIPPED lines.XCL_RUN_SECONDS), HLSL path,XCL_HEAP_WINDOWS=1 XCL_PSO_PRELOAD=0 XCL_DXC_THREADS=2 XCL_PIPELINE_THREADS=4 XCL_LATE_RELEASE=0:Not tested
Written by Claude Code (Claude Opus 5.5) from the runs above.
@vitor127wt on GitHub · 2026-11-24 22:25 UTC · original
Instrumented retail comparison — RTX 5070 Ti / Proton
The last logged wait snapshots show 20 graphics bind waits, 5,037 ms total on the base, and zero on the PR. The PR continued to log compute waits. The base completed the 150 s window, and the PR incurred a write access violation in
xg::copy_fromat 136.517 s.Tested
7.3.5-2-cachyos, Proton Experimental 11.0 (experimental-11.0-20261112-x86_64), vkd3d-protonec207194with the #257 patch and dxil-spirv7c048638. Rust 1.100.0, LLVM-MinGW 20261117 (x86_64-pc-windows-gnullvm), DXC 1.9.2609.5.c4d37bec1bb4286eb373aea963404a23f13401faand PR head55e7beb6de9fcc8817d40d0a663857e3553c3632, each with the same local wait-counter patch from #899 (b2936198896ad0e7dbac66ef406c1ba7415c6cb8). Built withcargo build --locked --release --target x86_64-pc-windows-gnullvm -p xcl --bin xcl.scripts/linux/smoke.sh "$PROTON" "$PREFIX" "$GAME"from #257 for 150 s with the same retail title,XCL_COHERENT_MB=4095, default lazy PSOs and HLSL translation, with A scheduled every three seconds. The title runs used fresh Wine prefixes and caches, networking off, and a 16 GiB Linux scope limit with no swap.The base exited
0x0with 1,999 presents. On the PR the last nonzero two-second bin ended at 136.029 s. At 136.517 s the log recorded0xc0000005inucrtbase.dll+0x171d9.llvm-addr2linemappedxcl-pr1798.exe+0x268225tocore::ptr::copy_nonoverlappinginxcl::hle::xg::copy_from,crates/xcl/src/hle/xg.rs:713. The process ended at 141.294 s with 2,290 PresentX calls in its report. #684 changes that copy routine. This pair locates the fault and leaves its cause open.Linux scope peaks were 15.17 and 16.00 GiB, with zero OOM kills. The runs are a locally instrumented comparison, and the early exit left the PR run without a completed smoke block.
AI use — OpenAI Codex (GPT-6, exact variant unavailable) ran the tests, checked the logs, and drafted this report.
@vitor127wt on GitHub · 2026-11-24 22:56 UTC · original
I repeated the retail loading run from my earlier report with and without the #684 fix. The control reproduced the same
xg::copy_fromcrash. With #684 applied, the title reached the 150 s timer and exited with code 0. It had stopped presenting new frames toward the end.0xc0000005at 122.140 s, process end logged at 126.507 s.llvm-addr2linemapped the XCL frame toxg::copy_fromatxg.rs:713.The compute times are cumulative across threads and the runs reached different points. Neither scope recorded an OOM kill. Peak scope memory was 15.71 GiB without #684 and 15.07 GiB with it.
Both builds used
55e7beb6de9fcc8817d40d0a663857e3553c3632with the wait counter from #899 atb2936198896a. The second build also applied the #684 diff91f9a5e9f031..e56dbc3f4313. The Windows binaries were built withcargo build --locked --release --target x86_64-pc-windows-gnullvm -p xcl --bin xcl. Each used Linux kit #257'sscripts/linux/smoke.sh "$PROTON" "$PREFIX" "$GAME" 150with my local retail 1.0.2.1 extraction,XCL_COHERENT_MB=4095, HLSL + DXC, lazy PSOs, A every 3 s, fresh prefixes and private caches, and a 16 GiB cgroup with swap disabled.RTX 5070 Ti (16 GB, driver 620.73.04), Ryzen 7 9700X, 32 GB DDR5, CachyOS 7.3.5-2-cachyos, Proton Experimental
experimental-11.0-20261112-x86_64, vkd3d-protonec20719452e9, dxil-spirv7c048638ab59, Rust 1.100.0, LLVM-MinGW 20261117, DXC 1.9.2609.5.AI use — OpenAI Codex (GPT-6, exact variant unavailable) ran the tests, symbolized the crash, and drafted this report.
@Royalflamejlh on GitHub · 2026-11-24 23:27 UTC · original
Linux (Wine + vkd3d-proton) + NVIDIA test of
55e7bebonmainc4d37be+ #684, 2 runs each way into a retail title's world load: with it at least 40 draws went on with their stand-in (the first within 6 s) and at least 128ExecuteIndirectcalls were skipped (the first at 76.6 and 92.9 s), where without it none were. Presents stopped at the end of loading in all four runs, as in part 2 of #662, at 78.1 to 78.2 s with it and 74.3 to 74.9 s without; 2 runs each way do not show that the difference is the pull request's, and no run reached #662's null write.Setup: Fedora 44 (kernel 7.2.9), Wine 11.21 Staging (Wayland driver), vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch,
VKD3D_CONFIG=ignore_shared_fence. RTX 4070 12 GB (driver 615.71.09, 32-lane waves), Ryzen 9 9950X3D, 62 GB RAM. Release, cross-compiled tox86_64-pc-windows-gnu(rustc 1.98.0), DXC 1.9.2609.5,XCL_NETWORK=0,XCL_PSO_PRELOAD=0. Caches as earlier runs left them: about a third of the compute pipelines came from the driver's blob (57 and 58 with it, 68 and 93 without). Retail title 1.0.2.1, the first-run screens completed once and no story progress, A pressed on the account screen at 16.4 to 16.5 s in the four runs of the table. The run with it went first in every pair, and the first of them alone was started with a rebuild.55e7bebmerged ontomainc4d37be+ #684 (e56dbc3) without conflicts;mainis20cf130now, withbind.rsunchanged sincec4d37be.Tested
cargo test --release -p xcl --libfora_draw_does_not_waitandexecute_indirect_readsunder Wine, on the merge: 2 passed, 0 failed.c4d37be+ #684: 100 s / 130 s55e7beb: 100 s / 130 sExecuteIndirectskipped, pipeline still being built (logged as "skipped"), at the last count lineThe count line is printed when one of its counters reaches a power of two, so 40 and 128 are floors (128 means 128 to 255), and the warning for a skipped
ExecuteIndirectis printed for the first four only.In the 100 s run with it the loading pictures at 40, 60, 66 and 74 s were whole (frames kept), the last of them after 23 draws had used a stand-in. I kept no frames of the runs without it. The skipped
ExecuteIndirectcalls all came after the last kept frame (73.9 s).A third pair of 100 s runs was slower from the start (A at 22.2 and 18.4 s): presents stopped at 90.2 s with it and 92.2 s without, and neither run had the burst of dispatches or a skipped
ExecuteIndirectbefore it ended.Read
bind.rs:497(pso_for_draw) isresolve_for_bind, used at:256forExecuteIndirectand at:508for draws (graphics_bound), as the description says; compute still waits. The runs agree: what went on with a stand-in or was skipped is graphics.Not tested: past the point where presents stop, where a skipped call would show; frames of the runs without it; the preload of #690 on; #1652 and #267, which change the same wait; the rest of the suite; AMD and Intel.
AI use: Claude Code (Claude Fable 5.2) read the diff, built the trees, ran the tests and the six runs, compared the logs and frames and wrote this report.
Posted without review by a person: the account owner was away and reads replies later.
@DavidM1911 on GitHub · 2026-11-25 00:04 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.Thanks!
@Anon64 on GitHub · 2026-11-25 00:38 UTC · original
World-loading run of this PR on a 12 GB 32-lane NVIDIA card, where
main's world load now waits on graphics pipelines.Setup: RTX 3060 12 GB (581.80), Windows 11 26200, 64 GB RAM, release, retail title. A pressed every 4 s from 20 s.
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_PRELOAD=0 XCL_NETWORK=0.main80f4819alone: presents stop at ~72 s and stay 0 to the end of a 420 s run, with no crash.bind… →pso_async::resolve_waiteach time.xcl-pso-*worker is insidenvgpucomp64.dll, and the rest are idle.driver compile start/finish … graphics PSO … huge, wanted at once (no slot)builds of 1.7–3 s, one after another.This PR's head
55e7bebmerged ontomain80f4819(clean merge), same settings:0x887a0006(DXGI_ERROR_DEVICE_HUNG), logged asD3D12 device removedjust before the exception. Then the title ends itself with0x80000003at its+0x2474606, theint3that ends its crash report (#1508; @gigabyteZ390's comment there). (smoke.ps1:device removals: 1,crashes: 2);So on this card the draws no longer wait, and the title gets past the point where
mainsits. Then the GPU hangs. Whether that comes from draws being dropped while their pipelines build, or from something later thatmainnever reaches, I can't tell from one run.Written with Claude Code (Claude Opus 5.5) from runs on this machine.
@raylitebull on GitHub · 2026-11-25 00:55 UTC · original
Code review on
55e7beb:graphics_boundandexecute_indirectthroughpso_for_draw->pso_async::resolve_for_bindcleanly avoids blocking draws on in-flight graphics PSO builds while keeping compute pipelines synchronous, anda_draw_does_not_wait_for_a_graphics_pipeline_still_being_builtcovers both paths.PR descriptionis green, butBuild and test (Windows, no GPU)has not run on55e7beb.Next step to unblock merge: Please rebase onto current
main(or re-push) soBuild and test (Windows, no GPU)runs on the current head.@raylitebull on GitHub · 2026-11-25 01:06 UTC · original
Update: \Build and test (Windows, no GPU)\ is now green on \
55e7beb\ (\CLEAN). One quick AMD confirmation on exact head \55e7beb\ (the prior RADV run was on \141df97) is all that remains before merge.@JJAutoCompare on GitHub · 2026-11-25 01:29 UTC · original
Empirical verification on the Intel Arc A770 for the draw path with pending graphics pipelines.
55e7beb6de9fcc8817d40d0a663857e3553c3632origin/main8f5fca5bb9ad6e695093d75294ad2cec023bba60.git merge-tree --write-tree origin/main HEADcompleted with exit 0 and no conflicts.Tested
26200.9974on an AMD Ryzen 7 3800X and Intel Arc A770 (driver32.0.101.9175). The test log confirmed the A770 backend.1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2609.5 (01b62ad47), unoptimized debug/test profiles withCARGO_INCREMENTAL=0,CARGO_PROFILE_DEV_DEBUG=0, andCARGO_PROFILE_TEST_DEBUG=0.cargo test --workspace --no-runandcargo build --workspacesucceeded. The workspace build supplied the end-to-end test title and DLL.cargo test -p xcl --lib hle::d3d12x::bind::tests::a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built -- --exact --show-outputran on the CPU. 1 passed, 0 failed, 0 ignored, with no skip messages. It completed in 1.51 seconds.& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { cargo test --workspace -- --test-threads=4 --show-output }stopped after the library binary with exit 101. 893 passed, 18 failed, 23 ignored and 22 GPU skip messages.& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output }completed all 19 test binaries plus doctests with exit 101. 941 passed, 19 failed, 43 ignored from Cargo. The 25 GPU skip messages below are excluded from coverage. Both the new draw test and the existing pending-pipelineExecuteIndirecttest passed in both workspace runs.CreateComputePipelineStatereturning0x80070057. The additional end-to-end failure was theRSSetDepthBiasXtest-title check, which read a blue pixel where it expected green.19 failing tests
25 SKIPPED messages from the full workspace run
Not tested
origin/main, tests on the merged tree, and retail-title smoke or world-load timing. The run does not establish whether the observed failures reproduce onmain.XCL_SAMPLE_*variables.AI use
gpt-6.2-sol) fetched and verified the commits, ran the builds and tests, parsed the logs, and prepared this empirical report.@zohaiblazuli on GitHub · 2026-11-25 09:25 UTC · original
A second RTX 3060 12 GB data point, adding to @Anon64's: the wait on my card was in
ExecuteIndirect, and with this change the title got into its world before the device was removed.Setup: RTX 3060 12 GB (617.42), i5-14600K, 32 GB RAM, Windows 11 26300, release, retail title in the Series S profile (
device_type = "lockhart"), A pressed every 10 s,XCL_NETWORK=0. Notmain: an older local tree (main4178e88+ #615, #929, #1323, #688, the #1315/#1316/#1448 stack and anXMemMapPhysicalPagesScatterunmap fix like #495), with this PR's55e7bebcherry-picked on top. Its compute pipelines were built ahead from earlier runs (driver blobs on disk), so no compute build was waited for in either run.bind::execute_indirect→pso_async::resolve_wait, while the PSO workers were insidenvgpucomp64.dllbuilding graphics pipelines (driver compile start … graphics PSO). The title threads were idle.bind.rstestsa_draw_does_not_wait_for_a_graphics_pipeline_still_being_builtandexecute_indirect_with_a_pipeline_still_building_is_skippedpass): no stall. The title got into its world at ~514 s (2,312 draws in a 2 s window). About 3 s later the device was removed:0x887a0005, then the title'sint3at+0x2474606. The System event log had no TDR ornvlddmkmevent for it. Local video memory was 12.9 GB on the 12 GB card at that point, and the log had "Write64 Signal … would close a GPU cycle – signalled on CPU" warnings just before it.So the stall this PR removes was the one blocking world entry here. What removes the device afterwards is not settled by this run.
Written with Claude Code (Claude Opus 5.5) from runs on this machine.
@kanade333 on GitHub · 2026-11-25 14:40 UTC · original · edited 2026-11-25 15:09 UTC
RTX 5080 16 GB (Blackwell), driver 621.40, #2057's head + this PR: two 420 s runs, both kept presenting to the limit with no device removal and no stretch without frames. Without this PR the same tree had multi-minute stretches with no present in three of four runs.
Applied on #2057 at
4df1e6e(this PR's55e7bebapplies cleanly there).cargo test --release -p xcl --lib -- d3d12x::bind d3d12x::pso_async --test-threads=4: 13 passed, 0 failed.Setup: NVIDIA GeForce RTX 5080 16 GB (driver 621.40), AMD Ryzen 9 9950X, 32 GB RAM (commit limit 97 GB), Windows 11 Pro 26200, release. Retail title of #505, 1.0.2.1,
XCL_NETWORK=0, scripted A presses to 90 s. All 2,689 compute pipelines built ahead with this driver; graphics pipelines warm from earlier runs.Every run:
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_COHERENT_MB=512 XCL_LOOK_SKIP=1 XCL_WATCH_HOT=0 XCL_DRED=1 XCL_RUN_SECONDS=420, one after the other.4df1e6e0x887a0006at 379.3 s4df1e6e4df1e6e+ #22704df1e6e+ #22700x887a0006at 55.6 s4df1e6e+ #17984df1e6e+ #1798Two runs only, so the absence of a removal in 420 s could still be luck (run 36, without this PR, also had none). The stretches with no frames, though, are gone in both, and match what @minimalhipster990 saw on the RTX 4090.
Not tested: more runs; this PR on
main; AMD; whether the draws it lets through without their pipeline change what is on screen (the frames are grey either way here).AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on this machine, read the logs and wrote this report.
Update 1: one 1,200 s run of the same tree and switches (
XCL_FRAME_DUMP=120added): no device removal and no minute without frames.AI use for this update: Claude Code (Claude Opus 5.5).
@jennydeth on GitHub · 2026-11-25 23:02 UTC · original
RTX 3060 12 GB / 32 GB RAM, exact head
55e7bebagainst its basec4d37be(tested as the branch is; it conflicts with currentmain), retail title 1.0.2.1 into its story load: no regression, and the change shows in the log. Both 600 s runs end with no crash or device removal, 2190 / 2191 frames; with this PR the title drew with stand-ins instead of waiting (64 draws with PC pipelines by 244 s; 0 on the base at its last count). Neither reached the world within 600 s here. This adds a suite run and a regression pair on exact head, on default settings, to @Anon64's and @zohaiblazuli's 3060 reports above.Tested
stable-x86_64-pc-windows-msvc); release build; DXC 1.9.2609.5 (XCL_DXC_DIR)cargo test --workspace --release --no-fail-fast -- --test-threads=4on55e7beb: 960 passed, 0 failed, 43 ignored (20 test targets incl. doc-tests), includinga_draw_does_not_wait_for_a_graphics_pipeline_still_being_built. SKIPPED (23): 18 × no wave64; 3 × per-lane form refused (V_MUL_F16,V_PK_MUL_F16,V_CVT_F16_F32); 1 × no heap windows; 1 ×pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache)scripts/smoke.ps1 -Game <folder> -Seconds 600(main's copy of the script; neither commit's has-OutDir),XCL_NETWORK=0, scripted pad presses from the start screens into the story load (XCL_PRESS_AT),XCL_FRAME_DUMP=300, default settings otherwise. Head run first, then the base.Regression run
mainc4d37be:This PR,
55e7beb:console code so farlines): with this PR, 33 draws with PC (stand-in) pipelines by 78 s, 44 by 143 s and 64 by 244 s, with 138 draws skipped by then, and 4 ×ExecuteIndirect with a pipeline that is still being built skippedat 143 s. The base's last such line (102 s) has 0 of each; the line prints only at powers of two from 64, so after that the base stayed under 64 of each.Not tested
main; the world (not reached within 600 s here); AMD / wave64; WineAI use: Claude Code (Claude Opus 5.5) built both commits, ran the suite and the two runs on my machine, read the logs and wrote this.
@KOLESNiii on GitHub · 2026-11-26 00:27 UTC · original
RTX 2070 SUPER 8 GB, Windows, fully cold (XCL caches empty, NVIDIA / D3D12 implicit shader caches off), #1798 rebased onto current
main08db802: the title's threads no longer build graphics pipelines (353 s → 66 s held in builds), and 43 % more compute pipelines are built in the 10 min after the world load. Frames do not come back within 10 min with or without it. One run each.Setup
XCL_RUN_SECONDS=780).XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_TRACE=1, a fresh emptyXCL_DXIL_CACHEper run (no DXIL, translated, driver-blob or used-pipelines cache), and the driver's implicit caches off withID3D12Device9::ShaderCacheControl(IMPLICIT_DRIVER_MANAGED | IMPLICIT_D3D_CACHE_FOR_DRIVER, DISABLE)right after device creation (a local experiment-only patch, same in all trees; needs Developer Mode; the log confirmsOk(())).Trees
main08db802.55e7beb) applied onto08db802. It conflicts with currentmainin two places inbind.rs; I keptmain's code and only swapped the call: inexecute_indirectthe put-off of an unbuilt dispatchingExecuteIndirect(#2118) stays, and the laterresolve_wait(raw_pso)becomespso_for_draw(raw_pso); ingraphics_boundmain's two-pass mesh skip stays, withlet real = pso_for_draw(pso). No otherresolve_waitinbind.rsis on a graphics path.cargo test -p xcl --lib -- a_draw_does_not_wait pso_async big_compileon C: 28 passed, 0 failed, 0 ignored (incl.a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built). The whole suite was not run on C.Results – the 10 min after the world load (the start of the first stretch of 20 s or more without a present after the game was started: A 110 s, B 110 s, C 96 s), from
xcl.log:mainused-pipelines.txt)resolve_waittakes the not-yet-started lazy job and builds it there, whether or not a worker is free. With #1798 that goes away. That only 4 graphics builds finish is, I think, because they are queued behind the compute builds while the draws use stand-ins (not measured: the log does not say what is queued).main), on a 32 GB machine that is close to its limit in all three runs.Not tested: more than one run per tree; AMD; warm caches or after an offline precompile; #1798 without B on top of
08db802; the whole suite on C.AI use: Claude Code with Claude Opus 5.5 ran the builds and the runs (through a local exclusive-run queue), resolved the conflict, measured from the logs and wrote this report; I started the game in each run.
@afpruivo on GitHub · 2026-11-26 01:44 UTC · original
RTX 3090 (driver 621.40), compute and graphics caches warm, the same cache state for both runs: #1798 works as described, but it does not move the stall here. Both trees stop presenting about 2 s into the world, because the next wait is cold compute builds on the title's threads, not graphics. One run each.
This is the case the earlier reports did not cover: @KOLESNiii's 2070 SUPER run was fully cold, so compute builds were in the way too.
Setup
XCL_DIRECT_DXIL=1 XCL_DRED=1 XCL_NETWORK=0 XCL_ACTIVITY=1, A pressed every 4 s from 20 s, 480 s, no driver profile for the exe.main08db802against #1798 (55e7beb) rebased onto the same08db802. One conflict inbind.rs:mainhad since added the compute deferral and the two-pass mesh check to the same functions. I kept both and usedpso_for_drawwhere the PR does.d3d12x::bind+d3d12x::pso_asynctests: 23 passed.xcl shaders … --precompile --only cs --pipelines --used-only(2,453 compute pipelines, 0 refused), then three earlier world runs that left the graphics blobs. After each A/B run, the cache files it added were moved aside and the journals restored, so both started from the same XCL cache. NVIDIA's own shader cache was not reset.Result
main#101)What the title waits on instead (both runs): after the world starts, compute PSOs of 0.8–1.2 MB DXIL are built cold on title threads (
huge, ungated here), one after another, 11–17 s each: 30 withdriver blob absent, about 387 s in the driver over the rest of the run. Their records are not in the--used-onlylist, because earlier runs never got this far. I have not yet confirmed that they are the whole forms of split programs (#2404 / #2519); that is my next check, with #2551.So with this cache state, #1798's change is visible (draws on PC pipelines instead of waits) but not what holds the frames.
Not tested: more than one run per tree; a cold cache; a tree with #2404 / #2519 / #2551; other cards.
AI use: Claude Code (Claude Opus 5.5) rebased the PR, ran both runs on my PC, read the logs and drafted this.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.