Repository navigation
Conversation
…again Since the pinned one-shot pipelines for draws (ed5e9e4), a draw resolves its pipeline through resolve_retained_for_emission, which waited by XCL_PSO_WAIT_MS alone. The graphics budget (XCL_GFX_PSO_WAIT_MS, a thread's share of a second) and the compute budget (XCL_CS_PSO_WAIT_MS) were only read by resolve_wait, which no draw reaches any more: with only XCL_GFX_PSO_WAIT_MS set, draws again waited until every pipeline was built. resolve_pending_budgets is resolve_wait_budgets for a Pending in hand; both paths use it. Defaults are unchanged: with no budget set, a draw still waits until its pipeline is built. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DaZV7vMq866ni7pGnJC2Ew
|
One useful bound to document for the restored graphics path: XCL_GFX_PSO_WAIT_MS is a per-thread refill rate with an initial full bucket. It is not a rolling-window cap, and time spent blocked itself refills the bucket. With 500 ms configured, one newly started recording thread can spend almost the entire first second waiting on distinct cold draws, even without any other work between them. I exercised the exact resolve_pending_budgets, gfx_wait_left/spent and budget_for logic from ca7fa01 with a deterministic monotonic clock and a wait backend that either returned ready immediately or consumed precisely the offered timeout. Eight consecutive distinct graphics timeouts received 500, 250, 125, 62.5, 31.25, 15.625, 7.812, 3.906 ms: 996.093 ms total, versus 4,000 ms for eight independent full allowances. Eight ready graphics pipelines consumed zero simulated time. With the same graphics setting, a 30 ms compute override and a 700 ms general fallback, eight distinct compute timeouts consumed 240 ms, confirming the separate per-dispatch bound. A fresh recording thread starts its own bucket. This is consistent with restoring the existing token bucket; it matters for interpreting first-frame or per-present wait totals. I'd spell out initial burst plus refill when documenting the switch. These are offered-budget controls, not native driver timings, and worker/admission priority in #3307/#3284 is separate. OpenAI Codex prepared and ran the CPU control and drafted this note. |
|
Ran the graphics-budget selection test at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. The test passes: a retained draw is not waited for past the graphics budget while a retained dispatch still uses the compute budget. The PR is a draft and its thread has only a note about the budget's initial refill; this adds a Blackwell datapoint on driver 32.0.16.2140. It is a CPU-side budget-selection test, not a title wait measurement. Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
… too With XCL_GFX_PSO_WAIT_MS=100 and XCL_CS_PSO_WAIT_MS=100, GTA VI's threads on an RTX 3060 Ti still waited for pipelines up to 103 s (161 waits over 1 s, median 2.9 s): besides the draw path fixed in the previous commit, a bind that pins its pipeline (resolve_and_pin_pending, in Wait mode and for a compute pipeline in ForBind mode), an ExecuteIndirect pipeline (resolve_for_indirect) and a native compute bind (select_for_native_bind) waited by XCL_PSO_WAIT_MS alone, which is unset by default: until the pipeline was built. They all go through resolve_pending_budgets now (the native bind only waits for compute: by XCL_CS_PSO_WAIT_MS, else XCL_PSO_WAIT_MS). Defaults are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DaZV7vMq866ni7pGnJC2Ew
|
Re-ran the graphics-budget test at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. The test still passes at the new head: a retained draw is not waited for past the graphics budget while a retained dispatch still uses the compute budget. This adds the new head and driver 32.0.16.2140 as dimensions; it is a CPU-side budget test, not a title wait measurement. Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
ad569ed's test waited for a compute pipeline whose fake build result (0x6A6A) was then pinned as a real one (pin_one_shot AddRefs it), so the library harness died with a misaligned pointer dereference at 0x6a6a on the RTX 3060 Ti, 2 runs of 2. The dispatch now gets a compute budget and comes back as its stand-in, which is not pinned: the same bound ad569ed adds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DaZV7vMq866ni7pGnJC2Ew
|
Re-ran the graphics-budget test at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. The test still passes at the new head, which only changes a test fixture so it never pins a fake pipeline. This adds the new head and driver 32.0.16.2140 as dimensions. CPU-side budget test, not a title wait measurement. Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
ad569ed also bounded pinned compute binds by XCL_CS_PSO_WAIT_MS. In a retail world on an RTX 3060 Ti, "its dispatches are skipped" then came 300-315 times a session (2-12 on the build before), and one of two runs ended in a GPU hang (0x887A0005, no page fault, no breadcrumbs): a skipped pass can leave work a later pass waits on. The long waits that change was for were all on graphics pipelines, so a pinned dispatch goes back to XCL_PSO_WAIT_MS alone (pinned_wait_budgets) and only graphics binds and indirect draws keep the XCL_GFX_PSO_WAIT_MS share. The native compute bind is back as it was. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DaZV7vMq866ni7pGnJC2Ew
|
Re-ran the graphics-budget test at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. The test still passes at the new head, whose commit restores the previous behaviour for a pinned dispatch. The test also asserts that a retained draw stays within the graphics budget and a retained dispatch uses the compute budget. This adds the new head and driver 32.0.16.2140 as dimensions. CPU-side test, not a title wait measurement. Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
A build released before it ends is orphaned, and its worker then releases the result. The fake results in this test are not real objects, so the worker's release crashed the library test process. Wait (bounded) for each build to finish before releasing it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DaZV7vMq866ni7pGnJC2Ew
|
Re-ran the graphics-budget test at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. The test still passes at the new head, which only changes how the test waits for its fake builds before releasing them. This adds the new head and driver 32.0.16.2140 as dimensions. CPU-side budget test, not a title wait measurement. Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
|
Retail run with Setup
Results "World" means the first 2 s
"Compute programs skipped" counts the
With the same budget, six earlier Device removals. These are not caused by this PR, as far as I can tell. All 6 removals in this table, and 3 of the 6 earlier Not tested: the full workspace suite (only the budget test above), AMD, the AI use: Claude Code (Claude Opus 5.5) built the trees, ran the tests and the replays, and wrote this report. The person running these tests asked for it. |
KOLESNiii
left a comment
There was a problem hiding this comment.
Static review of 665d4e25 for the stack in the #3041 comparison.
A compute-only wait budget can bring back command-list splitting in the measured revision. With only XCL_CS_PSO_WAIT_MS set, native compute bind can time out and leave an initial pipeline pending. The retained deferral guard still checks only XCL_PSO_WAIT_MS. With allocator pooling enabled, repeated dispatches can split the recording while that build remains pending. The guard's comment records prior command-list memory exhaustion from repeated splitting under short budgets. This concerns 665d4e25, before the later pinned-dispatch fixes described in the PR. Native bind ?? Deferral guard
Review assisted by Codex (GPT-6, exact variant unavailable). No new build or GPU run for this review.
bmjask
left a comment
There was a problem hiding this comment.
Critical review of current head f5496479. The latest changes preserve unbounded waiting for pinned compute while applying the graphics budget to retained draws and indirect graphics binds; that addresses the prior missing-dispatch regression. I found no current-head code blocker in the budget routing. Please keep the GPU-world regression as a merge gate: with XCL_GFX_PSO_WAIT_MS=50, count skipped graphics draws, pinned-compute omissions, device removals, and frame time over the same scripted scene. The RTX 4090 result is encouraging but covers two runs. No local Windows run.
|
Review (head f549647, diff read, not a merge-check; draft, so not built or run):
Fine: with no budget variable set nothing changes. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
|
Test report (not a merge-check: draft) hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 AI-written and posted by Foniass without a human check of each point. |
Requested by Prime
Since the pinned one-shot pipelines for draws (ed5e9e4), a recorded draw resolves its pipeline through
resolve_retained_for_emission, which waited byXCL_PSO_WAIT_MSalone. The graphics budget (XCL_GFX_PSO_WAIT_MS, a thread's share of each second) and the compute budget (XCL_CS_PSO_WAIT_MS) were read only byresolve_wait, which no draw reaches any more: with onlyXCL_GFX_PSO_WAIT_MSset, draws again waited until their pipeline was built.Both paths now choose their budget in
resolve_pending_budgets. With no budget set nothing changes: a draw still waits until its pipeline is built.The second commit does the same for the binds and indirect draws that pin their pipeline, which still waited by
XCL_PSO_WAIT_MSalone (unset by default: until the pipeline was built):resolve_and_pin_pending(inWaitmode, and inForBindmode for a compute pipeline),resolve_wait_bound_and_pinandresolve_for_indirect. In a GTA VI session on the PC below withXCL_GFX_PSO_WAIT_MS=100and the first commit, threads still waited up to 103 s for graphics pipelines (161 waits of 1 s or more).The fourth commit keeps a pinned dispatch on
XCL_PSO_WAIT_MSalone, as before (pinned_wait_budgets): bounding it byXCL_CS_PSO_WAIT_MStoo, as the second commit first did, skipped 300-315 compute passes a session in a retail world on that PC (2-12 before), and one of two runs ended in a GPU hang (0x887A0005, no page fault, no breadcrumbs). The native compute bind (select_for_native_bind) is unchanged. The third and fifth commits change the budget test only. The third to fifth commits correct the second and are to be squashed into it before review.What is in it
crates/xcl/src/hle/d3d12x/pso_async.rs(first commit):resolve_pending_budgets(the budget choice ofresolve_wait_budgetsfor aPendingalready in hand), called byresolve_wait_budgetsand byresolve_retained_for_emission; the budget test inused_testsalso checks a retained draw (not waited for past the graphics budget) and a retained dispatch (waited for)crates/xcl/src/hle/d3d12x/pso_async.rs(second and fourth commits):WaitBudgetsandpinned_wait_budgets(a graphics pipeline: theXCL_GFX_PSO_WAIT_MSshare; a compute one:XCL_PSO_WAIT_MSonly), used byresolve_and_pin_pending_budgets(called byresolve_and_pin_pending),resolve_wait_bound_and_pinandresolve_for_indirect; the budget test also checks a pinned bind (not waited for past the graphics budget) and that a pinned dispatch gets no compute budgetcrates/xcl/src/hle/d3d12x/pso_async.rs(third and fifth commits, test only): the budget test no longer pins a fake compute result, and waits (at most 10 s) for each fake build to end before releasing it: either had crashed the library test processTested
cargo test --workspace --no-fail-fast -- --test-threads=4with the threeuma_drivertests below skipped, on f549647: 2605 passed, 0 failed, 49 ignored (SKIPPED GPU tests: 28 lines: 21no wave64(this card runs wave32), 3 a wave32 per-lane form refused by the translator (gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426), 2no heap windows(opt-inXCL_HEAP_WINDOWS=1), 1no dxc.exe, 1cannot disable the driver cache(needs Windows Developer Mode))cargo test -p xcl --lib -- --test-threads=1 uma_driver::tests::a_refused_gpu_upload_segment_becomes_custom uma_driver::tests::mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment uma_driver::tests::failed_restore_stops_before_importing_an_unbacked_window): 3 passed, 0 failed. They are left out of the whole run because on this PC's driver they can end the library test process (exit 0x7c10003, "coherent window could not be restored"), onmaintoocargo test -p xcl --lib -- --test-threads=4, same skips): 2466 passed, 0 failed; 2466 passed, 0 failedmainfa20459: 2605 passed, 0 failed, 49 ignored, 28SKIPPEDlines (own-prs-20261129 run, same command)scripts/smoke.ps1, no input, copied profile and shader cache): blocks belowXCL_GFX_PSO_WAIT_MS=100 XCL_CS_PSO_WAIT_MS=100) of a batch of this branch with ten other changes: with the second commit (batch 49f78cb) 300 "its dispatches are skipped" lines and a GPU hang at 362 s; with the fourth commit (batch e686362) 3-13 such lines and no device removal in 3 of 3 runs, but no drawn world, because a pinned dispatch still waits until its pipeline is built (16-141 s at a time) whenXCL_PSO_WAIT_MSis unset; withXCL_PSO_WAIT_MS=2000the world ran (69 frames, 0 device removals, 72 such lines)Regression run
Not tested
XCL_GFX_PSO_WAIT_MS), so they do not reach the changed budget path. The world-load runs under Tested set the budgets but are of a batch with ten other changes, not of this branch alone.AI use
Optional temporary Discord for coordinating contributor work, testing and comparing results.
🤖 Generated with Claude Code