Add the queue wait order fix to the performance recipe #21

Manually merged
github merged 1 commit from github-bot/gh-21 into main 2026-11-28 18:02:57 +00:00 AGit
Owner

@⁠jgrizon on GitHub · 2026-11-28 04:04 UTC · original
jgrizon:perf/queue-wait-order → main · +93 −0 · 2 files · 1 commits · merged 2026-11-28 18:02 UTC

Adds the checkpoint's queue wait order fix (patch 0016, VIctory-macOS PR #434) to the performance recipe as patch 0031.

What it does. The perf recipe's held-work pump tested a queue's memory wait before the earlier segments of that same queue had run. A wait could then pass on a value those segments were about to change. That matches the Prestream crash in #19 (Unsignaled CrossQueueBarrier, Current SRL State: Prestream). The checkpoint already has this fix; the perf recipe did not.

The one test that changed: hold::tests::a_held_head_knows_what_runs_next now expects the earlier piece to have run before the wait is tested, so that piece is no longer in the "runs next" list.

Evidence. Release build, play preset, Series S, every run started from the same pinned save. Apple M5 Pro, 24 GB, macOS 27.3, CrossOver 26.3.0.39832, D3DMetal 3.0.

runs Prestream crashes median frame, world minutes 2-6
without 4 2 289-332 ms
with 20 3 297-303 ms

Not a full fix. About 1 run in 7 still crashes the same way. In those crash logs the title faults on a null read first, and the barrier message comes after. I am still tracking that and will post on #19.

Merge risk. Low. One file (hold.rs), 9 lines of logic. git apply of the whole series onto the base checks clean. hold:: tests: 15 passed.

**@⁠jgrizon** on GitHub · 2026-11-28 04:04 UTC · [original](https://github.com/paveledits/ScarlettMac/pull/21) `jgrizon:perf/queue-wait-order` → `main` · +93 −0 · 2 files · 1 commits · merged 2026-11-28 18:02 UTC Adds the checkpoint's queue wait order fix (patch 0016, VIctory-macOS PR #434) to the performance recipe as patch 0031. **What it does.** The perf recipe's held-work pump tested a queue's memory wait before the earlier segments of that same queue had run. A wait could then pass on a value those segments were about to change. That matches the Prestream crash in #19 (`Unsignaled CrossQueueBarrier`, `Current SRL State: Prestream`). The checkpoint already has this fix; the perf recipe did not. The one test that changed: `hold::tests::a_held_head_knows_what_runs_next` now expects the earlier piece to have run before the wait is tested, so that piece is no longer in the "runs next" list. **Evidence.** Release build, play preset, Series S, every run started from the same pinned save. Apple M5 Pro, 24 GB, macOS 27.3, CrossOver 26.3.0.39832, D3DMetal 3.0. | | runs | Prestream crashes | median frame, world minutes 2-6 | | --- | --- | --- | --- | | without | 4 | 2 | 289-332 ms | | with | 20 | 3 | 297-303 ms | **Not a full fix.** About 1 run in 7 still crashes the same way. In those crash logs the title faults on a null read first, and the barrier message comes after. I am still tracking that and will post on #19. **Merge risk.** Low. One file (`hold.rs`), 9 lines of logic. `git apply` of the whole series onto the base checks clean. `hold::` tests: 15 passed.
Port of checkpoint patch 0016 (VIctory-macOS PR #434) as perf patch 0031.
On a pinned save it cut Prestream crashes from 2 in 4 runs to 3 in 20,
with no change in frame time.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 04:09:50 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-28 04:04 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-11-28 04:04 UTC · [original](https://github.com/paveledits/ScarlettMac/pull/21#pullrequestreview-6095665666) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
github manually merged commit 1fb9f2c270 into main 2026-11-28 18:02:57 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.