Repository navigation
Conversation
89e4d54 to
bb01e85
Compare
|
Independent AMD RDNA4 (native wave64) test report on exact head Tested
Regression run (60 s retail-title smoke, (Matched Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent Windows/NVIDIA test on #2416 head Setup: Windows 11 build 26300; RTX 3080 Ti 12 GB, driver 621.35; Ryzen 7 9800X3D, 32 GB RAM; Rust 1.99.1; DXC 1.8.2502.11 from Windows SDK 10.0.26100.0. Not tested: the new AI-assisted: Codex (GPT-6, exact variant unavailable) inspected the diff, ran the build and tests, checked the counts, and drafted this report. |
bmjask
left a comment
There was a problem hiding this comment.
P2: instrumentation is active regardless of XCL_ACTIVITY. sync_title_buffers always creates an Instant and updates atomics once mirrors exist; sync_readable always times/updates several atomics and each copy adds more. XCL_ACTIVITY only gates the logging thread, so normal users pay timing and shared-atomic contention on the per-draw mirror path despite the diagnostics-only/no-behavior-change claim. Gate all accounting behind an enabled fast path, then measure/test overhead-off. Current head also has no visible Windows Build/test and the smoke did not execute these counters.
b52e97f to
15f4019
Compare
|
Thanks, agreed:
As you said, the retail smoke run makes no mirrors, so it does not reach these counters (this is under Not tested). I did not measure the off path separately. (Claude Code, Claude Opus 5.5) |
15f4019 to
fdbb6fe
Compare
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
luckyteagirl
left a comment
There was a problem hiding this comment.
At head fdbb6fe7ec0027a5b0274364475f0204684a8c5e, a mirror sync can cross the 2-second reporting boundary after a readable() call finishes but before the draw finishes. sync_readable publishes its count/time and updates SYNC_READABLE_MAX_NS during sync_mirrors, while SYNC_DRAWS is incremented only after sync_mirrors returns (list_x.rs:3774-3795). If the host samples in that gap, s[0] == 0, so host.rs:65-75 suppresses the row but still advances last_sync and resets the slowest value. The next row counts the completed draw without that readable work or its maximum. This can hide an isolated slow call, which this diagnostic is intended to show. Could the host emit a row whenever any mirror statistic is nonzero (including zero completed draws), or publish the per-draw values together after completion if rows must represent completed draws?
This is a source-derived diagnostics review, not a timed native reproduction. AI use: OpenAI Codex (GPT-6.2 Sol) traced the reporting path; I checked the exact-head counter and snapshot order before posting.
fdbb6fe to
49f0474
Compare
|
Thanks, confirmed: with no draw's sync finished in a window, the row was skipped while Fixed in 49f0474 (amended into the commit) the first way you suggested: AI use: Claude Code (Claude Opus 5.5) checked the review against the code, wrote the fix and ran the tests; I reviewed it. |
Commit: fdbb6fe Conflicts resolved in: crates/xcl/src/host.rs - kept both sides of both regions (HEAD first)
Once any buffer mirror exists, sync_title_buffers runs on every draw and nothing reported what it costs. With XCL_ACTIVITY=1 it now logs, every 2 s in which it ran: draws synced and those with a mirror, copies (whole buffers), bytes copied, indices scanned for the vertex range, readable() calls (those over 16 pages, which can take the VirtualQuery walk), the time in readable() and its slowest call, and the time in the function. A row is logged whenever any of these moved, also with no draw synced: the counters of a sync still running at the sample (or stalled for over 2 s) land before its draw is counted, and its slowest readable() would otherwise be dropped with the skipped row. The slowest readable() is not in xcl-dev#2391's list: measuring on xcl-dev#2389 found single calls of 16 pages or fewer taking 1-9 ms, which the other counters average away. The counters cost nothing without XCL_ACTIVITY: host_main turns them on (enable_sync_activity) before it starts the activity thread, and until then sync_title_buffers, sync_readable() and sync_count() check one relaxed bool and take no time stamps and touch no shared counter. No change in behaviour: the old body is sync_mirrors, unchanged apart from the counters, and sync_title_buffers still returns first when no mirror exists. Fixes xcl-dev#2391. Part of xcl-dev#2389. Co-Authored-By: Claude Opus 5.5 <[email protected]>
49f0474 to
953d375
Compare
Once any buffer mirror exists,
list_x::sync_title_buffersruns on every draw, and nothing reported what it costs. WithXCL_ACTIVITY=1it now logs one line every 2 s in which it ran. This is diagnostics only, with no change in behaviour, and withoutXCL_ACTIVITYthe sync takes no time stamps and touches no counter, so the other parts of #2389 have before and after numbers.Fixes #2391. Part of #2389.
What is in it
crates/xcl/src/hle/d3d12x/list_x.rs: counters for draws synced and those with a mirror, copies (whole buffers), bytes copied, indices scanned,readable()calls (those over 16 pages), the time inreadable()and its slowest call, and the time in the function. The old body is nowsync_mirrors, unchanged apart from the counters.sync_title_buffersstill returns first when no mirror exists.XCL_ACTIVITYis set:host_maincallsenable_sync_activity()before it starts the activity thread; until thensync_title_buffers,sync_readable()andsync_count()only check one relaxedAtomicBool(noInstant::now(), no shared atomics).crates/xcl/src/host.rs: thebuffer mirrors (2 s): …line in theXCL_ACTIVITYthread, printed whenever any of its counters moved (list_x::sync_row_due), also with no draw synced: the counters of a sync still running at the sample, or stalled for over 2 s, land before its draw is counted, and its slowestreadable()would otherwise be dropped with the skipped row.readable()call. The measurement on D3D12.X: every draw re-syncs buffer mirrors on the CPU (VirtualQuery, whole-buffer copies, index scan) #2389 found single calls of 16 pages or fewer taking 1–9 ms, which the totals average away.Tested
mainae5ae5a8on 2026-11-28 (it also merges cleanly into753e8b1a, which was not tested).cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4on953d3754: 1508 passed, 0 failed, 47 ignored; 25 SKIPPED (21no wave64, 3 refused gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 forms, 1no heap windows). The results below are from before the rebase.cargo test --workspace -- --test-threads=4on 49f0474: 1425 passed, 0 failed, 46 ignored; 25 SKIPPED (21no wave64, 3 refused gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 forms, 1no heap windows, as onmain).list_x::tests::the_mirror_sync_counts_only_once_xcl_activity_enables_it: with the counters off,sync_readable()/sync_count()leave every counter and the slowest time at their values; afterenable_sync_activity()they count.list_x::tests::a_mirror_sync_row_with_no_finished_draw_is_still_logged: a row withreadable()work or a slowest time but no draw synced is due, as is one with only a draw.Regression run
After the rebase onto
mainae5ae5a8: RTX 2070 SUPER, the retail game, 60 s,XCL_PRESS_AT=25:A. One batch of seven runs (main, then #2416, #2437, #2533, #2478, #2500, #2940); the DXIL cache carries over from run to run, starting from a snapshot of the live cache with its driver blobs.Not tested
AI use
🤖 Generated with Claude Code