WIP: perf(vk): a fence poll does not wait behind the replay's order lock (render thread off) #2523

Draft
neotoxic wants to merge 10 commits from neotoxic/Longshot:perf-vk-fence-poll into main
Contributor

Summary

With the render thread off (Threaded rendering Off, fewer than 4 cores, or Auto without pool mirrors: integrated GPUs,
the Steam Deck), every nvnSyncWait starts with a poll, rx_nvn_wait(fence, 0) (host/nvn_native.c:1182), made
before the game's thread gives its virtual core up (:1190). In wait_inner (gpu/vk/vk_replay.cpp) that poll took
sync_order_mu for the per-queue fence check, and that lock is held for a submission's whole replay (submit_q →
run_submit) and for a present (present_tagged): the game's thread waited behind the replay with its core held, so no
other guest thread could use that core either. wait_rec_seq's flush also waited for dev.present_mu without a limit,
for polls too (the comment at wait_rec_seq fixed that only for work already reached).

The same pattern, fixed for readbacks in sync_settle_met (the comment above it: a job thread blocked 24% of the time,
3.9 ms a frame in Hyrule Field), was never fixed for this poll.

Now a poll (no timeout) tries the lock: taken, it answers as before. Busy (maybe by other work: a present, another
queue's replay), it looks its fence up in value_whole, where a queue's submission that run_submit replayed whole is
published with its recording (submit_recording, under rec_map_mu), and answers from the recordings' timeline
(wait_recorded_whole); not there (stopped, still being replayed, or with no queue), it falls through to the
submissions' timeline check, also without the lock: the same answer the look under the lock gives. A flush with no
timeout (queue_flush_for(.., 0): wait_inner's, wait_rec_seq's for a poll) takes dev.present_mu only if it is
free, settled parts or not. Waits with a timeout are unchanged.

Read first: wait_inner and wait_rec_seq in gpu/vk/vk_replay.cpp.

Testing

Tested: Windows 11 Pro 26300, RTX 5080, Ryzen 9 7950X, NVIDIA: dev.py ab --scene hyrule-field --set RX_VK_ASYNC=0
(the render thread off, the path this changes), 3 interleaved runs each of main and this PR, 60 s each after the
warm-up: no hang, no black frame, no cold frames, the game played in Hyrule Field in every run. The default (render
thread on) never takes this path (!async_on()). run_all.py --strict: 687 passed, 111 failed, 45 skipped; 110 fail
the same on main on this Windows PC (Linux-only and POSIX checks), and test_recording_admission.py fails on main
too when run alone (4 of 4 here, its parallel case, 0xC0000374); it reads none of the changed files. That game run
and run_all.py were at f578f837.

The head (d07d3d44) in the game, on 04/12 (moved from Still to test): dev.py ab --scene hyrule-field --set RX_VK_ASYNC=0 --runs 2, twice, against main @ be663a08 (this branch's base), on this PC (Windows 11 Pro 26300, RTX
5080, driver 617.42, Ryzen 9 7950X): 4 interleaved runs a side, 60 s each, every log's vk: switches set line reads
RX_VK_ASYNC=0 (player); no hang, no black frame, no cold frames. Also on a Linux laptop (CachyOS, kernel 7.3.7,
COSMIC Wayland, RTX 3060 Laptop, driver 620.85.02, 8 cores / 16 threads, about 69 fps there): 4 runs
a side, no hang, no black frame. Numbers in Measurements.

At d07d3d44 (game-free): tests/test_fence_poll_busy.py (new, 12 cases, each poll on its own thread while another
holds sync_order_mu and/or dev.present_mu) passes, and fails with main's vk_replay.cpp @ be663a08 (8 of 12) and f578f837's (5 of 12). The
other checks that read the changed functions pass unchanged: on this PC with g++ test_flush_nothing_held,
test_hold_gpu, test_readback_early, test_readback_part, test_recorded_wait_flush, test_timeline_modes,
test_value_rec_last_part; on Linux (g++, Vulkan-Headers v1.4.345), as they need POSIX or Vulkan headers,
test_lost_wait_said (which cuts wait_rec_seq from the source), test_readback_wait_bounded and
test_fence_poll_busy.

Still to test:

  • Steam Deck (RADV, render thread off by Auto): Hyrule Field and the Market, fps, 1% low, median and p99 frame time,
    main against this PR, expecting a better 1% low and no hang (@Beanstalk Steam Deck: Hyrule Field and Market, main
    against this PR).
  • An integrated GPU on Windows (Intel Iris Xe or an AMD APU, Auto without pool mirrors): the same (@Beanstalk an
    integrated GPU on Windows: Hyrule Field and Market, main against this PR).

Measurements

Verdict: on current main no gain on either machine. With main @ ca830e89 merged in (7f7f2b56), with the render thread off:

  • This PC: 164.5 / 165.5 fps against 164.6 / 165.5 on main.
  • The Linux laptop: 69.8 / 69.6 against 69.9 / 68.9, with a 1 % low of 53.1 / 51.0 on main against 50.6 / 45.2 here (two runs a side, so a lean, not a finding).

The +1.2 % measured on this PC against be663a08 (below) is gone: main has since moved past that point. Neither machine is the target, though. The change aims at CPU-bound PCs with the render thread off (the Steam Deck, integrated GPUs). This stays a draft for the Test Farm runs in Still to test, and no gain is claimed.

Not measured: the number the change targets (the time a poll waits for sync_order_mu / dev.present_mu).

Merged with main (7f7f2b56 against ca830e89), 04/12

Setup: dev.py ab --scene hyrule-field --set RX_VK_ASYNC=0 --runs 2 --seconds 60, interleaved A1 B1 A2 B2, with no fps cap (HOS_FPS_MAX=1000), Render resolution 67 % and V-Sync and frame generation off. RX_VK_ASYNC=0 (player) reads back in every run's log. On this PC dev.py ab wrote no Measurements block, because handle numbers in the switches differ per run; the numbers are its per-run lines.

This PC, Windows 11, RTX 5080 (runs 1 / 2) Before: main @ ca830e89 After: this PR @ 7f7f2b56
fps 164.5 / 165.5 164.6 / 165.5
1% low 135.1 / 131.9 fps 134.9 / 132.8 fps
p99 frame time 7.11 / 7.13 ms 7.12 / 7.19 ms
Linux laptop, CachyOS, RTX 3060 Laptop (runs 1 / 2) Before: main @ ca830e89 After: this PR @ 7f7f2b56
fps 69.8 / 69.6 69.9 / 68.9
1% low 53.1 / 51.0 fps 50.6 / 45.2 fps
median frame time 14.08 / 14.11 ms 14.08 / 14.18 ms
p99 frame time 18.82 / 19.62 ms 19.76 / 22.11 ms

This time the laptop's runs held one level each, with none of the 27.7 fps runs seen below.

At the head (d07d3d44), 04/12

Setup: Windows 11 Pro 26300, RTX 5080, driver 617.42, Ryzen 9 7950X; dev.py ab --scene hyrule-field --set RX_VK_ASYNC=0 --runs 2 --seconds 60 run twice (cap off, HOS_FPS_MAX=1000; Render resolution 67 %; V-Sync and frame
generation off), interleaved A1 B1 A2 B2, then A3 B3 A4 B4. dev.py ab wrote no Measurements block (the simulated-turf
rows, which the game rewrites on an area load, and HOS_CONTROL's pipe name differ between runs); the numbers are its
per-run lines.

This PC (runs 1 / 2 / 3 / 4) Before: main @ be663a08 After: this PR @ d07d3d44
fps 155.1 / 156.0 / 155.7 / 156.4 (median 155.9) 157.6 / 157.7 / 157.5 / 157.9 (median 157.7)
1% low 129.7 / 128.4 / 131.8 / 130.2 fps (median 130.0) 134.2 / 133.3 / 131.1 / 132.1 fps (median 132.7)
median frame time 6.43 / 6.38 / 6.40 / 6.38 ms 6.34 / 6.33 / 6.33 / 6.32 ms
p99 frame time 7.71 / 7.79 / 7.59 / 7.68 ms (median 7.70) 7.45 / 7.50 / 7.63 / 7.57 ms (median 7.54)

The Linux laptop (CachyOS 7.3.7, COSMIC Wayland, RTX 3060 Laptop, driver 620.85.02, the same command twice, window
1440x900): fps main 68.5 / 57.9 / 68.7 / 27.7, this PR 27.7 / 69.3 / 69.6 / 72.8. A run settles within 30 s on a
level and stays on it (the log's vi: lines every 5 s); the 27.7 fps level came once on each side, with the same
window, the GPU at full clock and no limit but the display clock's (nvidia-smi every 5 s), and the queue marked no run
noisy. Without those two runs, 68.5 / 57.9 / 68.7 against 69.3 / 69.6 / 72.8: too spread to call.

The first commit (f578f837), 25/11

Setup: Windows 11 Pro 26300, RTX 5080, Ryzen 9 7950X; dev.py ab --scene hyrule-field --set RX_VK_ASYNC=0 --runs 3 --seconds 60 (cap off, Render resolution 67%), interleaved A1 B1 A2 B2 A3 B3.

Before: main @ be663a08 After: this PR @ f578f837
fps (runs 1 / 2 / 3) 155.8 / 157.5 / 157.7 158.2 / 157.6 / 158.3
median frame time 6.41 / 6.32 / 6.32 ms 6.30 / 6.34 / 6.30 ms
1% low 130.7 / 130.6 / 128.3 fps 132.6 / 134.2 / 130.4 fps

(dev.py ab wrote no Measurements block: the runs' options files differ in the simulated-turf rows, which the game
rewrites on an area load; the numbers are its per-run lines.)

Risks

  • A poll that finds the lock busy and its fence not in value_whole answers from the submissions' timeline, which can
    say "not done" where the per-queue look might have said done (an older queue stopped): the game then waits for real
    (core given up) and gets the answer there, a little later. It never says "done" early: value_whole holds only
    submissions replayed whole (value_rec is not used, its recording can be a stopped submission's). Waits with a
    timeout are unchanged, so no wait can end early or hang that didn't before.
  • Only with the render thread off. A revert is enough; nothing changes in saves, settings or caches.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit. main @ ca830e89 merged in (2a4d5433), plus 7f7f2b56, which gives tests/test_fence_poll_busy.py the settings_start stub that main's wait_inner now reads.
  • Tested on my own PC, in the game for a change the game runs, as Testing says. (the head d07d3d44 in the game on 04/12, this PC and a Linux laptop: Testing)
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure. (the head against main @ be663a08, four interleaved pairs with p99: +1.2 % fps on this GPU-bound PC; the target hardware is the Test Farm's)
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A check under tests/ that reads changed source is updated, not weakened. (none changed; the ones that read the changed functions pass at d07d3d44, as Testing lists, and tests/test_fence_poll_busy.py is new)
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows: the renderer built here by dev.py pack; Linux: CI's build)
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary With the render thread off (Threaded rendering Off, fewer than 4 cores, or Auto without pool mirrors: integrated GPUs, the Steam Deck), every `nvnSyncWait` starts with a poll, `rx_nvn_wait(fence, 0)` (`host/nvn_native.c:1182`), made before the game's thread gives its virtual core up (`:1190`). In `wait_inner` (`gpu/vk/vk_replay.cpp`) that poll took `sync_order_mu` for the per-queue fence check, and that lock is held for a submission's whole replay (`submit_q` → `run_submit`) and for a present (`present_tagged`): the game's thread waited behind the replay with its core held, so no other guest thread could use that core either. `wait_rec_seq`'s flush also waited for `dev.present_mu` without a limit, for polls too (the comment at `wait_rec_seq` fixed that only for work already reached). The same pattern, fixed for readbacks in `sync_settle_met` (the comment above it: a job thread blocked 24% of the time, 3.9 ms a frame in Hyrule Field), was never fixed for this poll. Now a poll (no timeout) tries the lock: taken, it answers as before. Busy (maybe by other work: a present, another queue's replay), it looks its fence up in `value_whole`, where a queue's submission that `run_submit` replayed whole is published with its recording (`submit_recording`, under `rec_map_mu`), and answers from the recordings' timeline (`wait_recorded_whole`); not there (stopped, still being replayed, or with no queue), it falls through to the submissions' timeline check, also without the lock: the same answer the look under the lock gives. A flush with no timeout (`queue_flush_for(.., 0)`: wait_inner's, `wait_rec_seq`'s for a poll) takes `dev.present_mu` only if it is free, settled parts or not. Waits with a timeout are unchanged. Read first: `wait_inner` and `wait_rec_seq` in `gpu/vk/vk_replay.cpp`. ## Testing **Tested:** Windows 11 Pro 26300, RTX 5080, Ryzen 9 7950X, NVIDIA: `dev.py ab --scene hyrule-field --set RX_VK_ASYNC=0` (the render thread off, the path this changes), 3 interleaved runs each of main and this PR, 60 s each after the warm-up: no hang, no black frame, no cold frames, the game played in Hyrule Field in every run. The default (render thread on) never takes this path (`!async_on()`). `run_all.py --strict`: 687 passed, 111 failed, 45 skipped; 110 fail the same on `main` on this Windows PC (Linux-only and POSIX checks), and `test_recording_admission.py` fails on `main` too when run alone (4 of 4 here, its `parallel` case, 0xC0000374); it reads none of the changed files. That game run and `run_all.py` were at f578f837. The head (d07d3d44) in the game, on 04/12 (moved from Still to test): `dev.py ab --scene hyrule-field --set RX_VK_ASYNC=0 --runs 2`, twice, against `main` @ be663a08 (this branch's base), on this PC (Windows 11 Pro 26300, RTX 5080, driver 617.42, Ryzen 9 7950X): 4 interleaved runs a side, 60 s each, every log's `vk: switches set` line reads `RX_VK_ASYNC=0 (player)`; no hang, no black frame, no cold frames. Also on a Linux laptop (CachyOS, kernel 7.3.7, COSMIC Wayland, RTX 3060 Laptop, driver 620.85.02, 8 cores / 16 threads, about 69 fps there): 4 runs a side, no hang, no black frame. Numbers in Measurements. At d07d3d44 (game-free): `tests/test_fence_poll_busy.py` (new, 12 cases, each poll on its own thread while another holds `sync_order_mu` and/or `dev.present_mu`) passes, and fails with `main`'s `vk_replay.cpp` @ be663a08 (8 of 12) and f578f837's (5 of 12). The other checks that read the changed functions pass unchanged: on this PC with g++ `test_flush_nothing_held`, `test_hold_gpu`, `test_readback_early`, `test_readback_part`, `test_recorded_wait_flush`, `test_timeline_modes`, `test_value_rec_last_part`; on Linux (g++, Vulkan-Headers v1.4.345), as they need POSIX or Vulkan headers, `test_lost_wait_said` (which cuts `wait_rec_seq` from the source), `test_readback_wait_bounded` and `test_fence_poll_busy`. **Still to test:** - Steam Deck (RADV, render thread off by Auto): Hyrule Field and the Market, fps, 1% low, median and p99 frame time, main against this PR, expecting a better 1% low and no hang (@Beanstalk Steam Deck: Hyrule Field and Market, main against this PR). - An integrated GPU on Windows (Intel Iris Xe or an AMD APU, Auto without pool mirrors): the same (@Beanstalk an integrated GPU on Windows: Hyrule Field and Market, main against this PR). ## Measurements **Verdict:** on current `main` no gain on either machine. With `main` @ ca830e89 merged in (7f7f2b56), with the render thread off: - **This PC:** 164.5 / 165.5 fps against 164.6 / 165.5 on `main`. - **The Linux laptop:** 69.8 / 69.6 against 69.9 / 68.9, with a 1 % low of 53.1 / 51.0 on `main` against 50.6 / 45.2 here (two runs a side, so a lean, not a finding). The +1.2 % measured on this PC against be663a08 (below) is gone: `main` has since moved past that point. Neither machine is the target, though. The change aims at CPU-bound PCs with the render thread off (the Steam Deck, integrated GPUs). This stays a draft for the Test Farm runs in Still to test, and no gain is claimed. Not measured: the number the change targets (the time a poll waits for `sync_order_mu` / `dev.present_mu`). #### Merged with main (7f7f2b56 against ca830e89), 04/12 Setup: `dev.py ab --scene hyrule-field --set RX_VK_ASYNC=0 --runs 2 --seconds 60`, interleaved A1 B1 A2 B2, with no fps cap (HOS_FPS_MAX=1000), Render resolution 67 % and V-Sync and frame generation off. `RX_VK_ASYNC=0 (player)` reads back in every run's log. On this PC `dev.py ab` wrote no Measurements block, because handle numbers in the switches differ per run; the numbers are its per-run lines. | This PC, Windows 11, RTX 5080 (runs 1 / 2) | Before: main @ ca830e89 | After: this PR @ 7f7f2b56 | |---|---|---| | fps | 164.5 / 165.5 | 164.6 / 165.5 | | 1% low | 135.1 / 131.9 fps | 134.9 / 132.8 fps | | p99 frame time | 7.11 / 7.13 ms | 7.12 / 7.19 ms | | Linux laptop, CachyOS, RTX 3060 Laptop (runs 1 / 2) | Before: main @ ca830e89 | After: this PR @ 7f7f2b56 | |---|---|---| | fps | 69.8 / 69.6 | 69.9 / 68.9 | | 1% low | 53.1 / 51.0 fps | 50.6 / 45.2 fps | | median frame time | 14.08 / 14.11 ms | 14.08 / 14.18 ms | | p99 frame time | 18.82 / 19.62 ms | 19.76 / 22.11 ms | This time the laptop's runs held one level each, with none of the 27.7 fps runs seen below. #### At the head (d07d3d44), 04/12 Setup: Windows 11 Pro 26300, RTX 5080, driver 617.42, Ryzen 9 7950X; `dev.py ab --scene hyrule-field --set RX_VK_ASYNC=0 --runs 2 --seconds 60` run twice (cap off, HOS_FPS_MAX=1000; Render resolution 67 %; V-Sync and frame generation off), interleaved A1 B1 A2 B2, then A3 B3 A4 B4. `dev.py ab` wrote no Measurements block (the simulated-turf rows, which the game rewrites on an area load, and `HOS_CONTROL`'s pipe name differ between runs); the numbers are its per-run lines. | This PC (runs 1 / 2 / 3 / 4) | Before: main @ be663a08 | After: this PR @ d07d3d44 | |---|---|---| | fps | 155.1 / 156.0 / 155.7 / 156.4 (median 155.9) | 157.6 / 157.7 / 157.5 / 157.9 (median 157.7) | | 1% low | 129.7 / 128.4 / 131.8 / 130.2 fps (median 130.0) | 134.2 / 133.3 / 131.1 / 132.1 fps (median 132.7) | | median frame time | 6.43 / 6.38 / 6.40 / 6.38 ms | 6.34 / 6.33 / 6.33 / 6.32 ms | | p99 frame time | 7.71 / 7.79 / 7.59 / 7.68 ms (median 7.70) | 7.45 / 7.50 / 7.63 / 7.57 ms (median 7.54) | The Linux laptop (CachyOS 7.3.7, COSMIC Wayland, RTX 3060 Laptop, driver 620.85.02, the same command twice, window 1440x900): fps `main` 68.5 / 57.9 / 68.7 / 27.7, this PR 27.7 / 69.3 / 69.6 / 72.8. A run settles within 30 s on a level and stays on it (the log's `vi:` lines every 5 s); the 27.7 fps level came once on each side, with the same window, the GPU at full clock and no limit but the display clock's (`nvidia-smi` every 5 s), and the queue marked no run noisy. Without those two runs, 68.5 / 57.9 / 68.7 against 69.3 / 69.6 / 72.8: too spread to call. #### The first commit (f578f837), 25/11 Setup: Windows 11 Pro 26300, RTX 5080, Ryzen 9 7950X; `dev.py ab --scene hyrule-field --set RX_VK_ASYNC=0 --runs 3 --seconds 60` (cap off, Render resolution 67%), interleaved A1 B1 A2 B2 A3 B3. | | Before: main @ be663a08 | After: this PR @ f578f837 | |---|---|---| | fps (runs 1 / 2 / 3) | 155.8 / 157.5 / 157.7 | 158.2 / 157.6 / 158.3 | | median frame time | 6.41 / 6.32 / 6.32 ms | 6.30 / 6.34 / 6.30 ms | | 1% low | 130.7 / 130.6 / 128.3 fps | 132.6 / 134.2 / 130.4 fps | (`dev.py ab` wrote no Measurements block: the runs' options files differ in the simulated-turf rows, which the game rewrites on an area load; the numbers are its per-run lines.) ## Risks - A poll that finds the lock busy and its fence not in `value_whole` answers from the submissions' timeline, which can say "not done" where the per-queue look might have said done (an older queue stopped): the game then waits for real (core given up) and gets the answer there, a little later. It never says "done" early: `value_whole` holds only submissions replayed whole (`value_rec` is not used, its recording can be a stopped submission's). Waits with a timeout are unchanged, so no wait can end early or hang that didn't before. - Only with the render thread off. A revert is enough; nothing changes in saves, settings or caches. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. `main` @ ca830e89 merged in (2a4d5433), plus 7f7f2b56, which gives `tests/test_fence_poll_busy.py` the `settings_start` stub that `main`'s `wait_inner` now reads. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. (the head d07d3d44 in the game on 04/12, this PC and a Linux laptop: Testing) - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. (the head against `main` @ be663a08, four interleaved pairs with p99: +1.2 % fps on this GPU-bound PC; the target hardware is the Test Farm's) - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A check under `tests/` that reads changed source is updated, not weakened. (none changed; the ones that read the changed functions pass at d07d3d44, as Testing lists, and `tests/test_fence_poll_busy.py` is new) - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows: the renderer built here by `dev.py pack`; Linux: CI's build) - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
perf(vk): a fence poll does not wait behind the replay's order lock
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 5s
beanstalk/approval waiting for a BigBean's 👍 on the request
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
f578f8377f
With the render thread off (Threaded rendering Off, fewer than 4 cores, or
Auto without pool mirrors: integrated GPUs, the Steam Deck), wait_inner took
sync_order_mu for every nvnSyncWait poll, and that lock is held for a
submission's whole replay and for a present: the game's thread waited there
with its core held, since nvnSyncWait polls before it gives the core up. A
poll now tries the lock and, busy, answers not done; the game then waits with
its core given up. wait_rec_seq's flush no longer waits for dev.present_mu
for a poll either.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Tested in game: Windows 11 Pro 26300, RTX 5080, Ryzen 9 7950X: dev.py ab in Hyrule Field with RX_VK_ASYNC=0 (render thread off, the changed path), 3 interleaved 60 s runs each of main and this branch: played normally, no hang, no black frame.

Tested in game: Windows 11 Pro 26300, RTX 5080, Ryzen 9 7950X: dev.py ab in Hyrule Field with RX_VK_ASYNC=0 (render thread off, the changed path), 3 interleaved 60 s runs each of main and this branch: played normally, no hang, no black frame.
Author
Contributor

The description: the cause, this PC's A/B (within the spread, GPU-bound), and what the Test Farm should measure.

The description: the cause, this PC's A/B (within the spread, GPU-bound), and what the Test Farm should measure.
Author
Contributor

@Beanstalk Steam Deck and an integrated GPU on Windows (Iris Xe or an AMD APU), default settings (Threaded rendering Auto, which is off there): Hyrule Field and the Market, fps, 1% low and median frame time, main against this PR, interleaved runs.

@Beanstalk Steam Deck and an integrated GPU on Windows (Iris Xe or an AMD APU), default settings (Threaded rendering Auto, which is off there): Hyrule Field and the Market, fps, 1% low and median frame time, main against this PR, interleaved runs.
Member

@neotoxic only members of BigBeans can start the farm.

One of them can approve this request by reacting 👍 to it or to this comment. This request was for f578f83, and the PR has changed since (d07d3d4), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@neotoxic only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting 👍 to it or to this comment.~~ This request was for `f578f83`, and the PR has changed since (`d07d3d4`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
Owner
@review
BeanBot left a comment

Recommendation: Request changes. A poll can report a completed per-queue fence as timed out, and the changed flush can still block behind a present. The reported performance runs are within the spread, so the claimed gain remains unproven.

The change tries to let a guest thread release its virtual core instead of waiting behind replay during a fence poll. It adds a false-timeout case and does not make the batch flush nonblocking in the common settled-recorder case.

Blocking (1): must change before merging.

  1. L1 gpu/vk/vk_replay.cpp:3278: A busy order lock does not establish that this fence is unfinished; it can belong to an unrelated submission or present. (more on the line) Do: Publish enough per-fence completion information to check the fence without waiting for the order lock, and add a game-free test with a completed per-queue fence and the lock held by unrelated work.

Should fix (1): not blocking, but worth doing before merging.

  • L2 gpu/vk/vk_replay.cpp:3203: Passing zero to queue_flush_for does not make its queue lock nonblocking when recorder parts are settled. (more on the line) Do: Make zero-timeout flushes use try_lock regardless of whether parts are settled, including the flush at the start of wait_inner; add a game-free contention test that fails when the lock is taken synchronously.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L3: The intended CPU-bound performance gain has not been demonstrated on the target hardware. When: The only A/B was GPU-bound and its results overlap; it cannot establish whether synchronous replay benefits where players use it. Do: Run interleaved base-versus-head measurements on the Steam Deck in Hyrule Field and the Market, including average fps, 1% lows, median and p99 frame times, and the fence-wait time targeted by the change.
  • L4: The changed synchronization path has not been exercised on the other target platform. When: Auto can select synchronous replay on Windows integrated GPUs, but the reported run used an RTX 5080 with the path forced on. Do: Run the requested interleaved base-versus-head Hyrule Field and Market tests on a Windows integrated GPU, checking gameplay, hangs and frame times.

@fix can do L1 and L2.

Checks: Still running: 9 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven. Three interleaved Windows RTX 5080 runs report 155.8–157.7 fps before and 157.6–158.3 fps after; the author describes these as within the spread. The CPU-bound target systems have not yet been measured.

Other systems: The order-lock change affects synchronous replay with per-queue fences; the recording flush is also shared by recording waits and readbacks. Windows NVIDIA was played successfully; Steam Deck and Windows integrated GPU runs are pending, as are affected Tier 1 AMD and Linux configurations.

Switches: None added, changed or removed. Existing RX_VK_ASYNC and per-queue fence settings determine which path runs.

Reviewed: f578f8377f against be663a08a3: Read the diff, commit, repository contribution rules, pull request template, relevant standards and synchronization code, including the guest caller, recorder settlement and submission/present locking. The 8,371-line vk_replay.cpp was not read in full; unrelated sections and architecture documentation were skimmed. docs/review-checklist.md and ../Tooling/AGENTS.md were absent. No generated files or recorded runs changed.; nothing run (a code review).

Checked and fine:

  • The commit records AI assistance with both required trailer forms.
  • The diff changes no game-derived files, generated files, renderer API structures or switch definitions.
  • The reported Windows game run exercised RX_VK_ASYNC=0 without a hang or black frame.

Testing: No code or tests were run during review. The author reports three interleaved game runs per side on Windows and reports the listed check failures as also occurring on main; CI is still running.

Overlaps and merge order: Unknown; network access was unavailable.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** A poll can report a completed per-queue fence as timed out, and the changed flush can still block behind a present. The reported performance runs are within the spread, so the claimed gain remains unproven. The change tries to let a guest thread release its virtual core instead of waiting behind replay during a fence poll. It adds a false-timeout case and does not make the batch flush nonblocking in the common settled-recorder case. **Blocking (1)**: must change before merging. 1. **L1** `gpu/vk/vk_replay.cpp:3278`: A busy order lock does not establish that this fence is unfinished; it can belong to an unrelated submission or present. (more on the line) **Do:** Publish enough per-fence completion information to check the fence without waiting for the order lock, and add a game-free test with a completed per-queue fence and the lock held by unrelated work. **Should fix (1)**: not blocking, but worth doing before merging. - **L2** `gpu/vk/vk_replay.cpp:3203`: Passing zero to queue_flush_for does not make its queue lock nonblocking when recorder parts are settled. (more on the line) **Do:** Make zero-timeout flushes use try_lock regardless of whether parts are settled, including the flush at the start of wait_inner; add a game-free contention test that fails when the lock is taken synchronously. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The intended CPU-bound performance gain has not been demonstrated on the target hardware. *When:* The only A/B was GPU-bound and its results overlap; it cannot establish whether synchronous replay benefits where players use it. **Do:** Run interleaved base-versus-head measurements on the Steam Deck in Hyrule Field and the Market, including average fps, 1% lows, median and p99 frame times, and the fence-wait time targeted by the change. - **L4**: The changed synchronization path has not been exercised on the other target platform. *When:* Auto can select synchronous replay on Windows integrated GPUs, but the reported run used an RTX 5080 with the path forced on. **Do:** Run the requested interleaved base-versus-head Hyrule Field and Market tests on a Windows integrated GPU, checking gameplay, hangs and frame times. `@fix` can do L1 and L2. **Checks:** Still running: 9 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven. Three interleaved Windows RTX 5080 runs report 155.8–157.7 fps before and 157.6–158.3 fps after; the author describes these as within the spread. The CPU-bound target systems have not yet been measured. **Other systems:** The order-lock change affects synchronous replay with per-queue fences; the recording flush is also shared by recording waits and readbacks. Windows NVIDIA was played successfully; Steam Deck and Windows integrated GPU runs are pending, as are affected Tier 1 AMD and Linux configurations. **Switches:** None added, changed or removed. Existing RX_VK_ASYNC and per-queue fence settings determine which path runs. **Reviewed:** f578f8377f72 against be663a08a30f: Read the diff, commit, repository contribution rules, pull request template, relevant standards and synchronization code, including the guest caller, recorder settlement and submission/present locking. The 8,371-line vk_replay.cpp was not read in full; unrelated sections and architecture documentation were skimmed. docs/review-checklist.md and ../Tooling/AGENTS.md were absent. No generated files or recorded runs changed.; nothing run (a code review). **Checked and fine:** - The commit records AI assistance with both required trailer forms. - The diff changes no game-derived files, generated files, renderer API structures or switch definitions. - The reported Windows game run exercised RX_VK_ASYNC=0 without a hang or black frame. **Testing:** No code or tests were run during review. The author reports three interleaved game runs per side on Windows and reports the listed check failures as also occurring on main; CI is still running. **Overlaps and merge order:** Unknown; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -3202,1 +3201,3 @@
queue_flush_for(FR_WAIT);
// without a flush, and the job that waited held up the main thread, so nothing flushed it: the load hang on RADV. A poll
// (no timeout) flushes what it can at once and does not wait for dev.present_mu behind a present)
queue_flush_for(FR_WAIT, timeout_ns ? UINT64_MAX : 0);
Member

L2 (should fix): Passing zero to queue_flush_for does not make its queue lock nonblocking when recorder parts are settled.

When: With a batch held and no recorder parts outstanding, settle_parts returns true, so queue_flush_for calls lk.lock() on dev.present_mu. A poll can still wait behind a present while holding the guest core, including at the earlier flush in wait_inner.

Do: Make zero-timeout flushes use try_lock regardless of whether parts are settled, including the flush at the start of wait_inner; add a game-free contention test that fails when the lock is taken synchronously.

**L2** (should fix): Passing zero to queue_flush_for does not make its queue lock nonblocking when recorder parts are settled. *When:* With a batch held and no recorder parts outstanding, settle_parts returns true, so queue_flush_for calls lk.lock() on dev.present_mu. A poll can still wait behind a present while holding the guest core, including at the earlier flush in wait_inner. **Do:** Make zero-timeout flushes use try_lock regardless of whether parts are settled, including the flush at the start of wait_inner; add a game-free contention test that fails when the lock is taken synchronously.
@ -3271,0 +3275,4 @@
if (timeout_ns)
lk.lock();
else if (!lk.try_lock())
return 0;
Member

L1 (blocking): A busy order lock does not establish that this fence is unfinished; it can belong to an unrelated submission or present.

When: An older stopped queue keeps the global timeline below f, while f's own queue has completed its recording. If another thread holds sync_order_mu, both calls made by nvnSyncWait with a zero guest timeout can return 0, so the guest sees TIMEOUT_EXPIRED for an already signaled fence instead of the per-queue result.

Do: Publish enough per-fence completion information to check the fence without waiting for the order lock, and add a game-free test with a completed per-queue fence and the lock held by unrelated work.

**L1** (blocking): A busy order lock does not establish that this fence is unfinished; it can belong to an unrelated submission or present. *When:* An older stopped queue keeps the global timeline below f, while f's own queue has completed its recording. If another thread holds sync_order_mu, both calls made by nvnSyncWait with a zero guest timeout can return 0, so the guest sees TIMEOUT_EXPIRED for an already signaled fence instead of the per-queue result. **Do:** Publish enough per-fence completion information to check the fence without waiting for the order lock, and add a game-free test with a completed per-queue fence and the lock held by unrelated work.
Owner
@fix
Member

I didn't fix this pull request: the change I made would take out 5 of the 11 lines this pull request adds outside its tests, which undoes it rather than fixing it. So L1 and L2 are the author's now. Nothing was pushed.


Automated fix by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

I didn't fix this pull request: the change I made would take out 5 of the 11 lines this pull request adds outside its tests, which undoes it rather than fixing it. So L1 and L2 are the author's now. Nothing was pushed. --- <sub>Automated fix by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
fix(vk): a busy lock no longer answers a fence poll, nor holds it
Some checks failed
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Has been cancelled
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
d07d3d445b
A busy order lock does not mean the fence is unfinished: it can be another
queue's replay or a present. With an older queue stopped, the submissions'
timeline stays below the fence while the fence's own queue has finished its
recording; a poll that met the lock busy said not done, and nvnSyncWait
with no timeout told the game TIMEOUT_EXPIRED for a signalled fence. A
queue's submission replayed whole (run_submit, not stopped) is now published
with its recording (value_whole, under rec_map_mu); a poll that finds the
lock busy answers from it, and from the timeline when it is not there.
value_rec is not used: a recording's own value can be a stopped submission's.

A poll's flush also took dev.present_mu whenever no recorder part was
outstanding, and waited behind a present with the game's core held, at
wait_inner's first flush and wait_rec_seq's. queue_flush_for with
settle_ns 0 now only tries the lock; a wait with a timeout takes it as
before.

tests/test_fence_poll_busy.py runs the actual functions with the locks held
by another thread; it fails on the branch before this commit and on main.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Thanks, both were real. Fixed in d07d3d44 (a new commit on the branch).

L1. A busy order lock no longer answers the poll. A queue's submission that run_submit replays whole (not stopped) is now published with its recording, in value_whole under rec_map_mu, from the submit that finishes it (map_recording). A poll that finds sync_order_mu busy looks its fence up there and answers from the recordings' timeline through wait_recorded_whole. If the fence is not published (stopped, still being replayed, or a queue-less submission), the poll falls through to the submissions' timeline check, also without the lock. This gives the same answer as the look under the lock. value_rec is not used for this, because a recording tagged with a stopped submission's value (or a later value of a burst) would give a false "signalled".

L2. queue_flush_for with settle_ns == 0 now uses try_lock on dev.present_mu even when the parts are settled. That covers the flush at the start of wait_inner, the one before its final timeline check, and the one in wait_rec_seq. A wait with a timeout still takes the lock as before. In wait_inner's stopped-work loop, the flush (which already passed 0) now tries the lock too. That wait flushes again with its timeout before its driver wait.

Test. tests/test_fence_poll_busy.py compiles the real wait_inner, wait_recorded, wait_recorded_whole, wait_rec_seq, queue_flush_for and time_left against stand-ins. It runs each poll on its own thread while another thread holds sync_order_mu and/or dev.present_mu. Each poll must come back within 2 s with the right answer. The cases:

  • A queue's passed fence with an older queue stopped and the order lock held: signalled.
  • A stopped submission whose part's recording is done, with the order lock held: not done.
  • A fence recorded whole whose recording is not done yet: not done.
  • With a batch held, the parts settled and a present holding dev.present_mu: a poll's flush, a poll, and a poll whose recording waits in the batch (the wait_rec_seq flush) all come back at once without flushing.
  • With both locks held: signalled.
  • A poll's flush with the lock free still sends the batch, and a timed flush still waits for the lock.

The test also checks in the source that value_whole is filled only from submissions run_submit finished whole.

On the old code it fails:

  • PR head f578f837: 5 of 12 cases fail (the busy order lock case, and the four dev.present_mu cases).
  • main before the PR: 9 of 12 fail.
  • With only the L1 change reverted: the two "signalled with the lock held" cases fail.
  • With only the L2 change reverted: the three present cases fail.
  • With value_rec used in place of value_whole: the stopped-submission case fails, which is the false-signalled guard.

tests/run_all.py --changed main on Windows: 106 passed, 31 skipped (no Vulkan headers here), and 3 failed (test_dev_packs, test_pad_speaker, test_bug_report). Those 3 fail the same way on f578f837 without this change. dev.py vk compiles and links longshot_vk.dll. Its export check did not run, because this PC has no llvm-objdump. Not re-run in the game for this commit, and L3/L4 (Steam Deck and Windows iGPU measurements) are still open.

Thanks, both were real. Fixed in d07d3d44 (a new commit on the branch). **L1.** A busy order lock no longer answers the poll. A queue's submission that run_submit replays whole (not stopped) is now published with its recording, in `value_whole` under `rec_map_mu`, from the submit that finishes it (`map_recording`). A poll that finds `sync_order_mu` busy looks its fence up there and answers from the recordings' timeline through `wait_recorded_whole`. If the fence is not published (stopped, still being replayed, or a queue-less submission), the poll falls through to the submissions' timeline check, also without the lock. This gives the same answer as the look under the lock. `value_rec` is not used for this, because a recording tagged with a stopped submission's value (or a later value of a burst) would give a false "signalled". **L2.** `queue_flush_for` with `settle_ns == 0` now uses `try_lock` on `dev.present_mu` even when the parts are settled. That covers the flush at the start of `wait_inner`, the one before its final timeline check, and the one in `wait_rec_seq`. A wait with a timeout still takes the lock as before. In `wait_inner`'s stopped-work loop, the flush (which already passed 0) now tries the lock too. That wait flushes again with its timeout before its driver wait. **Test.** `tests/test_fence_poll_busy.py` compiles the real `wait_inner`, `wait_recorded`, `wait_recorded_whole`, `wait_rec_seq`, `queue_flush_for` and `time_left` against stand-ins. It runs each poll on its own thread while another thread holds `sync_order_mu` and/or `dev.present_mu`. Each poll must come back within 2 s with the right answer. The cases: - A queue's passed fence with an older queue stopped and the order lock held: signalled. - A stopped submission whose part's recording is done, with the order lock held: not done. - A fence recorded whole whose recording is not done yet: not done. - With a batch held, the parts settled and a present holding `dev.present_mu`: a poll's flush, a poll, and a poll whose recording waits in the batch (the `wait_rec_seq` flush) all come back at once without flushing. - With both locks held: signalled. - A poll's flush with the lock free still sends the batch, and a timed flush still waits for the lock. The test also checks in the source that `value_whole` is filled only from submissions run_submit finished whole. On the old code it fails: - PR head f578f837: 5 of 12 cases fail (the busy order lock case, and the four `dev.present_mu` cases). - main before the PR: 9 of 12 fail. - With only the L1 change reverted: the two "signalled with the lock held" cases fail. - With only the L2 change reverted: the three present cases fail. - With `value_rec` used in place of `value_whole`: the stopped-submission case fails, which is the false-signalled guard. `tests/run_all.py --changed main` on Windows: 106 passed, 31 skipped (no Vulkan headers here), and 3 failed (test_dev_packs, test_pad_speaker, test_bug_report). Those 3 fail the same way on f578f837 without this change. `dev.py vk` compiles and links `longshot_vk.dll`. Its export check did not run, because this PC has no llvm-objdump. Not re-run in the game for this commit, and L3/L4 (Steam Deck and Windows iGPU measurements) are still open.
Author
Contributor
@review
Author
Contributor

Checked again at the head, d07d3d44, against BeanBot's review of f578f837:

  • L1 (a busy order lock answering a fence it doesn't know about): fixed, still holds. A busy lock answers from value_whole (submissions replayed whole, never a stopped one's recording), else from the submissions' timeline, never "not done" just because the lock is busy. tests/test_fence_poll_busy.py passes here, and fails with main's vk_replay.cpp @ be663a08 (8 of 12 cases) and with f578f837's (5 of 12).
  • L2 (a flush with no timeout still waiting for dev.present_mu): fixed, still holds. queue_flush_for(.., 0) takes the lock only if it is free, parts settled or not; the test's three present cases cover it.
  • L3, L4 (Steam Deck, a Windows integrated GPU): still open, in Still to test for the Test Farm.

The other checks that read the changed functions pass unchanged at the head, including the two that need Linux (test_lost_wait_said, test_readback_wait_bounded, run on a Linux PC). The description now matches the head. It says plainly that the A/B in Measurements was at f578f837, within the spread on a GPU-bound PC. The head still has to run in the game and be measured here (first Still to test item), so the PR stays WIP.

Checked again at the head, d07d3d44, against BeanBot's review of f578f837: - **L1** (a busy order lock answering a fence it doesn't know about): fixed, still holds. A busy lock answers from `value_whole` (submissions replayed whole, never a stopped one's recording), else from the submissions' timeline, never "not done" just because the lock is busy. `tests/test_fence_poll_busy.py` passes here, and fails with `main`'s `vk_replay.cpp` @ be663a08 (8 of 12 cases) and with f578f837's (5 of 12). - **L2** (a flush with no timeout still waiting for `dev.present_mu`): fixed, still holds. `queue_flush_for(.., 0)` takes the lock only if it is free, parts settled or not; the test's three present cases cover it. - **L3, L4** (Steam Deck, a Windows integrated GPU): still open, in Still to test for the Test Farm. The other checks that read the changed functions pass unchanged at the head, including the two that need Linux (`test_lost_wait_said`, `test_readback_wait_bounded`, run on a Linux PC). The description now matches the head. It says plainly that the A/B in Measurements was at f578f837, within the spread on a GPU-bound PC. The head still has to run in the game and be measured here (first Still to test item), so the PR stays WIP.
No conflict; the branch is brought up to current main. Nothing of its own changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
test(vk): the fence poll check stubs settings_start, which wait_inner now reads
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
7f7f2b56bf
Main's wait hold (settings_start().wait_hold_us, read in wait_inner) came in with the merge of main; the check
compiles wait_inner from the source and stopped building. It gets the same stub the other checks use, the
setting at Auto (0). What it checks is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both fixtures came with main and copy submit_recording, which on this branch also records a queue's
submissions replayed whole (value_whole). They declared rec_open_values but not the two new names, so
they no longer compiled here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The code under test sets flush_reason and nothing in the fixture reads it: clang 23 (llvm-mingw) stops at
-Werror,-Wunused-but-set-global where g++ does not. The stub is marked [[maybe_unused]].

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge main (e345b3cab) into perf-vk-fence-poll
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
fbdf64b13e
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Brought up to current main (e345b3ca) by a merge, nothing rewritten. Two test-only commits came with it: 1cd5b71e declares rec_open_whole and value_whole in two fixtures that cut vk_texture.cpp (main added them), and 707803fd marks flush_reason [[maybe_unused]] in the fence-poll fixture, which clang stops on (-Wunused-but-set-global). Windows, run_all.py --changed origin/main: 148 passed, 3 failed: test_dlssg, test_sync_watch_event and test_turf_budget, which fail on main itself too (checked in a checkout of main on the same PC).

Brought up to current `main` (e345b3ca) by a merge, nothing rewritten. Two test-only commits came with it: `1cd5b71e` declares `rec_open_whole` and `value_whole` in two fixtures that cut `vk_texture.cpp` (main added them), and `707803fd` marks `flush_reason` `[[maybe_unused]]` in the fence-poll fixture, which clang stops on (`-Wunused-but-set-global`). Windows, `run_all.py --changed origin/main`: 148 passed, 3 failed: `test_dlssg`, `test_sync_watch_event` and `test_turf_budget`, which fail on `main` itself too (checked in a checkout of `main` on the same PC).
Merge main (18edd5097) into perf-vk-fence-poll
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2fd2d6b482
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Brought up to current main (18edd509) by a merge, 2fd2d6b4, nothing rewritten. No conflict. Windows, run_all.py --changed origin/main: 145 passed, 7 failed (test_dlssg, four test_present_*, test_sync_watch_event, test_turf_budget): all of them fail on main at 18edd509 too, on this PC, run there with the same toolchain.

Brought up to current `main` (18edd509) by a merge, 2fd2d6b4, nothing rewritten. No conflict. Windows, `run_all.py --changed origin/main`: 145 passed, 7 failed (`test_dlssg`, four `test_present_*`, `test_sync_watch_event`, `test_turf_budget`): all of them fail on `main` at 18edd509 too, on this PC, run there with the same toolchain.
Merge main (3a0f7d8f7) into perf-vk-fence-poll
Some checks are pending
beanstalk/approval changed since the request: ask again
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 6s
cb3a3b9d4d
Some checks are pending
beanstalk/approval changed since the request: ask again
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 6s
This pull request is marked as a work in progress.
Some workflows are waiting to be reviewed.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'perf-vk-fence-poll:neotoxic-perf-vk-fence-poll'
git switch 'neotoxic-perf-vk-fence-poll'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2523
No description provided.