D3D12.X: follow the GPU through each queue's submits from the progress fence #3673

Open
Prime1997 wants to merge 1 commit from upstream-pr/3673 into main
Prime1997 commented 2026-12-02 05:54:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-12-02T05:54:44Z.


Requested by Prime

At a device removal the log did not say which submit the GPU was on. The "recorded last" report comes from a ring written when work is recorded, and the title keeps recording for the ~2 s of the TDR, so the newest frames in it are ones the GPU never ran. The private progress fence that list_x::note_submitted already signals after each chunk of the title's work now tells us. The watch thread reads those fences ten times a second. Each finished submit gets a service time: how long the GPU was on it, without the time it waited behind earlier work. Once a minute a line per queue gives the minute's submits, median, p99 and slowest service time beside the video memory in use. At a removal a line per queue names the oldest unfinished submit, the frame it was sent in, how long the GPU had been on it and the last 16 service times. No new fence and no new Signal.

Related: #1189 snapshots queue progress when a title stops presenting (opt-in XCL_STALL_SECONDS); this one reads the existing progress fences all the time and reports at a device removal.

What is in it

  • crates/xcl/src/hle/d3d12x/gpu_progress.rs (new): the poll, the service times, the minute lines and the report at a removal, with unit tests.
  • crates/xcl/src/hle/d3d12x/list_x.rs: the progress records carry the frame they were sent in; progress_since hands them out with the lock only tried; progress_summary keeps the unfinished records when a removed device's fence reads u64::MAX.
  • crates/xcl/src/hle/d3d12x/watch.rs: the watch thread polls before it looks for a removal.
  • crates/xcl/src/hle/d3d12x/real.rs: the removal report is written before the "recorded last" report.
  • crates/xcl/src/hle/d3d12x/mod.rs: the new module.

Tested

  • RTX 3060 Ti 8 GB, Windows 11, release build: the change has been in our test builds since 1 Dec (no measured before/after on its own).
  • This branch (on main 1c8b5514): cargo check -p xcl --lib --tests --target x86_64-pc-windows-gnu passes. The test suite was not run on this exact branch.

Regression run

  • Not run yet: testers welcome.

Not tested

  • The suite and scripts/smoke.ps1 on this branch; AMD.
  • The new unit tests cover the service times, the oldest unfinished submit, the record bound and the stats; the poll and the removal report need a live device.
  • With XCL_GPU_WATCH=0 there is no watch thread, so nothing is polled and the removal report says so.

Switches

  • XCL_HANG_SUBMITS (default on): =0 polls, keeps and logs nothing.

AI use

  • Claude Code wrote the change and this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5600752802 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3673). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-12-02T05:54:44Z. --- <!-- claude-projects-attribution: {"github_login":"Prime1997"} --> _Requested by **Prime**_ At a device removal the log did not say which submit the GPU was on. The "recorded last" report comes from a ring written when work is recorded, and the title keeps recording for the ~2 s of the TDR, so the newest frames in it are ones the GPU never ran. The private progress fence that `list_x::note_submitted` already signals after each chunk of the title's work now tells us. The watch thread reads those fences ten times a second. Each finished submit gets a service time: how long the GPU was on it, without the time it waited behind earlier work. Once a minute a line per queue gives the minute's submits, median, p99 and slowest service time beside the video memory in use. At a removal a line per queue names the oldest unfinished submit, the frame it was sent in, how long the GPU had been on it and the last 16 service times. No new fence and no new Signal. Related: #1189 snapshots queue progress when a title stops presenting (opt-in `XCL_STALL_SECONDS`); this one reads the existing progress fences all the time and reports at a device removal. **What is in it** - `crates/xcl/src/hle/d3d12x/gpu_progress.rs` (new): the poll, the service times, the minute lines and the report at a removal, with unit tests. - `crates/xcl/src/hle/d3d12x/list_x.rs`: the progress records carry the frame they were sent in; `progress_since` hands them out with the lock only tried; `progress_summary` keeps the unfinished records when a removed device's fence reads u64::MAX. - `crates/xcl/src/hle/d3d12x/watch.rs`: the watch thread polls before it looks for a removal. - `crates/xcl/src/hle/d3d12x/real.rs`: the removal report is written before the "recorded last" report. - `crates/xcl/src/hle/d3d12x/mod.rs`: the new module. **Tested** - RTX 3060 Ti 8 GB, Windows 11, release build: the change has been in our test builds since 1 Dec (no measured before/after on its own). - This branch (on main 1c8b5514): `cargo check -p xcl --lib --tests --target x86_64-pc-windows-gnu` passes. The test suite was not run on this exact branch. **Regression run** - Not run yet: testers welcome. **Not tested** - The suite and `scripts/smoke.ps1` on this branch; AMD. - The new unit tests cover the service times, the oldest unfinished submit, the record bound and the stats; the poll and the removal report need a live device. - With `XCL_GPU_WATCH=0` there is no watch thread, so nothing is polled and the removal report says so. **Switches** - `XCL_HANG_SUBMITS` (default on): `=0` polls, keeps and logs nothing. **AI use** - Claude Code wrote the change and this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Foniass commented 2026-12-02 09:17:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T09:17:36Z.


Review (head 26083e48, diff read, not a merge-check; checks red):

  • PR description check is red. For this runtime change scripts/pr_check.py needs suite counts under Tested and two xcl-smoke blocks (main and this head) under Regression run. The description has neither: only cargo check for the gnu target, and "Not run yet". The feature is on by default (XCL_HANG_SUBMITS unset = on), so it needs that evidence.
  • The minute lines' service times measure the 100 ms poll, not the GPU. In gpu_progress.rs ~92-103 (finish), the first submit a poll sees done gets now - max(sent, previous done_at), and every other submit finished in the same poll gets 0 (the unit test at ~285 expects this: "the third ... 0"). Take 60 fps with six 2 ms submits per poll: each poll gives one ~90 ms time and five 0s. The line then reads "median 0 ms, p99 ~90 ms", which describes the polling and not the GPU. Only times well above 100 ms mean anything. Either say so in the line and the docs, or report only submits longer than the poll interval.
  • "The submit the GPU was on" can be one that is waiting. The progress Signal comes after the whole chunk. Any queue Wait before it, the title's own or XCL's (list_x.rs ~5458, wait_all_on), holds that Signal back. On a queue held by another queue's fence, the oldest unfinished submit is waiting, and "GPU on it for N ms" (gpu_progress.rs ~241) counts that wait as GPU work. The removal line should say it can be waiting, or the lines should be read together with the wait edges.
  • The record bound drops the very submit the report looks for. push_bounded (gpu_progress.rs ~82) and note_submitted's ring (list_x.rs ~2348) both keep 4096 and drop the oldest. If more than 4096 submits reach a queue between the hang and the removal, the hung submit is gone. oldest_unfinished then names a later one with no warning. A gap (front.seq > done + 1) would show this and could be logged.
  • Tests cover only the pure helpers. Nothing tests the incremental copy in progress_since and copy_new: the take_while(seq > copied) walk and the copied bookkeeping. Nothing tests the change that progress_summary no longer pops records when the fence reads u64::MAX (list_x.rs ~2398). The second is the one real change to existing code.

Fine: diagnostics only, with no new fence and no new Signal. The sequence numbers are per queue and monotonic: they are assigned and signalled under PROGRESS inside queue_submit::with, and they are u64. The submit path gains one relaxed atomic load and 8 bytes per record. The watch thread only try_locks PROGRESS and reads the fences with no lock held. Memory is bounded at 4096 records per queue, and the per-minute vector is drained when its line is written. No textual conflict with #3674, which is complementary. Its per-queue creation line names queues by raw address, though, while these lines use q<id>, so the two cannot be matched in a log.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7340666607 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3673#issuecomment-7340666607). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T09:17:36Z. --- Review (head 26083e48, diff read, not a merge-check; checks red): - **PR description check is red.** For this runtime change `scripts/pr_check.py` needs suite counts under **Tested** and two `xcl-smoke` blocks (main and this head) under **Regression run**. The description has neither: only `cargo check` for the gnu target, and "Not run yet". The feature is on by default (`XCL_HANG_SUBMITS` unset = on), so it needs that evidence. - **The minute lines' service times measure the 100 ms poll, not the GPU.** In `gpu_progress.rs ~92-103` (`finish`), the first submit a poll sees done gets `now - max(sent, previous done_at)`, and every other submit finished in the same poll gets 0 (the unit test at ~285 expects this: "the third ... 0"). Take 60 fps with six 2 ms submits per poll: each poll gives one ~90 ms time and five 0s. The line then reads "median 0 ms, p99 ~90 ms", which describes the polling and not the GPU. Only times well above 100 ms mean anything. Either say so in the line and the docs, or report only submits longer than the poll interval. - **"The submit the GPU was on" can be one that is waiting.** The progress Signal comes after the whole chunk. Any queue Wait before it, the title's own or XCL's (`list_x.rs ~5458`, `wait_all_on`), holds that Signal back. On a queue held by another queue's fence, the oldest unfinished submit is waiting, and "GPU on it for N ms" (`gpu_progress.rs ~241`) counts that wait as GPU work. The removal line should say it can be waiting, or the lines should be read together with the wait edges. - **The record bound drops the very submit the report looks for.** `push_bounded` (`gpu_progress.rs ~82`) and `note_submitted`'s ring (`list_x.rs ~2348`) both keep 4096 and drop the oldest. If more than 4096 submits reach a queue between the hang and the removal, the hung submit is gone. `oldest_unfinished` then names a later one with no warning. A gap (`front.seq > done + 1`) would show this and could be logged. - **Tests cover only the pure helpers.** Nothing tests the incremental copy in `progress_since` and `copy_new`: the `take_while(seq > copied)` walk and the `copied` bookkeeping. Nothing tests the change that `progress_summary` no longer pops records when the fence reads u64::MAX (`list_x.rs ~2398`). The second is the one real change to existing code. Fine: diagnostics only, with no new fence and no new Signal. The sequence numbers are per queue and monotonic: they are assigned and signalled under `PROGRESS` inside `queue_submit::with`, and they are u64. The submit path gains one relaxed atomic load and 8 bytes per record. The watch thread only `try_lock`s `PROGRESS` and reads the fences with no lock held. Memory is bounded at 4096 records per queue, and the per-minute vector is drained when its line is written. No textual conflict with #3674, which is complementary. Its per-queue creation line names queues by raw address, though, while these lines use `q<id>`, so the two cannot be matched in a log. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Foniass commented 2026-12-02 10:06:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T10:06:55Z.


Test report (not a merge-check: PR description red)
base: 1c8b551475
head: 26083e486f
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2913 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none
review: read by one reviewer at this same head; the review is at https://github.com/xcl-dev/xcl/pull/3673#issuecomment-7340666607 and its findings stand. Most serious: a default-on diagnostic whose per-minute median and p99 measure the 100 ms poll, not GPU time.
performance: 60 s smoke of a retail title, main 1c8b5514 vs this merge (26083e48): 1652 -> 1678 frames shown (101 %; last presents per 2 s: 60 61 60), peak commit 18228 -> 17406 MB, 0 device removals, 0 crashes.
assessment: merges, builds and passes the whole suite on current main, and the smoke run is clean; the blocking point is in the review: a default-on diagnostic whose per-minute median and p99 measure the 100 ms poll, not GPU time
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.

<!-- greyfinch-sync:ivall/xcl:comment:7341983758 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3673#issuecomment-7341983758). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T10:06:55Z. --- Test report (not a merge-check: `PR description` red) base: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f head: 26083e486f452131a96d1e0156d009f1187e56c3 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2913 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none review: read by one reviewer at this same head; the review is at https://github.com/xcl-dev/xcl/pull/3673#issuecomment-7340666607 and its findings stand. Most serious: a default-on diagnostic whose per-minute median and p99 measure the 100 ms poll, not GPU time. performance: 60 s smoke of a retail title, main 1c8b5514 vs this merge (26083e48): 1652 -> 1678 frames shown (101 %; last presents per 2 s: 60 61 60), peak commit 18228 -> 17406 MB, 0 device removals, 0 crashes. assessment: merges, builds and passes the whole suite on current main, and the smoke run is clean; the blocking point is in the review: a default-on diagnostic whose per-minute median and p99 measure the 100 ms poll, not GPU time 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.
Gevroska commented 2026-12-02 10:46:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Gevroska on 2026-12-02T10:46:44Z.


I tested the timing concern on 26083e48 using the PR’s gpu_progress.rs with synthetic fence values. In one control, a dependency held the queue until 170 ms, the work finished at 172 ms, and the next poll saw it at 200 ms. The observer reported 200 ms for 2 ms of simulated execution. In another control, three completions seen in the same poll produced 100 / 0 / 0 ms for two different execution schedules.

I’d label the metric time between observed completions and include the polling interval next to it. A positive fence observation is useful evidence that the queue advanced. The interval includes both dependency waits and the delay before the observer polls again.

All four upstream tests and four additional controls passed in two independent runs. These were Windows CPU tests with synthetic inputs. OpenAI Codex GPT-6.2 Sol ran the tests, a separate GPT-6.2 Sol agent repeated them, and GPT-6.2 Astra drafted this comment.

I reviewed and approved this comment before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7342967285 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3673#issuecomment-7342967285). Originally posted by [Gevroska](https://github.com/Gevroska) on 2026-12-02T10:46:44Z. --- I tested the timing concern on `26083e48` using the PR’s `gpu_progress.rs` with synthetic fence values. In one control, a dependency held the queue until 170 ms, the work finished at 172 ms, and the next poll saw it at 200 ms. The observer reported **200 ms for 2 ms of simulated execution**. In another control, three completions seen in the same poll produced `100 / 0 / 0 ms` for two different execution schedules. I’d label the metric **time between observed completions** and include the polling interval next to it. A positive fence observation is useful evidence that the queue advanced. The interval includes both dependency waits and the delay before the observer polls again. All four upstream tests and four additional controls passed in two independent runs. These were Windows CPU tests with synthetic inputs. OpenAI Codex GPT-6.2 Sol ran the tests, a separate GPT-6.2 Sol agent repeated them, and GPT-6.2 Astra drafted this comment. I reviewed and approved this comment before posting.
Foniass commented 2026-12-03 15:46:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T15:46:03Z.


merge-check
base: 16c2fd082a
head: 26083e486f
merge: clean
build: ok
tests: 3016 passed, 0 failed, 56 ignored; 28 skipped, the same as on main
review: 1 high, 3 medium, 1 nit (below)
performance: 60 s smoke run: 1683 → 1667 frames (99 % of main), peak commit 18505 → 18178 MB, no device removal, no crash
title run: retail title on the RTX 5070 Ti (driver 621.14), into the world by scripted presses: 232 s there, 0 device removals, 0 crashes, 2.6 presents/s; run with XCL_SKIP_CS=95cc13288a27a96e (the NVIDIA hang at the end of loading, #3541) and NVIDIA's 2048 MB shader heap (#2590)
verdict: not yet: 1 blocking finding (critical or high, below); also PR description is red
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5


In short: Reads each queue's existing progress fence from the watch thread ten times a second, logs per-minute service times per queue, and at a device removal names the oldest unfinished submit per queue. The head has not moved since my earlier review and test report. The removal report is useful, but the per-minute service times it logs by default measure the 100 ms poll, not GPU time, which blocks it.

High

  1. Per-minute service times measure the poll, not the GPU. In finish (gpu_progress.rs ~92-103), the first submit a poll sees done gets now - max(sent, previous done_at), and every other submit finished in the same poll gets 0; the unit test expects this ("(0, 8)"). At 60 fps with several short submits per poll, the minute line reads "median 0 ms, p99 ~90 ms, slowest ~100 ms" whatever the GPU did. Gevroska's synthetic run on this head shows 200 ms reported for 2 ms of work and 100/0/0 for two different schedules. The line is on by default. Label it as time between observed completions with the poll interval, or report only times well above the poll.

Medium

  1. "GPU on it" can be a submit that is waiting. The progress Signal comes after the whole chunk, so any queue Wait before it (the title's own, or XCL's wait_all_on, list_x.rs ~5458) holds it back. On a queue held by another queue's fence, the oldest unfinished submit may only be waiting, and "GPU on it for N ms" (gpu_progress.rs ~241) counts the wait as GPU work. The removal line should say it may be waiting.
  2. The record bound can drop the hung submit. push_bounded (gpu_progress.rs ~82) and note_submitted's ring (list_x.rs ~2348) both keep 4096 and drop the oldest. If more than 4096 submits reach a queue between the hang and the removal (the title keeps submitting through the ~2 s TDR), oldest_unfinished names a later submit without warning. Log a gap when records.front().seq > done + 1.
  3. The incremental copy and the progress_summary change have no test. Nothing tests progress_since / copy_new (the take_while(seq > copied) walk and the copied bookkeeping), or that progress_summary no longer pops records when the fence reads u64::MAX (list_x.rs ~2398), the one change to existing behaviour. The tests cover only the pure helpers.

Nit

  1. at_removal's return value is unused. at_removal returns Vec<(usize, Rec)>, and its only caller (real.rs stop_if_device_removed) drops it.
Checked and fine
  • Diagnostics only: no new fence and no new Signal; the submit path gains one relaxed load and 8 bytes per record
  • Sequence numbers are per queue, u64 and monotonic, assigned and signalled under PROGRESS
  • The watch thread only try_locks PROGRESS and reads fences with no lock held; at_removal's 100 ms patience cannot deadlock when called from a thread already holding PROGRESS
  • Memory is bounded at 4096 records per queue, and the per-minute vector is drained at each line
  • 362 changed lines in one commit; XCL_HANG_SUBMITS=0 turns it all off
How this was tested
  • Merged onto main 16c2fd08, then cargo build --workspace and cargo test --workspace --no-fail-fast -- --test-threads=4.
  • The skipped GPU tests are those this card can't run (no wave64 on NVIDIA, no D3D12 debug layer, and similar).
  • scripts/smoke.ps1: 60 s of a retail title on main 16c2fd08 and on this merge; presents per 2 s at the end: 61 60 60.
  • Title run: the release build of this merge launched the retail title with XCL_RUN_SECONDS=300 and scripted A presses counted from the first frame (XCL_PRESS_BASE=frame, #3712) into the world from an existing save; time in the world is counted from the first in-world draw call to the end of the run.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7383698301 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3673#issuecomment-7383698301). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T15:46:03Z. --- merge-check base: 16c2fd082ae2e96967a2ab553bc2e1032e491f70 head: 26083e486f452131a96d1e0156d009f1187e56c3 merge: clean build: ok tests: 3016 passed, 0 failed, 56 ignored; 28 skipped, the same as on main review: 1 high, 3 medium, 1 nit (below) performance: 60 s smoke run: 1683 → 1667 frames (99 % of main), peak commit 18505 → 18178 MB, no device removal, no crash title run: retail title on the RTX 5070 Ti (driver 621.14), into the world by scripted presses: 232 s there, 0 device removals, 0 crashes, 2.6 presents/s; run with `XCL_SKIP_CS=95cc13288a27a96e` (the NVIDIA hang at the end of loading, #3541) and NVIDIA's 2048 MB shader heap (#2590) verdict: not yet: 1 blocking finding (critical or high, below); also `PR description` is red hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 --- **In short:** Reads each queue's existing progress fence from the watch thread ten times a second, logs per-minute service times per queue, and at a device removal names the oldest unfinished submit per queue. The head has not moved since my earlier review and test report. The removal report is useful, but the per-minute service times it logs by default measure the 100 ms poll, not GPU time, which blocks it. #### High 1. **Per-minute service times measure the poll, not the GPU.** In finish (gpu_progress.rs ~92-103), the first submit a poll sees done gets now - max(sent, previous done_at), and every other submit finished in the same poll gets 0; the unit test expects this ("(0, 8)"). At 60 fps with several short submits per poll, the minute line reads "median 0 ms, p99 ~90 ms, slowest ~100 ms" whatever the GPU did. Gevroska's synthetic run on this head shows 200 ms reported for 2 ms of work and 100/0/0 for two different schedules. The line is on by default. Label it as time between observed completions with the poll interval, or report only times well above the poll. #### Medium 2. **"GPU on it" can be a submit that is waiting.** The progress Signal comes after the whole chunk, so any queue Wait before it (the title's own, or XCL's wait_all_on, list_x.rs ~5458) holds it back. On a queue held by another queue's fence, the oldest unfinished submit may only be waiting, and "GPU on it for N ms" (gpu_progress.rs ~241) counts the wait as GPU work. The removal line should say it may be waiting. 3. **The record bound can drop the hung submit.** push_bounded (gpu_progress.rs ~82) and note_submitted's ring (list_x.rs ~2348) both keep 4096 and drop the oldest. If more than 4096 submits reach a queue between the hang and the removal (the title keeps submitting through the ~2 s TDR), oldest_unfinished names a later submit without warning. Log a gap when records.front().seq > done + 1. 4. **The incremental copy and the progress_summary change have no test.** Nothing tests progress_since / copy_new (the take_while(seq > copied) walk and the copied bookkeeping), or that progress_summary no longer pops records when the fence reads u64::MAX (list_x.rs ~2398), the one change to existing behaviour. The tests cover only the pure helpers. #### Nit 5. **at_removal's return value is unused.** at_removal returns Vec<(usize, Rec)>, and its only caller (real.rs stop_if_device_removed) drops it. <details><summary>Checked and fine</summary> - Diagnostics only: no new fence and no new Signal; the submit path gains one relaxed load and 8 bytes per record - Sequence numbers are per queue, u64 and monotonic, assigned and signalled under PROGRESS - The watch thread only try_locks PROGRESS and reads fences with no lock held; at_removal's 100 ms patience cannot deadlock when called from a thread already holding PROGRESS - Memory is bounded at 4096 records per queue, and the per-minute vector is drained at each line - 362 changed lines in one commit; XCL_HANG_SUBMITS=0 turns it all off </details> <details><summary>How this was tested</summary> - Merged onto main `16c2fd08`, then `cargo build --workspace` and `cargo test --workspace --no-fail-fast -- --test-threads=4`. - The skipped GPU tests are those this card can't run (no wave64 on NVIDIA, no D3D12 debug layer, and similar). - `scripts/smoke.ps1`: 60 s of a retail title on main `16c2fd08` and on this merge; presents per 2 s at the end: 61 60 60. - Title run: the release build of this merge launched the retail title with `XCL_RUN_SECONDS=300` and scripted A presses counted from the first frame (`XCL_PRESS_BASE=frame`, #3712) into the world from an existing save; time in the world is counted from the first in-world draw call to the end of the run. </details> <sub>Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.</sub>
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3673:upstream-pr/3673'
git switch 'upstream-pr/3673'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3673'
git switch 'upstream-pr/3673'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3673'
git switch 'upstream-pr/3673'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3673'
git switch 'main'
git merge --squash 'upstream-pr/3673'
git switch 'main'
git merge --ff-only 'upstream-pr/3673'
git switch 'main'
git merge 'upstream-pr/3673'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3673
No description provided.