Repository navigation
Conversation
|
Test report and three review notes for Tested
Review notes
Not tested: any title (no smoke pair here), AMD / Intel, release builds. AI use: Claude Code (Claude Opus 5.5) ran the tests on the machine above, read the diff and wrote this. I checked the results. |
|
Test of
For comparison, Tested: RTX 4080 16 GB (driver 610.88), i9-12900K, 64 GB RAM (commit limit 68 GB), Windows 11 26300, release. AI use: Claude Code (Claude Opus 5.5): ran the tests and wrote this. |
|
NVIDIA and AMD full-suite run, to go with the RTX 5080 and RTX 4080 reports above, since neither covers AMD. 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
|
|
Independent Windows verification at 378a077. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, debug. Tested
Not tested AI use |
|
Test report on Tested: main, 2 walks; #2114, 1 walk. What was measured: main (both walks): 0 submits and 0 presents after 130 s, Review notes (each confirmed in the #2114 diff at
Not tested: suite run on this tree; repeat walks (variance); NVIDIA/other AI use: Measured by an omp agent running DeepSeek v4.1 Flash; review |
|
Code review on
Remaining before merge: Fix |
|
Regression run of Against the limits in CONTRIBUTING.md: 104 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
|
Follow-up to my test report above: the control arm, same box, same protocol (
With the per-frame cap off, the PR head behaves like main: submits stop at ~126 s and nothing is presented. So the extra submissions and the one present come from the per-frame cap, not from the build or cache warmth. The cost is the frozen-frame issue from my notes: 24 of the 25 exhaustion warnings are in frame 1907 and 1 is in frame 1909, the title presented 1910 frames in all, and the final "(4097 so far)" is the skip count of the frame it never left. All three walks still end at the commit stop (~141–143 s), so the world is not reached. These walks are on AI use: the walks and log tables were run by an agent on DeepSeek V4.1 Flash (open-weight, measurement only). I checked the counts above against the three |
|
@iggyvilla @thehollowedone @raylitebull Thank you for the reviews and reproduction cases! Merged
Re-verified on
|
|
I found a case on I reproduced it in a standalone CPU test using the PR’s Three control cases passed. The stale-sample case was the only failure. In a separate fixture, returning the per-pipeline allowance before checking the generation when I used Codex GPT-6.2 Sol for the fixture and a separate GPT-6.2 Sol agent for independent verification. I reviewed and approved this comment before posting. |
|
@Gevroska @raylitebull Fixed the stale-sample case on Added regression unit test
|
|
Re-check of Tested (RTX 5080 16 GB, driver 621.24; Ryzen 7 9800X3D; Windows 11 Pro 26300; rustc 1.100.0; DXC 1.9.2609.5; debug)
Conflict: against Not tested: a title run of AI use: Claude Code (Claude Opus 5.5) ran the tests on the machine above and wrote this. I checked the results. |
Split from #1652 (Part of #156 / #1833 / #1452 / #505): cap cumulative pipeline bind waits per
PresentXframe across all threads so bursts of cold pipeline builds cannot stallPresentXpast a title's watchdog, and releasewantedwhen a bounded wait expires so late builds return to memory/slot throttling.Note on defaults (per @milesah3ad review): on
main, unsetXCL_PSO_WAIT_MSwaits until each pipeline is built; with this PR, while a title runs (crate::state::boot().is_some()), unsetXCL_PSO_WAIT_MS/XCL_PSO_FRAME_WAIT_MSdefaults to250 msper pipeline and2,000 msprocess-wide cumulative perPresentXframe, meaning unbuilt compute dispatches are skipped during cold compile bursts (#1452/#505). PassingXCL_PSO_WAIT_MS=0waits until built (unlessXCL_PSO_FRAME_WAIT_MSis explicitly set > 0, in which case the explicit frame cap wins).XCL_PSO_FRAME_WAIT_MS=0disables the per-frame cap while keepingXCL_PSO_WAIT_MS(or the 250 ms title default whenXCL_PSO_WAIT_MSis unset while a title runs).What is in it
crates/xcl/src/hle/d3d12x/present.rs: exposepresent::frame_generation()reading the monotonicBOUNDARIESframe counter.crates/xcl/src/hle/d3d12x/pso_async.rs:WaitCaps/resolve_capsand a process-wideFRAME_BUDGET: Mutex<FrameBudget>keyed bypresent::frame_generation(), briefly locked only before/aftercv.wait_timeout_whileso multiple recording threads share one per-frame wait cap instead of multiplyingN * 2,000 ms.FrameBudget::reserve/FrameBudget::settle+FrameWaitGuard) so concurrent waits in the same frame reserve out of the shared remaining budget and late completions from an older frame never roll back or wipe a newer frame's spent/reserved budget. Whenper_frameisNone,FrameBudget::reservereturns(caps.per_pso, false)immediately before checking frame generation so stale frame samples never zero out waits when the cumulative per-frame cap is disabled, while preserving stale-generation rejection whenper_frameisSome(_).TimedWantGuard(Pending::want_timed+Demand::timed_waiters/unbounded_wanted) sowantedstays raised only while a bounded wait is actively blocked; timed-out late builds return toreal::big_compile_turnanddxc::wait_for_memorycommit throttling instead of bypassing memory gates (huge, wanted at once (no slot)).spared(image_only) dispatches non-blocking before entering bounded wait budgeting, and once the frame's cumulative wait budget is exhausted, enqueue remaining pending binds and continue immediately with the stand-in without marking those pipelineslateso they get a fresh wait window on the nextPresentXframe; already-built pipelines still resolve immediately.wait_caps_respect_env_and_title_boot_state,frame_budget_caps_cumulative_wait_and_resets_on_new_frame,frame_budget_stale_frame_sample_keeps_full_wait_when_per_frame_disabled,a_frame_budget_caps_a_burst_of_slow_pipelines_and_resets_next_frame,timed_out_bind_releases_wanted_so_late_builds_respect_throttling, andconcurrent_binds_in_same_frame_share_reserved_budget).Tested
rustc 1.98.0-nightly (096694416 2026-06-29), release build and debug unit tests on Windows.cargo test -p xcl --lib pso_async -- --nocapture(commit21c88bc): 16 passed, 0 failed, 0 ignored.XCL_ADAPTER=warp cargo test -p xcl --lib -- --test-threads=4(commit21c88bc): 1202 passed, 0 failed, 26 ignored (simulating GPU-less CI).scripts/smoke.ps1 -Seconds 60on clean06c9f55(upstream/main) and clean21c88bc(d3d12x-pso-per-frame-wait-cap).e03690d(prior to the 1-function stale-sample fix in21c88bc):./scripts/test.ps1 --skip test_title_runs_and_game_folder_is_untouched --skip fuzz_validate_and_gpu(xcl --lib1197 passed, 0 failed, 26 ignored; 19 workspace integration test binaries passed).Regression run
main:
PR:
Not tested
./scripts/test.ps1workspace integration binaries on21c88bc(last run one03690d),test_title_runs_and_game_folder_is_untouched, Python helper tests, andXCL_DXC_THREADS=4/ 34 GB multi-run world-loading stress test on commit21c88bc.3c290c16.AI use
FrameBudget::reservestale-sample handling whenper_frameisNone, adding the regression unit test, runningpso_async/XCL_ADAPTER=warp/scripts/smoke.ps1verification, and updating/validating the PR description (building on earlier PR work).