Repository navigation
Conversation
|
Closing this rather than merging a neutral change. The 300 s retail comparison on this machine (same warm cache, feature build
The ahead builds ran, but the low-priority preload workers are already saturated by the earlier-used pipelines, so queuing the new big ones at creation does not add pre-91 completions; the title still stops at ~96 s. The mechanism itself is tested ( AI use: OpenCode, Claude Fable 5.2 measured the gap, wrote and tested the change, ran both 300 s retail runs and wrote this. |
|
Closing with the controlled comparison. The FIFO version's apparent gain was cache warmth: after the warm re-run on The useful outcome is the warm-cache count: the cold set after the 96 s stop has gone 54 → 24 → 9 → 8 → 7 → 6 over the runs, and those 6 are the whole remaining wall. Finishing them offline (the #2338 precompile path) or in a longer warm run is the lever, not the submission point. AI use: OpenCode, Claude Fable 5.2 ran the control and both feature versions on this machine and wrote this. |
|
Tested: current PR head merged onto current Not tested: retail titles (no title data on this lane, counts only). AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
A retail load creates its compute pipelines at ~5 s and first binds them at ~91 s; a lazy one is built at that first bind, on the title's thread. The first wave's big programs (0.25–1.4 MB of DXIL, 50–105 s each on this machine) therefore hold the title for the rest of a 600 s run: frames stop at 96 s, and a 3600 s run still presents nothing after 96 s while finding 69 more cold programs.
Measured on
06c9f55with temporary creation/bind logging (not part of this PR), one 300 s warm run of the retail 1.0.2.1 title:This starts those 247 on the existing low-priority preload workers (
XCL_PSO_PRELOAD=0turns it off) when the PSO is created, instead of at the first bind. A bind that reaches one the workers have not started still takes the job itself, as before, and the shader key is kept, so the pipeline is still recorded inused-pipelines.txtfor the next run. Smaller compute pipelines stay lazy; they compile in milliseconds.What is in it
crates/xcl/src/hle/d3d12x/pso_async.rs:submit_ahead, which queues a lazy pipeline on the preload workers now;submit_asgains theaheadflag; testan_ahead_pipeline_is_built_without_a_bind(a worker builds it with no bind, and the later bind records the shader key).crates/xcl/src/hle/d3d12x/real.rs: ingo_background, a compute PSO whose first shader container is >= 64 KiB goes tosubmit_ahead; everything else stayssubmit_lazy.Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 1266 passed, 0 failed, 46 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses,no heap windows, andcannot disable the driver cache (Windows Developer Mode is required))cargo test -p xcl --lib -- pso_async: 11 passed, 0 failedsubmit_aheadmade lazy: 0 passed, 1 failed —a preload worker picks it up without a bind: TimeoutRegression run
main (
426a5a7, clean tree, no local changes):PR (
f7ce93d, clean tree, no local changes):(The main block is
426a5a7, an ancestor of the currentmain, from the same machine and data folder.)Results of the 300 s retail runs (same warm cache):
06c9f55)The FIFO version queued the new big programs behind the earlier-used builds; those builds are cache hits (in the first control, 96 of 97 pre-91 builds had a driver blob and only 1 was cold), so it changed nothing. Giving the new programs their own higher-priority queue did put two cold builds before 91 s, but the re-run control with the same warm cache has the same 6 cold programs and presents to the same point; the priority version only adds 74 s of driver time and a 6 s longer presentation tail. The wall is the 6 cold programs themselves (the first at 110 s, 1.1–1.4 MB of DXIL), not where their builds are submitted.
The mechanism is correct (the test proves a worker builds a pipeline with no bind), but the change does not move the world-load wall, so this is closed rather than merged as a neutral change. The warm-cache data now shows only 6 cold programs left in a 300 s run (from 54/24/9/8/7 earlier), so the practical lever is finishing those offline or with longer warm runs, not the submission point.
Not tested
AI use
scripts/smoke.ps1pair.