WIP: perf(vk): with the render thread, a fence of one queue need not wait for the other queues' submissions (RX_VK_ASYNC_FENCES) #2212

Closed
siantm wants to merge 10 commits from siantm/Longshot:perf/vk-async-fences into main
Contributor

Summary

On the submitting thread's replay a fence of one queue (nvnQueueFenceSync) is that queue's last submission, and
its wait is for that queue's work recorded whole and then its last recording (fence_q, wait). With the replay on
the render thread (RX_VK_ASYNC=1) a fence is every queue's work up to it on the main timeline, which is signalled in
the order of the values: a fence of the main thread's queue waits for the presentation queue's whole frame handed
over before it too.

RX_VK_ASYNC_FENCES=1 gives the render thread the same rule, presents kept: enqueue notes each submit's queue and value
and the last present's value, the render thread notes after each job how far each queue is recorded whole
(async_fences_done: up to before its oldest stopped submission, if any), and a fence is its queue's last submission, or
the last present handed over if that came later (async_fence_q). A present has a value and no queue, so a fence after it
stays what it was before: the present's value, waited for on the main timeline. A fence that is its queue's submission
waits until that queue is recorded whole up to it, up to the caller's timeout, then for its recording
(async_wait_fence). Not used with RX_VK_PER_QUEUE_FENCES=0, without the render thread or without the recordings'
timeline. The result expected: a queue's fence no longer waits for the other queues' submissions.

The switch: RX_VK_ASYNC_FENCES (new, kind attempt, bool, its row in gpu/vk/switches.def), off by default: unset is
main's code. It stays off until its in-game comparison exists (dazemc, 72465 point 2). 1 (any value but empty, 0,
false, off or no) turns it on; the log says so.

Since the first push: a fence after a present is no longer earlier than that present (dazemc, 72465 point 1: the first
push gave the queue's last submission, before the present, where main gives the present's value and its wait covers the
present), and the test checks the hook's place against the main timeline's wait itself and a recording that is not done.
The submitting thread's path on main (RX_VK_ASYNC=0) has the rule the first push had: q_last is filled by submit_q
only, and the present's value is noted for no queue. This leaves it as it is.

Depends on #2211 (its waiters' condition variable, told at each job done): its commits show in this diff until it merges.

From bd3ea307 and 4eed88f7 on exp/x86-asm-sync.

Read first: async_fence_q, async_wait_fence, async_fences_done, fence_q and wait_inner in
gpu/vk/vk_replay.cpp, then tests/test_async_fences.py.

Testing

Tested: Windows 11, i7-9700, RTX 4060, the builder's llvm-mingw clang 23. One build job of this PC's job queue (batch fx2212-r1, summary b-fx2212.log), the checks in a hidden console with tests/run_all.py --strict --exact --jobs 2 --timeout 1200. Head c314a21e on 756da265 (#2211's head, on main a2dc5385): its own check passes (log fx2212-12-head.log): tests/test_async_fences.py (the switch's read in fresh processes included, off when unset). The failing test first: at dc5cef28 (on dff3d054's code) it fails, async_fence_q(7) == 17 (the queue's last submission, 10, after a present 17; log fx2212-12-ptest.log), and passes at 6a09a036; at b850d08f (the tightened check on dff3d054's code) it passes. Mutants (log fx2212-mut2212.log; the files taken from git, one edit each): the hook moved below vkWaitSemaphores, async_wait_fence answering done whatever its recording said, taking a recording not known as done, the present's fix reverted and the switch on when unset each fail the test at the head; of these run against dff3d054's own test and code, the two recording mutants pass it there and the moved hook fails it. Every check --changed a2dc5385 picks (log fx2212-12-changed.log): 157 checks, 146 passed, 11 failed, 5 skipped (Windows: they run on Linux or need a Vulkan device). The 11 fail on main a2dc5385 too (batch fx2212-r1m, log fx2212-main11.log): tests/test_crash_dialog.py, tests/test_dev_ab.py, tests/test_dev_packs.py, tests/test_draw_stream_visibility.py, tests/test_fsr_uniform_ownership.py, tests/test_input_movie.py, tests/test_menu_keys.py, tests/test_perf_report.py, tests/test_sim_turf_pools.py, tests/test_switch_table.py, tests/test_vibration_menu.py. The game build's renderer alone in the same job, RX_VK_ONLY=1 python -I nx2/build.py --standalone --jobs 2 at this head (every gpu/vk/*.cpp; no game, nothing run): compiled with 0 failed and linked longshot_vk.dll (log fx2212-vk-async-fences-vkbuild.log).

It has run in the game on this PC: the CPU-paced A/B in Measurements (held job seg-pt-afc, 18 Kokiri Forest runs and
a Market pair), with no FATAL, device lost or Vulkan error in any run. It has run on the Test Farm (approved by HumanBean
on 2026-11-22; Measurements).

Still to test:

  • Windows 11, i7-9700, RTX 4060 (this PC): a second CPU-paced sitting as in Measurements, only if someone wants to
    turn it on: whether the worse tail of the one sitting so far comes again, expecting frames of 50 ms or more and p99
    with =1 no worse than off (by hand)
  • A counter of the fences that took the new path, so that a run shows how often the change acted, not only that the
    switch was read (by hand)
  • Windows 11, i7-9700, RTX 4060 (this PC): Kokiri Forest and Hyrule Field with Threaded rendering on (RX_VK_ASYNC=1), play three minutes each: main @ a2dc5385, this branch unset (off) and this branch with RX_VK_ASYNC_FENCES=1, each warmed up a minute in the scene first, interleaved (ABBA), at least two runs each, RX_VK_ASYNC_PARTS unset in every run, expecting the same picture, no FATAL, hang or black frame, a median frame time with =1 lower than unset and than main, and unset the same as main (by hand)
  • Linux NVIDIA and AMD, Windows AMD and Intel, Steam Deck: Kokiri Forest with Threaded rendering on, play three minutes: main @ a2dc5385, this branch unset and this branch with RX_VK_ASYNC_FENCES=1, warmed up, ABBA, expecting the same picture, no FATAL and no hang, and a median frame time with =1 lower than unset and than main (Test Farm: linux+nvidia, linux+amd, windows+amd, windows+intel, steamdeck: Kokiri Forest three minutes, Threaded rendering on: main @ a2dc5385, this branch unset and this branch with RX_VK_ASYNC_FENCES=1, warmed up, ABBA, the log, frame times and a screenshot)
  • Linux: build the renderer and run python3 -I -B tests/test_async_fences.py, expecting PASS (by hand)
  • Any A/B of the present or texture stalls (the #1988 line): RX_VK_ASYNC_FENCES and #2211's RX_VK_ASYNC_PARTS on the same side in both arms (unset, main's paths, unless the A/B is of them). With the fences a fence's wait ends earlier and the game hands its frames over earlier, and #2211's texels' job runs on the render thread between its jobs: either moves the stalls for a reason that is not #1988's (by hand)

Measurements

Verdict: in the CPU-paced comparison on this PC (one sitting, one runtime, Kokiri Forest at an 800x600 output,
=1 against off with RX_VK_ASYNC_PARTS=1 on both sides, 8 runs a side; In play below):

  • The waits this change targets are not shown to change: the host's time in GPU resource waits was 2.50 ms a frame on
    both sides (+0.7 %, p = 0.93), its fences 2.30 against 2.34 (p = 0.95), its timelines 0.11 against 0.06 in medians but
    -16 % in means (p = 0.68); the blocking sync waits a 5 s -20 % (p = 0.34) and their time -9 % (p = 0.54). On this PC that
    stage is 2.5 ms a frame summed over the threads.
  • Frame time is level: calm game time 10.05 against 9.96 ms (+0.1 % in means, p = 0.97), the render thread's figures
    within 1.5 % (p >= 0.39).
  • The tail was worse with the switch on in this sitting: p99 17.7 against 21.3 ms (+37 % in means, p = 0.024), frames of
    50 ms or more 16 against 57 (p = 0.039), in most =1 runs rather than one; in those frames the game thread was blocked
    for the whole frame, and the cause is not identified. One sitting: not a settled loss.

Baseline: this PR with the switch off in the same runtime as =1: one build, so the switch is the only difference
(main a2dc5385's fences are the off path).

RX_VK_ASYNC_FENCES ships off (attempt). This change is built on #2211's wait for the queue (q_reached), and #2211
is withdrawn because its own path never ran in play; with the waits this one targets not shown to change, the frame level
and the tail worse with it on in one sitting, it is closed with #2211; the branch stays on the fork. RX_VK_ASYNC_PARTS comes with #2211, off by default as well;
#2211's half was not reached in these runs (0 readbacks in a texture's storage on both sides).

The Test Farm's run of head c314a21e (sticky comment, approved by HumanBean on 2026-11-22 19:58 UTC, labelled failed):
7 targets, 11 reports. Its off arm set RX_VK_ASYNC_FENCES=0, which is the same off path as unset at this head (the
switch is read with env_on, so unset, 0 and other false values all return before anything is set up).

  • Passed: RTX 4070, Arc B580, RX 6600, and the second PC of each failed target (RTX 5070 on linux+nvidia, RX 9070 RADV on
    linux+amd, RX 9070 XT on windows+amd, the other Steam Deck).
  • Picture failures: one Steam Deck (the =1 cell, report rp_c0bf04eed60e38cb) and one linux+nvidia PC with a GTX 1070
    (both cells, rp_844bb1d896a94c44). The plan loads kokiri-start and then teleports to Kokiri Forest, the map the save
    is already in. A teleport asked that early is sometimes refused, so a start's picture shows one of two places: Link
    outside his house, or the forest path. The four pictures behind these failures are whole frames of those two places,
    with no texture missing or stale; main and this PR each landed on either. Main against itself differs by 0.73
    (Steam Deck, rp_15893045124a7c03) and 0.86 (RTX 5070, rp_d576da7b1dab96df) on the same plan.
  • Timing failure: linux+amd on a Radeon 760M iGPU, forest p99 +17.6 % with =1 (two starts a side). This PR's starts are
    inside main's own range on that PC.
  • Crashes: windows+amd, one RX 7900 XT PC with 16 GB. All 8 starts crashed, main's 4 as well as this PR's 4, with exit
    0xC0000409; this PR's log ends in an out-of-memory error during a shader compile.
  • Frame time: on every discrete card =1 was within 1 % of =0 in p99, so the farm shows no frame-time gain from this
    change either.
  • What the reports cannot show: whether =1 took effect in a start (its line is printed at start-up only, and the
    reports keep the end of the log), and when each picture was taken relative to the teleport's load.

A third party's run (Jer9, 2026-11-23, comment on this pull request), as he reported it: Windows 11, Radeon 860M iGPU
(Ryzen AI 7 350, RDNA 3.5, Adrenalin 26.10.1), this head c314a21e over main a2dc5385, RX_VK_ASYNC=1 and
RX_VK_ASYNC_PARTS=1 on both arms, RX_VK_ASYNC_FENCES=0 against =1, dev.py ab --separate --runs 3 --seconds 45, four
scenes, 24 runs.

  • This change's path ran on every frame of all 24 runs, with 0 errors or hangs.
  • In his words: GPU-bound at a 67 % render scale of 2560x1440 (about 30 fps; 12-26 ms a frame in fence waits), =1 shows
    no consistent gain or regression. Market -0.3 % fps; Deku Tree -4.2 % fps and +4.3 ms p99, within variance; Hyrule
    Field +16 % fps with a wide, overlapping spread; Kokiri Forest two matched runs a little tighter (one =1 run left out
    for landing at the lighter spot). Host time in GPU resource waits was 37.1 against 32.1 ms a frame in one Hyrule Field
    pair and 29.0 against 27.5 in one Deku Tree pair.
  • Its limits, his: standing scenes, GPU-bound on an 8-CU iGPU, three runs a side. A CPU-bound test (a low render scale or
    a faster discrete GPU) is what it would take.

His run and the farm's (=1 within 1 % of =0 in p99 on every discrete card) agree: no gain is shown. Neither was
CPU-bound by design. The CPU-paced comparison on this PC is below.

In play (held job seg-pt-afc, 15:30 to 16:14 UTC on 2026-11-23): one runtime of this head c314a21e (on #2211's
756da265 and main a2dc5385), Threaded rendering at its default (on), RX_VK_ASYNC_PARTS=1 and RX_VK_PROF_FINE=1 on both
sides. Kokiri Forest, 60 s a run, CPU-paced on purpose (an 800x600 output and window), a warm-up a side, then off and =1
interleaved (off on on off, four times); every run in the scene's light state, loaded at create, on a desktop at 800x600
at 30 Hz. No run was left out, no load marker or strike file appeared, and no run's log has a commit-limit line. Then the
Market at a 2560x1440 output, one run a side, as a reference only. Reach: the switch's own start-up line
(vk: RX_VK_ASYNC_FENCES=1 (an attempt, off unless set)) is in every =1 run and in none off. It proves the switch was
read and on; no counter says how many fences took the new path.

The wait columns: the host's host time in GPU resource waits line (ms a frame, summed over the threads; fences and
timelines apart), and the host's nvn: GPU waits in 5 s line (the blocking nvnSyncWaits in 5 s and their ms, summed over
the game's threads), each a run's median line.

a side: median (range), Kokiri Forest Before: this PR @ c314a21e, off, 8 runs After: this PR @ c314a21e, RX_VK_ASYNC_FENCES=1, 8 runs change of the means, p (swap test)
host time in GPU resource waits, ms a frame 2.50 (1.93 to 3.20) 2.50 (2.16 to 2.98) +0.7 %, 0.93
its fences, ms a frame 2.30 (1.91 to 2.86) 2.34 (2.05 to 2.73) -0.4 %, 0.95
its timelines, ms a frame 0.11 (0.01 to 0.24) 0.06 (0.02 to 0.26) -16 %, 0.68
blocking sync waits in 5 s 145 (63 to 222) 120 (23 to 219) -20 %, 0.34
their time, ms in 5 s 217 (194 to 257) 191 (108 to 364) -9 %, 0.54
calm-stretch game_ms 10.05 (9.89 to 10.35) 9.96 (9.87 to 10.61) +0.1 %, 0.97
main_blocked_ms 8.32 (8.12 to 8.46) 8.27 (8.10 to 8.55) -0.3 %, 0.76
p99 frame time, ms 17.7 (15.6 to 19.2) 21.3 (16.5 to 38.1) +37 %, 0.024
frames of 50 ms or more, all runs 16 57 0.039
draw, ms a frame 3.12 (2.96 to 3.24) 3.07 (3.01 to 3.20) -1.0 %, 0.47
fine profile, descriptors, ms a frame 1.68 (1.60 to 1.75) 1.64 (1.58 to 1.73) -1.5 %, 0.39
a frame's replay time (ms): submit 6.22 (5.92 to 6.54) 6.24 (5.82 to 6.55) +0.2 %, 0.92

Split into steady play (each run's last 12 lines of 5 s) and the load before it, the blocking sync waits were -28.5 %
(p = 0.19) and their time -17 % (p = 0.56) in steady play, and level in the load (p = 0.38 and 0.44). The frames of 50 ms
or more in each run's last 3,600 frames were 13, 7, 5, 3, 2, 1, 1 and 0 with =1 against 5, 2, 1, 1, 1, 0, 0 and 0 off;
without the run with the most (on2) p99 stays worse (p = 0.026) and the count is at p = 0.064. In those frames the game
thread was blocked for the whole frame, with no pipeline wait, upload, render-thread or GPU wait in them, and the sync-wait
line around them small; what it waited on is not in these logs. The Market pair (one run a side, a reference): calm game
time 13.17 off and 12.32 with =1, the replay's submit 8.35 and 6.70, the sync waits' time 382 and 104 ms in 5 s.

Risks

What could break with RX_VK_ASYNC_FENCES=1: a fence that passes before its queue's work is done (a CPU read of results
not there yet: a flicker or a wrong value), or one that waits for a queue stopped forever (a hang until the caller's
timeout). A fence after a present is the present's value and is waited for on the main timeline, as without the switch;
a later submission of the queue is waited for by its own recording, which comes after the present's on the one queue the
replay submits to, since the render thread takes the jobs in order (a present held for its frame's signal while the jobs
after it run is the case where it would not; the game hands over no submission of the next frame before that signal). The
test runs the real async_fence_q, async_wait_fence and async_fences_done against stand-in queue maps, stopped
queues and the recordings' wait (done, not done and not known). Off by default: unset is main's code. Renderer code: the
runtime is rebuilt; nothing changes for players' saves, options or caches.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • 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.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • 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.
## Summary On the submitting thread's replay a fence of one queue (`nvnQueueFenceSync`) is that queue's last submission, and its wait is for that queue's work recorded whole and then its last recording (`fence_q`, `wait`). With the replay on the render thread (`RX_VK_ASYNC=1`) a fence is every queue's work up to it on the main timeline, which is signalled in the order of the values: a fence of the main thread's queue waits for the presentation queue's whole frame handed over before it too. `RX_VK_ASYNC_FENCES=1` gives the render thread the same rule, presents kept: `enqueue` notes each submit's queue and value and the last present's value, the render thread notes after each job how far each queue is recorded whole (`async_fences_done`: up to before its oldest stopped submission, if any), and a fence is its queue's last submission, or the last present handed over if that came later (`async_fence_q`). A present has a value and no queue, so a fence after it stays what it was before: the present's value, waited for on the main timeline. A fence that is its queue's submission waits until that queue is recorded whole up to it, up to the caller's timeout, then for its recording (`async_wait_fence`). Not used with `RX_VK_PER_QUEUE_FENCES=0`, without the render thread or without the recordings' timeline. The result expected: a queue's fence no longer waits for the other queues' submissions. The switch: `RX_VK_ASYNC_FENCES` (new, kind `attempt`, bool, its row in `gpu/vk/switches.def`), off by default: unset is main's code. It stays off until its in-game comparison exists (dazemc, 72465 point 2). `1` (any value but empty, `0`, `false`, `off` or `no`) turns it on; the log says so. Since the first push: a fence after a present is no longer earlier than that present (dazemc, 72465 point 1: the first push gave the queue's last submission, before the present, where main gives the present's value and its wait covers the present), and the test checks the hook's place against the main timeline's wait itself and a recording that is not done. The submitting thread's path on main (`RX_VK_ASYNC=0`) has the rule the first push had: `q_last` is filled by `submit_q` only, and the present's value is noted for no queue. This leaves it as it is. Depends on #2211 (its waiters' condition variable, told at each job done): its commits show in this diff until it merges. From bd3ea307 and 4eed88f7 on `exp/x86-asm-sync`. Read first: `async_fence_q`, `async_wait_fence`, `async_fences_done`, `fence_q` and `wait_inner` in `gpu/vk/vk_replay.cpp`, then `tests/test_async_fences.py`. ## Testing **Tested:** Windows 11, i7-9700, RTX 4060, the builder's llvm-mingw clang 23. One build job of this PC's job queue (batch `fx2212-r1`, summary `b-fx2212.log`), the checks in a hidden console with `tests/run_all.py --strict --exact --jobs 2 --timeout 1200`. Head `c314a21e` on `756da265` (#2211's head, on main `a2dc5385`): its own check passes (log `fx2212-12-head.log`): `tests/test_async_fences.py` (the switch's read in fresh processes included, off when unset). The failing test first: at `dc5cef28` (on dff3d054's code) it fails, `async_fence_q(7) == 17` (the queue's last submission, 10, after a present 17; log `fx2212-12-ptest.log`), and passes at `6a09a036`; at `b850d08f` (the tightened check on dff3d054's code) it passes. Mutants (log `fx2212-mut2212.log`; the files taken from git, one edit each): the hook moved below `vkWaitSemaphores`, `async_wait_fence` answering done whatever its recording said, taking a recording not known as done, the present's fix reverted and the switch on when unset each fail the test at the head; of these run against dff3d054's own test and code, the two recording mutants pass it there and the moved hook fails it. Every check `--changed a2dc5385` picks (log `fx2212-12-changed.log`): 157 checks, 146 passed, 11 failed, 5 skipped (Windows: they run on Linux or need a Vulkan device). The 11 fail on main `a2dc5385` too (batch `fx2212-r1m`, log `fx2212-main11.log`): `tests/test_crash_dialog.py`, `tests/test_dev_ab.py`, `tests/test_dev_packs.py`, `tests/test_draw_stream_visibility.py`, `tests/test_fsr_uniform_ownership.py`, `tests/test_input_movie.py`, `tests/test_menu_keys.py`, `tests/test_perf_report.py`, `tests/test_sim_turf_pools.py`, `tests/test_switch_table.py`, `tests/test_vibration_menu.py`. The game build's renderer alone in the same job, `RX_VK_ONLY=1 python -I nx2/build.py --standalone --jobs 2` at this head (every `gpu/vk/*.cpp`; no game, nothing run): compiled with 0 failed and linked `longshot_vk.dll` (log `fx2212-vk-async-fences-vkbuild.log`). It has run in the game on this PC: the CPU-paced A/B in Measurements (held job `seg-pt-afc`, 18 Kokiri Forest runs and a Market pair), with no FATAL, device lost or Vulkan error in any run. It has run on the Test Farm (approved by HumanBean on 2026-11-22; Measurements). **Still to test:** - Windows 11, i7-9700, RTX 4060 (this PC): a second CPU-paced sitting as in Measurements, only if someone wants to turn it on: whether the worse tail of the one sitting so far comes again, expecting frames of 50 ms or more and p99 with `=1` no worse than off (by hand) - A counter of the fences that took the new path, so that a run shows how often the change acted, not only that the switch was read (by hand) - Windows 11, i7-9700, RTX 4060 (this PC): Kokiri Forest and Hyrule Field with Threaded rendering on (`RX_VK_ASYNC=1`), play three minutes each: main @ a2dc5385, this branch unset (off) and this branch with `RX_VK_ASYNC_FENCES=1`, each warmed up a minute in the scene first, interleaved (ABBA), at least two runs each, `RX_VK_ASYNC_PARTS` unset in every run, expecting the same picture, no FATAL, hang or black frame, a median frame time with `=1` lower than unset and than main, and unset the same as main (by hand) - Linux NVIDIA and AMD, Windows AMD and Intel, Steam Deck: Kokiri Forest with Threaded rendering on, play three minutes: main @ a2dc5385, this branch unset and this branch with `RX_VK_ASYNC_FENCES=1`, warmed up, ABBA, expecting the same picture, no FATAL and no hang, and a median frame time with `=1` lower than unset and than main (Test Farm: linux+nvidia, linux+amd, windows+amd, windows+intel, steamdeck: Kokiri Forest three minutes, Threaded rendering on: main @ a2dc5385, this branch unset and this branch with RX_VK_ASYNC_FENCES=1, warmed up, ABBA, the log, frame times and a screenshot) - Linux: build the renderer and run `python3 -I -B tests/test_async_fences.py`, expecting PASS (by hand) - Any A/B of the present or texture stalls (the #1988 line): `RX_VK_ASYNC_FENCES` and #2211's `RX_VK_ASYNC_PARTS` on the same side in both arms (unset, main's paths, unless the A/B is of them). With the fences a fence's wait ends earlier and the game hands its frames over earlier, and #2211's texels' job runs on the render thread between its jobs: either moves the stalls for a reason that is not #1988's (by hand) ## Measurements **Verdict:** in the CPU-paced comparison on this PC (one sitting, one runtime, Kokiri Forest at an 800x600 output, `=1` against off with `RX_VK_ASYNC_PARTS=1` on both sides, 8 runs a side; In play below): - The waits this change targets are not shown to change: the host's time in GPU resource waits was 2.50 ms a frame on both sides (+0.7 %, p = 0.93), its fences 2.30 against 2.34 (p = 0.95), its timelines 0.11 against 0.06 in medians but -16 % in means (p = 0.68); the blocking sync waits a 5 s -20 % (p = 0.34) and their time -9 % (p = 0.54). On this PC that stage is 2.5 ms a frame summed over the threads. - Frame time is level: calm game time 10.05 against 9.96 ms (+0.1 % in means, p = 0.97), the render thread's figures within 1.5 % (p >= 0.39). - The tail was worse with the switch on in this sitting: p99 17.7 against 21.3 ms (+37 % in means, p = 0.024), frames of 50 ms or more 16 against 57 (p = 0.039), in most `=1` runs rather than one; in those frames the game thread was blocked for the whole frame, and the cause is not identified. One sitting: not a settled loss. **Baseline:** this PR with the switch off in the same runtime as `=1`: one build, so the switch is the only difference (main a2dc5385's fences are the off path). `RX_VK_ASYNC_FENCES` ships off (`attempt`). This change is built on #2211's wait for the queue (`q_reached`), and #2211 is withdrawn because its own path never ran in play; with the waits this one targets not shown to change, the frame level and the tail worse with it on in one sitting, it is closed with #2211; the branch stays on the fork. `RX_VK_ASYNC_PARTS` comes with #2211, off by default as well; #2211's half was not reached in these runs (0 readbacks in a texture's storage on both sides). The Test Farm's run of head c314a21e (sticky comment, approved by HumanBean on 2026-11-22 19:58 UTC, labelled failed): 7 targets, 11 reports. Its off arm set `RX_VK_ASYNC_FENCES=0`, which is the same off path as unset at this head (the switch is read with `env_on`, so unset, `0` and other false values all return before anything is set up). - Passed: RTX 4070, Arc B580, RX 6600, and the second PC of each failed target (RTX 5070 on linux+nvidia, RX 9070 RADV on linux+amd, RX 9070 XT on windows+amd, the other Steam Deck). - Picture failures: one Steam Deck (the `=1` cell, report rp_c0bf04eed60e38cb) and one linux+nvidia PC with a GTX 1070 (both cells, rp_844bb1d896a94c44). The plan loads `kokiri-start` and then teleports to Kokiri Forest, the map the save is already in. A teleport asked that early is sometimes refused, so a start's picture shows one of two places: Link outside his house, or the forest path. The four pictures behind these failures are whole frames of those two places, with no texture missing or stale; main and this PR each landed on either. Main against itself differs by 0.73 (Steam Deck, rp_15893045124a7c03) and 0.86 (RTX 5070, rp_d576da7b1dab96df) on the same plan. - Timing failure: linux+amd on a Radeon 760M iGPU, forest p99 +17.6 % with `=1` (two starts a side). This PR's starts are inside main's own range on that PC. - Crashes: windows+amd, one RX 7900 XT PC with 16 GB. All 8 starts crashed, main's 4 as well as this PR's 4, with exit 0xC0000409; this PR's log ends in an out-of-memory error during a shader compile. - Frame time: on every discrete card `=1` was within 1 % of `=0` in p99, so the farm shows no frame-time gain from this change either. - What the reports cannot show: whether `=1` took effect in a start (its line is printed at start-up only, and the reports keep the end of the log), and when each picture was taken relative to the teleport's load. A third party's run (Jer9, 2026-11-23, comment on this pull request), as he reported it: Windows 11, Radeon 860M iGPU (Ryzen AI 7 350, RDNA 3.5, Adrenalin 26.10.1), this head c314a21e over main a2dc5385, `RX_VK_ASYNC=1` and `RX_VK_ASYNC_PARTS=1` on both arms, `RX_VK_ASYNC_FENCES=0` against `=1`, `dev.py ab --separate --runs 3 --seconds 45`, four scenes, 24 runs. - This change's path ran on every frame of all 24 runs, with 0 errors or hangs. - In his words: GPU-bound at a 67 % render scale of 2560x1440 (about 30 fps; 12-26 ms a frame in fence waits), `=1` shows no consistent gain or regression. Market -0.3 % fps; Deku Tree -4.2 % fps and +4.3 ms p99, within variance; Hyrule Field +16 % fps with a wide, overlapping spread; Kokiri Forest two matched runs a little tighter (one `=1` run left out for landing at the lighter spot). Host time in GPU resource waits was 37.1 against 32.1 ms a frame in one Hyrule Field pair and 29.0 against 27.5 in one Deku Tree pair. - Its limits, his: standing scenes, GPU-bound on an 8-CU iGPU, three runs a side. A CPU-bound test (a low render scale or a faster discrete GPU) is what it would take. His run and the farm's (`=1` within 1 % of `=0` in p99 on every discrete card) agree: no gain is shown. Neither was CPU-bound by design. The CPU-paced comparison on this PC is below. **In play** (held job `seg-pt-afc`, 15:30 to 16:14 UTC on 2026-11-23): one runtime of this head c314a21e (on #2211's 756da265 and main a2dc5385), Threaded rendering at its default (on), `RX_VK_ASYNC_PARTS=1` and `RX_VK_PROF_FINE=1` on both sides. Kokiri Forest, 60 s a run, CPU-paced on purpose (an 800x600 output and window), a warm-up a side, then off and `=1` interleaved (off on on off, four times); every run in the scene's light state, loaded at create, on a desktop at 800x600 at 30 Hz. No run was left out, no load marker or strike file appeared, and no run's log has a commit-limit line. Then the Market at a 2560x1440 output, one run a side, as a reference only. Reach: the switch's own start-up line (`vk: RX_VK_ASYNC_FENCES=1 (an attempt, off unless set)`) is in every `=1` run and in none off. It proves the switch was read and on; no counter says how many fences took the new path. The wait columns: the host's `host time in GPU resource waits` line (ms a frame, summed over the threads; fences and timelines apart), and the host's `nvn: GPU waits in 5 s` line (the blocking `nvnSyncWait`s in 5 s and their ms, summed over the game's threads), each a run's median line. | a side: median (range), Kokiri Forest | Before: this PR @ c314a21e, off, 8 runs | After: this PR @ c314a21e, `RX_VK_ASYNC_FENCES=1`, 8 runs | change of the means, p (swap test) | |---|---|---|---| | host time in GPU resource waits, ms a frame | 2.50 (1.93 to 3.20) | 2.50 (2.16 to 2.98) | +0.7 %, 0.93 | | its fences, ms a frame | 2.30 (1.91 to 2.86) | 2.34 (2.05 to 2.73) | -0.4 %, 0.95 | | its timelines, ms a frame | 0.11 (0.01 to 0.24) | 0.06 (0.02 to 0.26) | -16 %, 0.68 | | blocking sync waits in 5 s | 145 (63 to 222) | 120 (23 to 219) | -20 %, 0.34 | | their time, ms in 5 s | 217 (194 to 257) | 191 (108 to 364) | -9 %, 0.54 | | calm-stretch game_ms | 10.05 (9.89 to 10.35) | 9.96 (9.87 to 10.61) | +0.1 %, 0.97 | | main_blocked_ms | 8.32 (8.12 to 8.46) | 8.27 (8.10 to 8.55) | -0.3 %, 0.76 | | p99 frame time, ms | 17.7 (15.6 to 19.2) | 21.3 (16.5 to 38.1) | +37 %, 0.024 | | frames of 50 ms or more, all runs | 16 | 57 | 0.039 | | draw, ms a frame | 3.12 (2.96 to 3.24) | 3.07 (3.01 to 3.20) | -1.0 %, 0.47 | | fine profile, descriptors, ms a frame | 1.68 (1.60 to 1.75) | 1.64 (1.58 to 1.73) | -1.5 %, 0.39 | | `a frame's replay time (ms)`: submit | 6.22 (5.92 to 6.54) | 6.24 (5.82 to 6.55) | +0.2 %, 0.92 | Split into steady play (each run's last 12 lines of 5 s) and the load before it, the blocking sync waits were -28.5 % (p = 0.19) and their time -17 % (p = 0.56) in steady play, and level in the load (p = 0.38 and 0.44). The frames of 50 ms or more in each run's last 3,600 frames were 13, 7, 5, 3, 2, 1, 1 and 0 with `=1` against 5, 2, 1, 1, 1, 0, 0 and 0 off; without the run with the most (on2) p99 stays worse (p = 0.026) and the count is at p = 0.064. In those frames the game thread was blocked for the whole frame, with no pipeline wait, upload, render-thread or GPU wait in them, and the sync-wait line around them small; what it waited on is not in these logs. The Market pair (one run a side, a reference): calm game time 13.17 off and 12.32 with `=1`, the replay's submit 8.35 and 6.70, the sync waits' time 382 and 104 ms in 5 s. ## Risks What could break with `RX_VK_ASYNC_FENCES=1`: a fence that passes before its queue's work is done (a CPU read of results not there yet: a flicker or a wrong value), or one that waits for a queue stopped forever (a hang until the caller's timeout). A fence after a present is the present's value and is waited for on the main timeline, as without the switch; a later submission of the queue is waited for by its own recording, which comes after the present's on the one queue the replay submits to, since the render thread takes the jobs in order (a present held for its frame's signal while the jobs after it run is the case where it would not; the game hands over no submission of the next frame before that signal). The test runs the real `async_fence_q`, `async_wait_fence` and `async_fences_done` against stand-in queue maps, stopped queues and the recordings' wait (done, not done and not known). Off by default: unset is main's code. Renderer code: the runtime is rebuilt; nothing changes for players' saves, options or caches. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [ ] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `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. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [ ] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [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.
perf(vk): with the render thread, a readback can wait for its place in the queue and its write-back's part (RX_VK_ASYNC_PARTS)
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 14s
beanstalk/approval waiting for a BigBean's 👍 on the request
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (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
9751e5108a
With the replay on the render thread (RX_VK_ASYNC=1), a readback of GPU results reads what the work recorded so far has
written back (invalidate), and a readback over a texture's storage waits for the whole hand-over queue to be replayed
(wait_queue_empty) and then takes replay_mu to write the texels back, which the render thread holds for each
submission's whole replay.

RX_VK_ASYNC_PARTS (kill, on unless =0) takes the other order: a readback waits for the submits handed over before it to be
replayed (async_catch_up: the jobs after the last submit are not waited for unless a queue is stopped, then every job
before the read is, since its signal or present may let it on; nothing is forced past a wait), then for the part that
writes its range back, as the submitting thread's replay does. A texture's texels go to guest memory by a job in its
place among the jobs (JOB_TEXELS_TO_GUEST, async_texels_to_guest), so the readback no longer takes replay_mu. enqueue now
numbers the jobs and notes the last submit; a job done tells the waiters. The readbacks' 3000-call log line says what they
waited for with the switch on. Not used with RX_VK_PER_QUEUE_FENCES=0 or without the render thread (said in the log when
the switch is set).

From bd3ea307 and 4eed88f7 on exp/x86-asm-sync, without the branch's general render-thread wait statistics. Not measured,
neither on the branch nor in play.

Test: tests/test_async_parts.py runs the real async_catch_up and async_texels_to_guest against a stand-in hand-over
queue and replay thread (no wait when nothing is pending, the submits but not the jobs after them, every earlier job with a
queue stopped, the whole queue with an event in guest memory, the texels' job in its place with the frame gate opened up
to it), and reads invalidate, replay_thread_main, enqueue and the switch for their parts.

Switch: RX_VK_ASYNC_PARTS (kill), on (unset); empty, 0, off, false or no: the render thread's readbacks as before.

Switch reads: the test also runs RX_VK_ASYNC_PARTS as the source reads it, in fresh processes (unset, 0, 1, 2, off, each twice, the variable flipped after the first read: read once). It is read as a bool that is on when unset (env_on_or(..., 1)): empty, 0, off, false or no off, any other value on.

Assisted-by: Claude Code
perf(vk): with the render thread, a fence of one queue can wait for that queue's work alone (RX_VK_ASYNC_FENCES)
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 11s
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/approval waiting for a BigBean's 👍 on the request
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (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
dff3d05487
On the submitting thread's replay a fence of one queue (nvnQueueFenceSync) is that queue's last submission, and its wait
is for that queue's work recorded whole and then its last recording (fence_q, wait). With the replay on the render thread
(RX_VK_ASYNC=1) a fence was every queue's work up to it on the main timeline, which is signalled in the order of the
values: a fence of the main thread's queue waited for the presentation queue's whole frame handed over before it too.

RX_VK_ASYNC_FENCES (kill, on unless =0) gives the render thread the same rule: enqueue notes each submit's queue and value
(aq_last, aq_value_queue), the render thread notes after each job and each look at the stopped queues how far each queue
is recorded whole (async_fences_done: up to before its oldest stopped submission, if any), and a fence's wait waits for
that, up to the caller's timeout, then for its recording (async_fence_q, async_wait_fence). A value that is no queue's
submission waits on the main timeline as before. Not used with RX_VK_PER_QUEUE_FENCES=0, without the render thread or
without the recordings' timeline (said in the log when the switch is set).

Needs "with the render thread, a readback can wait for its place in the queue and its write-back's part" first (its
waiters' condition variable, told at each job done). From bd3ea307 and 4eed88f7 on exp/x86-asm-sync. Not measured,
neither on the branch nor in play.

Test: tests/test_async_fences.py runs the real async_fence_q, async_wait_fence and async_fences_done against stand-in queue
maps, stopped queues and recordings' wait (a queue with none yet, a value of no queue, a poll, a timeout, a wait the render
thread ends, a stopped queue's limit), and reads fence_q, wait_inner, replay_thread_main, enqueue and the switch.

Switch: RX_VK_ASYNC_FENCES (kill), on (unset); empty, 0, off, false or no: a fence on the main timeline, as before.

Switch reads: the test also runs RX_VK_ASYNC_FENCES as the source reads it, in fresh processes (unset, 0, 1, 2, off, each twice, the variable flipped after the first read: read once). It is read as a bool that is on when unset (env_on_or(..., 1)): empty, 0, off, false or no off, any other value on.

Assisted-by: Claude Code
Author
Contributor

@Beanstalk This stops one queue's fences from waiting for the other queues, with Threaded rendering on, the default (gpu/vk); RX_VK_ASYNC_FENCES=0 turns it off. It sits on #2211 (9751e510), so its diff against its merge base includes that PR's commits; the farm cannot take it as the comparison, so please compare with main. Please start from the kokiri-start save and take the picture 5 s (300 frames at 60 fps) after the first frame whose picture is not a single uniform colour, with no input in between (a picture during the load's fade-in from black is not comparable), with a main-against-itself picture on the same PC from the same point; then, for frame times only, play Kokiri Forest and Hyrule Field, two minutes each; at least two starts a side, interleaved, the PR against main on the same PC, on the PR's side unset (the default, on) and with RX_VK_ASYNC_FENCES=0 (off), on Windows with an RTX 4070, Windows with an Arc B580, Linux with an RX 6600 (RADV) and the Steam Deck. The PR's side with RX_VK_ASYNC_FENCES=0 still carries #2211's change, so the unset and =0 arms show this PR's own effect. The same picture as main within main's own difference from itself; with it unset, frame time p99 equal to main's or better, within the run-to-run spread, and equal to RX_VK_ASYNC_FENCES=0 or better. The log must have no FATAL, device lost or validation error line. No hang and no black frame.

@Beanstalk This stops one queue's fences from waiting for the other queues, with Threaded rendering on, the default (gpu/vk); RX_VK_ASYNC_FENCES=0 turns it off. It sits on #2211 (9751e510), so its diff against its merge base includes that PR's commits; the farm cannot take it as the comparison, so please compare with main. Please start from the kokiri-start save and take the picture 5 s (300 frames at 60 fps) after the first frame whose picture is not a single uniform colour, with no input in between (a picture during the load's fade-in from black is not comparable), with a main-against-itself picture on the same PC from the same point; then, for frame times only, play Kokiri Forest and Hyrule Field, two minutes each; at least two starts a side, interleaved, the PR against main on the same PC, on the PR's side unset (the default, on) and with RX_VK_ASYNC_FENCES=0 (off), on Windows with an RTX 4070, Windows with an Arc B580, Linux with an RX 6600 (RADV) and the Steam Deck. The PR's side with RX_VK_ASYNC_FENCES=0 still carries #2211's change, so the unset and =0 arms show this PR's own effect. The same picture as main within main's own difference from itself; with it unset, frame time p99 equal to main's or better, within the run-to-run spread, and equal to RX_VK_ASYNC_FENCES=0 or better. The log must have no FATAL, device lost or validation error line. No hang and no black frame.
Member

@siantm 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 dff3d05, and the PR has changed since (c314a21), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@siantm 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 `dff3d05`, and the PR has changed since (`c314a21`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
dazemc left a comment

Read of dff3d054 (the #2212 commit alone, on 9751e510; +338 in three files). The rule itself is right and mirrors the submitting-thread path (fence_q → q_last → wait_recorded), and =0 is main exactly. Two things before it ships on — one of them a second semantic change beside the title.

1. The fence now drops the present too, not only other queues. A present takes a value in enqueue (j.value = ++q_values, gpu/vk/vk_replay.cpp:7878), but its Job carries no queue (Job j{JOB_PRESENT} in present_tagged, :8163-8170), and the new bookkeeping is j.kind == JOB_SUBMIT && j.queue (:7883) feeding aq_last, which is all async_fence_q consults (:7973-7976). So nvnQueueFenceSync(queue) returns that queue's last submit; on main with the render thread it returned fence() = q_values (:8263), which is the present's value when one was handed over just before it — and the present's recording does signal the main timeline (submit_recording, :1039). A wait that covered the present's GPU work no longer does. This matches the submitting-thread rule (q_last is filled only by submit_q), so it may be intended; but the title and the switch row say only "a fence is its own queue's last submission", the test has no present case, and on the console a fence taken on a queue after a present submitted there covers that present. If OoT never fences a queue it presents on, one sentence in the row settles it; if it does, this is the new early-pass shape to check in the A/B.

2. Default vs evidence. The switch ships on (gpu/vk/switches.def:301) while Measurements says "no measurement chose that default yet" and Testing says "It has NOT run in the game on this PC yet". RX_VK_ASYNC is Auto-on from 4 physical cores, so on most PCs this is the default fence rule, and Risks names the failure shape (a fence passing early: wrong value or flicker). Until the in-game ABBA exists, =0 (main's behaviour) is the only measured side; I'd ship it off (attempt) until then, or say in the description that the default is proposed, not chosen.

The spot checks:

  • Which waits: only fence_q for queue != 0 and wait_inner for a value that is a submit with a queue. Presents, submit_q(…, 0) values and evicted values still take the main timeline; wait_recorded/wait_recorded_part, wait_queue_empty, #2211's async_catch_up and the present's drain(0) are untouched.
  • Deadlock: none new. The replay thread's own waits are bounded (gate_ms/hold_ms, q_cv timeouts) and a stopped submit is waited for only to the caller's timeout (:8003-8008). The one unbounded shape — HOS_NVN_SYNC_BLOCK=1 (off) plus a submit stopped at an event the game signals after the wait — was already unbounded on the timeline wait, since that value included the submit.
  • Off path: =0 is main exactly: async_fences() false, fence_q falls to fence(), the wait_inner hook is skipped, enqueue/async_fences_done do nothing. The only cost when off is a static + rec_timeline check per submit and per job.
  • The test: not a parse check. It cuts the three real functions out of vk_replay.cpp and runs them (tests/test_async_fences.py:73-101), and asserts the wiring (:214-229), so on main it fails at the extraction of async_fence_q. Two weak spots: :218 says the hook is "before the main timeline's" but only compares its index to the hold block — moving it below vkWaitSemaphores would still pass; and the fixture's wait_recorded (:68-72) always answers done, so a recording that is not done (ok=0 passed through) is not exercised.
  • Our lanes: no conflict. #2212's hunks are :3235, :3301, :7715/:7850, :7883 and the three new functions; the barrier-split branch is vk_texture.cpp plus one vk_replay.cpp hunk in the frame line, and the #1988 line's fix is SlowWatch :2529/:2557 and do_present :5521 — same file, no hunk overlap, so a rebase either way. One coupling to keep: with this on, the game hands frames over earlier, so a #1988 present/texture-stall A/B must have RX_VK_ASYNC_FENCES (and #2211's RX_VK_ASYNC_PARTS) on the same side in both arms, or the stalls move for a reason that is not #1988.

No approval (WIP), and no claim on it.

**Read of `dff3d054` (the #2212 commit alone, on `9751e510`; +338 in three files).** The rule itself is right and mirrors the submitting-thread path (`fence_q` → `q_last` → `wait_recorded`), and `=0` is main exactly. Two things before it ships on — one of them a second semantic change beside the title. **1. The fence now drops the present too, not only other queues.** A present takes a value in `enqueue` (`j.value = ++q_values`, `gpu/vk/vk_replay.cpp:7878`), but its `Job` carries no queue (`Job j{JOB_PRESENT}` in `present_tagged`, `:8163-8170`), and the new bookkeeping is `j.kind == JOB_SUBMIT && j.queue` (`:7883`) feeding `aq_last`, which is all `async_fence_q` consults (`:7973-7976`). So `nvnQueueFenceSync(queue)` returns that queue's last *submit*; on main with the render thread it returned `fence()` = `q_values` (`:8263`), which is the present's value when one was handed over just before it — and the present's recording does signal the main timeline (`submit_recording`, `:1039`). A wait that covered the present's GPU work no longer does. This matches the submitting-thread rule (`q_last` is filled only by `submit_q`), so it may be intended; but the title and the switch row say only "a fence is its own queue's last submission", the test has no present case, and on the console a fence taken on a queue after a present submitted there covers that present. If OoT never fences a queue it presents on, one sentence in the row settles it; if it does, this is the new early-pass shape to check in the A/B. **2. Default vs evidence.** The switch ships on (`gpu/vk/switches.def:301`) while Measurements says "no measurement chose that default yet" and Testing says "It has NOT run in the game on this PC yet". `RX_VK_ASYNC` is Auto-on from 4 physical cores, so on most PCs this is the default fence rule, and Risks names the failure shape (a fence passing early: wrong value or flicker). Until the in-game ABBA exists, `=0` (main's behaviour) is the only measured side; I'd ship it off (`attempt`) until then, or say in the description that the default is proposed, not chosen. **The spot checks:** - **Which waits:** only `fence_q` for `queue != 0` and `wait_inner` for a value that is a submit with a queue. Presents, `submit_q(…, 0)` values and evicted values still take the main timeline; `wait_recorded`/`wait_recorded_part`, `wait_queue_empty`, #2211's `async_catch_up` and the present's `drain(0)` are untouched. - **Deadlock:** none new. The replay thread's own waits are bounded (`gate_ms`/`hold_ms`, `q_cv` timeouts) and a stopped submit is waited for only to the caller's timeout (`:8003-8008`). The one unbounded shape — `HOS_NVN_SYNC_BLOCK=1` (off) plus a submit stopped at an event the game signals after the wait — was already unbounded on the timeline wait, since that value included the submit. - **Off path:** `=0` is main exactly: `async_fences()` false, `fence_q` falls to `fence()`, the `wait_inner` hook is skipped, `enqueue`/`async_fences_done` do nothing. The only cost when off is a static + `rec_timeline` check per submit and per job. - **The test:** not a parse check. It cuts the three real functions out of `vk_replay.cpp` and runs them (`tests/test_async_fences.py:73-101`), and asserts the wiring (`:214-229`), so on main it fails at the extraction of `async_fence_q`. Two weak spots: `:218` says the hook is "before the main timeline's" but only compares its index to the hold block — moving it below `vkWaitSemaphores` would still pass; and the fixture's `wait_recorded` (`:68-72`) always answers done, so a recording that is not done (`ok=0` passed through) is not exercised. - **Our lanes:** no conflict. #2212's hunks are `:3235`, `:3301`, `:7715`/`:7850`, `:7883` and the three new functions; the barrier-split branch is `vk_texture.cpp` plus one `vk_replay.cpp` hunk in the frame line, and the #1988 line's fix is `SlowWatch` `:2529`/`:2557` and `do_present` `:5521` — same file, no hunk overlap, so a rebase either way. One coupling to keep: with this on, the game hands frames over earlier, so a #1988 present/texture-stall A/B must have `RX_VK_ASYNC_FENCES` (and #2211's `RX_VK_ASYNC_PARTS`) on the same side in both arms, or the stalls move for a reason that is not #1988. No approval (WIP), and no claim on it.
siantm force-pushed perf/vk-async-fences from dff3d05487
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 11s
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/approval waiting for a BigBean's 👍 on the request
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (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
to c314a21e1e
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
beanstalk/approval approved by HumanBean (reviewed)
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
beanstalk/windows+nvidia+gpu-rtx-4070 2/1 pass
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
beanstalk/windows+intel+gpu-arc-b580 1/1 pass
beanstalk/linux+radv+gpu-rx-6600 2/1 pass
beanstalk/steamdeck 1/1 fail
beanstalk/linux+nvidia 1/1 fail
beanstalk/linux+amd 1/1 fail
beanstalk/windows+amd 1/1 fail
PR description / Description follows the template (pull_request_target) Successful in 5s
2026-11-22 09:12:56 +00:00
Compare
siantm changed title from WIP: perf(vk): with the render thread, a fence of one queue can wait for that queue's work alone (RX_VK_ASYNC_FENCES) to WIP: perf(vk): with the render thread, a fence of one queue need not wait for the other queues' submissions (RX_VK_ASYNC_FENCES) 2026-11-22 09:13:42 +00:00
Author
Contributor

Thank you for the read. New head c314a21e on #2211's new head 756da265 (main a2dc5385). dff3d054's own lines are unchanged: git range-diff shows only its context moved, where #2211 dropped lines. Four commits on it.

  1. You were right. On main with the render thread fence_q returns fence() = q_values (vk_replay.cpp:3219-3220, :8031), which a present raises too (:7740); with the switch on, dff3d054 read aq_last only, which enqueue fills for submits with a queue (:7883), so a fence taken after a present was earlier than it and its wait did not cover it. Test first, dc5cef28 (a present after queue 7's last submission: the queue's fence must be the present's value; at dff3d054's code it is the submission's, 10 for 17), then 6a09a036: async_fence_q gives the queue's last submission or the last present handed over, whichever came later (aq_present, noted by enqueue). A present's value is no queue's submission, so its wait stays the main timeline's, as without the switch. The title, the row and Risks say so now. One observation about main that this leaves alone: the submitting thread (RX_VK_ASYNC=0) has the rule the first push had, q_last filled by submit_q only (:7864) and the present's ++q_values (:7900) noted for no queue.

  2. Done in c314a21e: RX_VK_ASYNC_FENCES ships off, kind attempt: env_on, its row, the log line (=1 (an attempt, off unless set)), the test's switch read (off when unset) and the description. The A/B sets =1.

The test (b850d08f): wait_inner's check now finds the hook, the hold and vkWaitSemaphores once each, in that order. The mutant with the hook moved below vkWaitSemaphores fails it (it failed the old check too, as the hold block sits above the wait; the check now names the wait itself). The fixture's wait_recorded answers done, not done or not known: a recording not done in the time given ends not done, its answer passed on, and one not known is not waited for here. Two mutants, async_wait_fence answering done whatever its recording said and taking not known as done, fail it and passed the old test.

Our lanes: agreed, and the code says the same: with the fences on a fence's wait ends earlier, so the game hands its frames over earlier, and #2211's texels' job runs on the render thread between its jobs. Both switches are now off by default, so any #1988 present or texture-stall A/B keeps both on the same side in both arms (unset, unless the A/B is of them); Still to test says so.

Checks (one queue job, fx2212-r1): tests/test_async_fences.py passes at the head, fails at dc5cef28 and passes at 6a09a036; every mutant above fails at the head; --changed a2dc5385 146 passed, 11 failed, each failing on main too; the renderer compiles and links. Pushed with a lease after #2211.

No game run yet; the description is updated.

Thank you for the read. New head `c314a21e` on #2211's new head `756da265` (main `a2dc5385`). dff3d054's own lines are unchanged: `git range-diff` shows only its context moved, where #2211 dropped lines. Four commits on it. 1. You were right. On main with the render thread `fence_q` returns `fence()` = `q_values` (`vk_replay.cpp:3219-3220`, `:8031`), which a present raises too (`:7740`); with the switch on, dff3d054 read `aq_last` only, which `enqueue` fills for submits with a queue (`:7883`), so a fence taken after a present was earlier than it and its wait did not cover it. Test first, `dc5cef28` (a present after queue 7's last submission: the queue's fence must be the present's value; at dff3d054's code it is the submission's, 10 for 17), then `6a09a036`: `async_fence_q` gives the queue's last submission or the last present handed over, whichever came later (`aq_present`, noted by `enqueue`). A present's value is no queue's submission, so its wait stays the main timeline's, as without the switch. The title, the row and Risks say so now. One observation about main that this leaves alone: the submitting thread (`RX_VK_ASYNC=0`) has the rule the first push had, `q_last` filled by `submit_q` only (`:7864`) and the present's `++q_values` (`:7900`) noted for no queue. 2. Done in `c314a21e`: `RX_VK_ASYNC_FENCES` ships off, kind `attempt`: `env_on`, its row, the log line (`=1 (an attempt, off unless set)`), the test's switch read (off when unset) and the description. The A/B sets `=1`. The test (`b850d08f`): `wait_inner`'s check now finds the hook, the hold and `vkWaitSemaphores` once each, in that order. The mutant with the hook moved below `vkWaitSemaphores` fails it (it failed the old check too, as the hold block sits above the wait; the check now names the wait itself). The fixture's `wait_recorded` answers done, not done or not known: a recording not done in the time given ends not done, its answer passed on, and one not known is not waited for here. Two mutants, `async_wait_fence` answering done whatever its recording said and taking not known as done, fail it and passed the old test. Our lanes: agreed, and the code says the same: with the fences on a fence's wait ends earlier, so the game hands its frames over earlier, and #2211's texels' job runs on the render thread between its jobs. Both switches are now off by default, so any #1988 present or texture-stall A/B keeps both on the same side in both arms (unset, unless the A/B is of them); Still to test says so. Checks (one queue job, `fx2212-r1`): `tests/test_async_fences.py` passes at the head, fails at `dc5cef28` and passes at `6a09a036`; every mutant above fails at the head; `--changed a2dc5385` 146 passed, 11 failed, each failing on main too; the renderer compiles and links. Pushed with a lease after #2211. No game run yet; the description is updated.
Author
Contributor

@Beanstalk This replaces my request 71760, made for the earlier head dff3d054, where the switch was on by default. This adds RX_VK_ASYNC_FENCES, an attempt off by default: with RX_VK_ASYNC_FENCES=1 and Threaded rendering on (the default), one queue's fences no longer wait for the other queues, and a fence is never earlier than the last present (gpu/vk); unset, it is main's way. It sits on #2211 (756da265), so its diff against its merge base includes that PR's commits; the farm cannot take it as the comparison, so please compare with main. Please start from the kokiri-start save and take the picture 5 s (300 frames at 60 fps) after the first frame whose picture is not a single uniform colour, with no input in between (a picture during the load's fade-in from black is not comparable), with a main-against-itself picture on the same PC from the same point; then, for frame times only, play Kokiri Forest and Hyrule Field, two minutes each; at least two starts a side, interleaved, the PR against main on the same PC, on the PR's side unset (the default, off) and with RX_VK_ASYNC_FENCES=1 (on), on Windows with an RTX 4070, Windows with an Arc B580, Linux with an RX 6600 (RADV) and the Steam Deck. RX_VK_ASYNC_PARTS (#2211's switch) stays unset on every side, so the unset and =1 arms show this PR's own effect; frame time with =1 is expected lower than unset and main. The same picture as main within main's own difference from itself; unset, frame time p99 equal to main's; with RX_VK_ASYNC_FENCES=1, equal to unset or better, within the run-to-run spread. The log must have no FATAL, device lost or validation error line. No hang and no black frame.

@Beanstalk This replaces my request 71760, made for the earlier head dff3d054, where the switch was on by default. This adds RX_VK_ASYNC_FENCES, an attempt off by default: with RX_VK_ASYNC_FENCES=1 and Threaded rendering on (the default), one queue's fences no longer wait for the other queues, and a fence is never earlier than the last present (gpu/vk); unset, it is main's way. It sits on #2211 (756da265), so its diff against its merge base includes that PR's commits; the farm cannot take it as the comparison, so please compare with main. Please start from the kokiri-start save and take the picture 5 s (300 frames at 60 fps) after the first frame whose picture is not a single uniform colour, with no input in between (a picture during the load's fade-in from black is not comparable), with a main-against-itself picture on the same PC from the same point; then, for frame times only, play Kokiri Forest and Hyrule Field, two minutes each; at least two starts a side, interleaved, the PR against main on the same PC, on the PR's side unset (the default, off) and with RX_VK_ASYNC_FENCES=1 (on), on Windows with an RTX 4070, Windows with an Arc B580, Linux with an RX 6600 (RADV) and the Steam Deck. RX_VK_ASYNC_PARTS (#2211's switch) stays unset on every side, so the unset and =1 arms show this PR's own effect; frame time with =1 is expected lower than unset and main. The same picture as main within main's own difference from itself; unset, frame time p99 equal to main's; with RX_VK_ASYNC_FENCES=1, equal to unset or better, within the run-to-run spread. The log must have no FATAL, device lost or validation error line. No hang and no black frame.
Member

@siantm only members of BigBeans can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.

@siantm only members of `BigBeans` can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.
Author
Contributor

@Beanstalk This replaces my request 72694 on this head and the corrections under it, in a form the farm can run: it cannot time a picture from the first frame that is not a uniform colour (its answer on #2131), so each picture here follows a fixed wait after the map event. This adds RX_VK_ASYNC_FENCES, an attempt off by default: with RX_VK_ASYNC_FENCES=1 and Threaded rendering on (the default), one queue's fences no longer wait for the other queues, and a fence is never earlier than the last present (gpu/vk); unset, it is main's way. It sits on #2211 (756da265), so its diff against its merge base includes that PR's commits; the farm cannot take it as the comparison, so please compare with main. Please start from the kokiri-start save and take the picture 10 s (600 frames at 60 fps) after the map event that ends the load, a fixed wait with no input in between (the farm cannot time it from the first frame that is not a uniform colour), with a main-against-itself picture on the same PC from the same point; then, for frame times only, play Kokiri Forest and Hyrule Field, two minutes each; at least two starts a side, interleaved, the PR against main on the same PC, on the PR's side unset (the default, off) and with RX_VK_ASYNC_FENCES=1 (on), on Windows with an RTX 4070, Windows with an Arc B580, Linux with an RX 6600 (RADV) and the Steam Deck. RX_VK_ASYNC_PARTS (#2211's switch) stays unset on every side, so the unset and =1 arms show this PR's own effect; frame time with =1 is expected lower than unset and main. The same picture as main within main's own difference from itself; unset, frame time p99 equal to main's; with RX_VK_ASYNC_FENCES=1, equal to unset or better, within the run-to-run spread. The log must have no FATAL, device lost or validation error line. No hang and no black frame.

@Beanstalk This replaces my request 72694 on this head and the corrections under it, in a form the farm can run: it cannot time a picture from the first frame that is not a uniform colour (its answer on #2131), so each picture here follows a fixed wait after the map event. This adds RX_VK_ASYNC_FENCES, an attempt off by default: with RX_VK_ASYNC_FENCES=1 and Threaded rendering on (the default), one queue's fences no longer wait for the other queues, and a fence is never earlier than the last present (gpu/vk); unset, it is main's way. It sits on #2211 (756da265), so its diff against its merge base includes that PR's commits; the farm cannot take it as the comparison, so please compare with main. Please start from the kokiri-start save and take the picture 10 s (600 frames at 60 fps) after the map event that ends the load, a fixed wait with no input in between (the farm cannot time it from the first frame that is not a uniform colour), with a main-against-itself picture on the same PC from the same point; then, for frame times only, play Kokiri Forest and Hyrule Field, two minutes each; at least two starts a side, interleaved, the PR against main on the same PC, on the PR's side unset (the default, off) and with RX_VK_ASYNC_FENCES=1 (on), on Windows with an RTX 4070, Windows with an Arc B580, Linux with an RX 6600 (RADV) and the Steam Deck. RX_VK_ASYNC_PARTS (#2211's switch) stays unset on every side, so the unset and =1 arms show this PR's own effect; frame time with =1 is expected lower than unset and main. The same picture as main within main's own difference from itself; unset, frame time p99 equal to main's; with RX_VK_ASYNC_FENCES=1, equal to unset or better, within the run-to-run spread. The log must have no FATAL, device lost or validation error line. No hang and no black frame.
Member

@siantm only members of BigBeans can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.

@siantm only members of `BigBeans` can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.
Owner

@Beanstalk

@Beanstalk
Member

Beanstalk test farm · ❌ failed on steamdeck, linux+nvidia, linux+amd and 1 more

Commit c314a21 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The off arm explicitly sets the switch to 0 rather than leaving it unset; the PR describes both as off. Main is repeated across the PR-only switch cells with the switch unset.
⚠️ Note: The one-minute measurements are shorter than requested, and the timed scenes are stationary rather than active play. Two starts per side give less noise resistance than three.
⚠️ Note: The farm cannot run the standalone Linux unit test, detect every transient black frame, prove individual fence ordering, or exercise the window swapchain present path in this headless plan.

Summary, written by AI (gpt-6.1-terra) from the numbers below:

The change failed on Steam Deck, Linux NVIDIA, Linux AMD and Windows AMD; the RTX 4070, Arc B580 and RX 6600 targets passed. On Steam Deck with async fences on, maximum screenshot difference rose from 0.0123 to 0.7126, above the 0.2 limit; on the Linux GTX 1070 it rose from 0.0535 to 0.6982 with fences off and from 0.0989 to 0.7058 with fences on. On the Linux Radeon 760M, the PR’s Forest frame-time p99 increased from 52.704 ms with fences off to 61.998 ms with fences on (+17.6%, above the 15% limit). The Windows RX 7900 XT failure may be specific to that PC: both baseline and candidate crashed in both modes, leaving no usable starts, while the RX 9070 XT report passed.

Done (started 2026-11-22 19:59 UTC, last report 2026-11-23 17:34 UTC). Comment @Beanstalk to run it again.

Target Result Reports VRAM peak (MB) Crashes
windows+nvidia+gpu-rtx-4070 (GPU "rtx 4070") ✅ pass (an outlier) 2 1 2 — none
windows+intel+gpu-arc-b580 (GPU "arc b580") ✅ pass 1 1 — none
linux+radv+gpu-rx-6600 (GPU "rx 6600") ✅ pass (an outlier) 2 1 2 — none
steamdeck ❌ fail (an outlier) 2 1 2 — none
linux+nvidia ❌ fail (an outlier) 2 1 2 — none
linux+amd ❌ fail (an outlier) 2 1 2 — none
windows+amd ❌ fail 2 1 2 — 4 PR runs

forest-field · frame time p99 (ms)

Target main RX_VK_ASYNC_FENCES=0 (reference) RX_VK_ASYNC_FENCES=1
windows+nvidia+gpu-rtx-4070 (GPU "rtx 4070") 18.3 18.2 18.4 (+1%)
windows+intel+gpu-arc-b580 (GPU "arc b580") 18.1 18.2 18.2 (+0%)
linux+radv+gpu-rx-6600 (GPU "rx 6600") 21.3 21.3 21.5 (+1%)
steamdeck 39.7 39.7 39.6 (−0%)
linux+nvidia 19.5 19.6 19.5 (−1%)
linux+amd 613.8 36.9 33.2 (−10%)
windows+amd 18.8 18.9 18.8 (−1%)

Why it failed

  • steamdeck: forest-field · RX_VK_ASYNC_FENCES=1 (PR only) screenshot.max_diff: 0.0 → 0.7; limit 0.2
  • linux+nvidia: forest-field · RX_VK_ASYNC_FENCES=0 (PR only) screenshot.max_diff: 0.1 → 0.7; limit 0.2
  • linux+nvidia: forest-field · RX_VK_ASYNC_FENCES=1 (PR only) screenshot.max_diff: 0.1 → 0.7; limit 0.2
  • linux+amd: forest-field · RX_VK_ASYNC_FENCES=1 (PR only) forest.frametime_p99_ms: RX_VK_ASYNC_FENCES=1 vs RX_VK_ASYNC_FENCES=0 (PR): 52.7 → 62.0 (+17.6%); limit 15.0; the PR's own cells: RX_VK_ASYNC_FENCES=1 against RX_VK_ASYNC_FENCES=0 (RX_VK_ASYNC_FENCES=0 (PR only))
  • windows+amd: forest-field · RX_VK_ASYNC_FENCES=0 (PR only) crash: 2 PR runs crashed
  • windows+amd: forest-field · RX_VK_ASYNC_FENCES=1 (PR only) crash: 2 PR runs crashed
What was tested

What will be tested · AI plan (gpt-6.1-terra)

Compare main with the PR’s async fences off and on in Kokiri Forest and Hyrule Field, with two interleaved starts per side on each requested hardware target. Each start captures a Forest picture 10 seconds after the map loads and measures one minute in each area with threaded rendering enabled; the switch axis also permits a direct comparison of the PR’s two modes. Crashes, fatal or device-lost logs, substantial picture differences, or frame-time regressions beyond the noise margins fail the run. The Arc B580 and RX 6600 targets will wait for matching testers to come online. No tester online now matches windows+intel+gpu-arc-b580: that target waits for one.

  • Where: windows+nvidia+gpu-rtx-4070 (GPU "rtx 4070", 1-2 reports), windows+intel+gpu-arc-b580 (GPU "arc b580", 1-2 reports), linux+radv+gpu-rx-6600 (GPU "rx 6600", 1-2 reports), steamdeck (1-2 reports), linux+nvidia (1-2 reports), linux+amd (1-2 reports), windows+amd (1-2 reports).
  • Matrix: 2 cells, each on main and the PR: RX_VK_ASYNC_FENCES 0 or 1 (PR only).
  • forest-field: from the repository's save kokiri-start (switches RX_VK_ASYNC=1), then teleport to Kokiri Forest, take the picture forest to compare with main, measure forest for 60 s (after 5 s warm-up), teleport to Hyrule Field, measure field for 60 s (after 5 s warm-up); 2 runs on each side for each of 2 cells (2 game starts a run).
  • Measured: crashes, frame times, stutters and hitches, the game's log.
  • The PR fails if: it crashes; or the PR's median frame time with RX_VK_ASYNC_FENCES=1 is more than 10% above RX_VK_ASYNC_FENCES=0; or the PR's frame time (p99) with RX_VK_ASYNC_FENCES=1 is more than 15% above RX_VK_ASYNC_FENCES=0; or a picture differs from main by more than 20%; or median frame time is more than 10% above main; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or frame time (worst 1%) is more than 15% above main.
  • Time: about 59 min of game runs per tester (8 game starts), plus the two builds.
Measurements on `windows+nvidia+gpu-rtx-4070`, for the PR description

Verdict: pass on windows+nvidia+gpu-rtx-4070 (2 reports): no rule failed and no PR run crashed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.1.0 AMD Ryzen 9 7900X 12-Core Processor, 32 GB RAM
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ a2dc538 After: this PR @ c314a21
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · median frame time (ms) 16.7 16.7 (+0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · median frame time (ms) 16.6 16.6 (−0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (p99) (ms) 18.3 18.2 (−1%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (p99) (ms) 18.4 18.4 (+0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (worst 1%) (ms) 18.9 19.0 (+1%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (worst 1%) (ms) 19.3 19.1 (−1%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · median frame time (ms) 16.7 16.7 (+0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · median frame time (ms) 16.6 16.6 (−0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (p99) (ms) 18.3 18.4 (+1%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (p99) (ms) 18.4 18.4 (+0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (worst 1%) (ms) 19.0 19.2 (+1%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (worst 1%) (ms) 19.2 20.6 (+7%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_ASYNC_FENCES switch the PR adds (set on the PR side only) 0, 1 not in main the PR's default forest-field, main without it → the PR with 0: 16.7 → 16.7 (+0%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** pass on windows+nvidia+gpu-rtx-4070 (2 reports): no rule failed and no PR run crashed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.1.0` `AMD Ryzen 9 7900X 12-Core Processor, 32 GB RAM`  
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ a2dc538 | After: this PR @ c314a21 |
|---|---|---|
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.7 | 16.7 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 18.3 | 18.2 (−1%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 18.4 | 18.4 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 18.9 | 19.0 (+1%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 19.3 | 19.1 (−1%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.7 | 16.7 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 18.3 | 18.4 (+1%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 18.4 | 18.4 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 19.0 | 19.2 (+1%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 19.2 | 20.6 (+7%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.7 → 16.7 (+0%) | no clear effect |
Measurements on `windows+intel+gpu-arc-b580`, for the PR description

Verdict: pass on windows+intel+gpu-arc-b580 (1 report): no rule failed and no PR run crashed.

Hardware: 1: windows+intel+intel-proprietary+dgpu Intel(R) Arc(TM) B580 Graphics, 0.406.983 12th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAM
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ a2dc538 After: this PR @ c314a21
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · median frame time (ms) 16.6 16.6 (+0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · median frame time (ms) 16.7 16.7 (+0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (p99) (ms) 18.1 18.2 (+0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (p99) (ms) 32.2 32.2 (+0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (worst 1%) (ms) 19.5 19.3 (−1%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (worst 1%) (ms) 35.1 34.6 (−1%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · median frame time (ms) 16.6 16.6 (+0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · median frame time (ms) 16.7 16.7 (+0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (p99) (ms) 18.1 18.2 (+0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (p99) (ms) 32.3 32.2 (−0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (worst 1%) (ms) 19.2 19.0 (−1%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (worst 1%) (ms) 34.4 34.0 (−1%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_ASYNC_FENCES switch the PR adds (set on the PR side only) 0, 1 not in main the PR's default forest-field, main without it → the PR with 0: 16.6 → 16.6 (+0%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** pass on windows+intel+gpu-arc-b580 (1 report): no rule failed and no PR run crashed.

Hardware: 1: windows+intel+intel-proprietary+dgpu `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `12th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAM`  
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 1 report  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ a2dc538 | After: this PR @ c314a21 |
|---|---|---|
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.6 | 16.6 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.7 | 16.7 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 18.1 | 18.2 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 32.2 | 32.2 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 19.5 | 19.3 (−1%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 35.1 | 34.6 (−1%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.6 | 16.6 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.7 | 16.7 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 18.1 | 18.2 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 32.3 | 32.2 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 19.2 | 19.0 (−1%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 34.4 | 34.0 (−1%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.6 → 16.6 (+0%) | no clear effect |
Measurements on `linux+radv+gpu-rx-6600`, for the PR description

Verdict: pass on linux+radv+gpu-rx-6600 (2 reports): no rule failed and no PR run crashed.

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 6600 (RADV NAVI23), 26.2.6 AMD Ryzen 5 5600X 6-Core Processor, 64 GB RAM; 2: linux+amd+radv+dgpu AMD Radeon RX 6600 (RADV NAVI23), 26.3.1 AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ a2dc538 After: this PR @ c314a21
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · median frame time (ms) 16.3 16.4 (+0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · median frame time (ms) 16.6 16.6 (+0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (p99) (ms) 21.3 21.3 (+0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (p99) (ms) 19.0 18.8 (−1%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (worst 1%) (ms) 28.0 26.6 (−5%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (worst 1%) (ms) 20.6 20.4 (−1%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · median frame time (ms) 16.4 16.4 (−0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · median frame time (ms) 16.6 16.6 (−0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (p99) (ms) 21.1 21.5 (+2%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (p99) (ms) 18.7 18.7 (+0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (worst 1%) (ms) 26.3 22.4 (−15%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (worst 1%) (ms) 19.6 19.6 (−0%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_ASYNC_FENCES switch the PR adds (set on the PR side only) 0, 1 not in main the PR's default forest-field, main without it → the PR with 0: 16.3 → 16.4 (+0%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** pass on linux+radv+gpu-rx-6600 (2 reports): no rule failed and no PR run crashed.

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 6600 (RADV NAVI23), 26.2.6` `AMD Ryzen 5 5600X 6-Core Processor, 64 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 6600 (RADV NAVI23), 26.3.1` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM`  
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ a2dc538 | After: this PR @ c314a21 |
|---|---|---|
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.3 | 16.4 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 21.3 | 21.3 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 19.0 | 18.8 (−1%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 28.0 | 26.6 (−5%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 20.6 | 20.4 (−1%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.4 | 16.4 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 21.1 | 21.5 (+2%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 18.7 | 18.7 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 26.3 | 22.4 (−15%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 19.6 | 19.6 (−0%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.3 → 16.4 (+0%) | no clear effect |
Measurements on `steamdeck`, for the PR description

Verdict: fail on steamdeck (2 reports): forest-field screenshot.max_diff failed.

Hardware: 1: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM; 2: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ a2dc538 After: this PR @ c314a21
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · median frame time (ms) 37.3 37.2 (−0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · median frame time (ms) 36.2 36.2 (+0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (p99) (ms) 39.7 39.7 (−0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (p99) (ms) 40.7 41.6 (+2%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (worst 1%) (ms) 42.3 42.6 (+1%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (worst 1%) (ms) 45.1 45.2 (+0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · median frame time (ms) 37.4 37.3 (−0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · median frame time (ms) 36.2 36.1 (−0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (p99) (ms) 42.0 39.6 (−6%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (p99) (ms) 40.5 41.0 (+1%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (worst 1%) (ms) 45.9 42.3 (−8%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (worst 1%) (ms) 43.6 44.4 (+2%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_ASYNC_FENCES switch the PR adds (set on the PR side only) 0, 1 not in main the PR's default forest-field, main without it → the PR with 0: 37.3 → 37.2 (−0%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** fail on steamdeck (2 reports): `forest-field screenshot.max_diff` failed.

Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`  
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ a2dc538 | After: this PR @ c314a21 |
|---|---|---|
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 37.3 | 37.2 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 36.2 | 36.2 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 39.7 | 39.7 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 40.7 | 41.6 (+2%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 42.3 | 42.6 (+1%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 45.1 | 45.2 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 37.4 | 37.3 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 36.2 | 36.1 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 42.0 | 39.6 (−6%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 40.5 | 41.0 (+1%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 45.9 | 42.3 (−8%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 43.6 | 44.4 (+2%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 37.3 → 37.2 (−0%) | no clear effect |
Measurements on `linux+nvidia`, for the PR description

Verdict: fail on linux+nvidia (2 reports): forest-field screenshot.max_diff failed.

Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070, 620.73.4 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM; 2: linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce GTX 1070, 580.196.7 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz, 32 GB RAM
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ a2dc538 After: this PR @ c314a21
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · median frame time (ms) 16.7 16.6 (−0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · median frame time (ms) 16.6 16.5 (−1%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (p99) (ms) 19.5 19.6 (+0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (p99) (ms) 19.3 19.4 (+1%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (worst 1%) (ms) 20.8 21.6 (+4%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (worst 1%) (ms) 20.4 21.1 (+4%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · median frame time (ms) 16.7 16.6 (−0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · median frame time (ms) 16.6 16.5 (−0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (p99) (ms) 19.6 19.5 (−0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (p99) (ms) 19.4 19.6 (+1%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (worst 1%) (ms) 20.6 20.9 (+1%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (worst 1%) (ms) 20.5 20.8 (+1%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_ASYNC_FENCES switch the PR adds (set on the PR side only) 0, 1 not in main the PR's default forest-field, main without it → the PR with 0: 16.7 → 16.6 (−0%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** fail on linux+nvidia (2 reports): `forest-field screenshot.max_diff` failed.

Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1070, 580.196.7` `Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz, 32 GB RAM`  
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ a2dc538 | After: this PR @ c314a21 |
|---|---|---|
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.7 | 16.6 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.6 | 16.5 (−1%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 19.5 | 19.6 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 19.3 | 19.4 (+1%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 20.8 | 21.6 (+4%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 20.4 | 21.1 (+4%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.7 | 16.6 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.6 | 16.5 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 19.6 | 19.5 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 19.4 | 19.6 (+1%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 20.6 | 20.9 (+1%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 20.5 | 20.8 (+1%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.7 → 16.6 (−0%) | no clear effect |
Measurements on `linux+amd`, for the PR description

Verdict: fail on linux+amd (2 reports): forest-field forest.frametime_p99_ms: RX_VK_ASYNC_FENCES=1 vs RX_VK_ASYNC_FENCES=0 (PR) (+17.6%) failed.

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 9070 (RADV GFX1201), 26.0.8 AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM; 2: linux+amd+radv+igpu AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8 AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ a2dc538 After: this PR @ c314a21
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · median frame time (ms) 28.2 29.1 (+3%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · median frame time (ms) 27.4 28.5 (+4%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (p99) (ms) 613.8 36.9 (−94%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (p99) (ms) 42.2 35.7 (−15%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (worst 1%) (ms) 957.9 58.1 (−94%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (worst 1%) (ms) 72.0 67.3 (−7%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · median frame time (ms) 29.0 28.2 (−3%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · median frame time (ms) 29.5 28.6 (−3%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (p99) (ms) 35.1 33.2 (−5%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (p99) (ms) 48.0 40.1 (−17%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (worst 1%) (ms) 68.2 57.0 (−16%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (worst 1%) (ms) 139.3 53.1 (−62%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_ASYNC_FENCES switch the PR adds (set on the PR side only) 0, 1 not in main the PR's default forest-field, main without it → the PR with 0: 28.2 → 29.1 (+3%) doesn't help

As Markdown for the PR description:

## Measurements

**Verdict:** fail on linux+amd (2 reports): `forest-field forest.frametime_p99_ms: RX_VK_ASYNC_FENCES=1 vs RX_VK_ASYNC_FENCES=0 (PR) (+17.6%)` failed.

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.0.8` `AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM`  
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ a2dc538 | After: this PR @ c314a21 |
|---|---|---|
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 28.2 | 29.1 (+3%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 27.4 | 28.5 (+4%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 613.8 | 36.9 (−94%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 42.2 | 35.7 (−15%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 957.9 | 58.1 (−94%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 72.0 | 67.3 (−7%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 29.0 | 28.2 (−3%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 29.5 | 28.6 (−3%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 35.1 | 33.2 (−5%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 48.0 | 40.1 (−17%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 68.2 | 57.0 (−16%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 139.3 | 53.1 (−62%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 28.2 → 29.1 (+3%) | doesn't help |
Measurements on `windows+amd`, for the PR description

Verdict: fail on windows+amd (2 reports): forest-field crash failed.

Hardware: 1: windows+amd+amd-proprietary+dgpu AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM; 2: windows+amd+amd-proprietary+dgpu AMD Radeon RX 7900 XT, 2.0.416 AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ a2dc538 After: this PR @ c314a21
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · median frame time (ms) 16.7 16.7 (+0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · median frame time (ms) 16.6 16.6 (+0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (p99) (ms) 18.8 18.9 (+1%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (p99) (ms) 19.3 19.2 (−0%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · field · frame time (worst 1%) (ms) 19.9 20.7 (+4%)
forest-field · RX_VK_ASYNC_FENCES=0 (PR only) · forest · frame time (worst 1%) (ms) 21.2 20.6 (−3%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · median frame time (ms) 16.7 16.7 (+0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · median frame time (ms) 16.6 16.6 (+0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (p99) (ms) 18.9 18.8 (−1%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (p99) (ms) 19.1 19.2 (+0%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forbidden log lines 0.0 0.0
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · field · frame time (worst 1%) (ms) 20.7 19.8 (−5%)
forest-field · RX_VK_ASYNC_FENCES=1 (PR only) · forest · frame time (worst 1%) (ms) 19.6 20.2 (+3%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_ASYNC_FENCES switch the PR adds (set on the PR side only) 0, 1 not in main the PR's default forest-field, main without it → the PR with 0: 16.7 → 16.7 (+0%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+amd (2 reports): `forest-field crash` failed.

Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM`; 2: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 7900 XT, 2.0.416` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM`  
Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ a2dc538 | After: this PR @ c314a21 |
|---|---|---|
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.7 | 16.7 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 18.8 | 18.9 (+1%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 19.3 | 19.2 (−0%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 19.9 | 20.7 (+4%) |
| forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 21.2 | 20.6 (−3%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.7 | 16.7 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 18.9 | 18.8 (−1%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 19.1 | 19.2 (+0%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 20.7 | 19.8 (−5%) |
| forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 19.6 | 20.2 (+3%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.7 → 16.7 (+0%) | no clear effect |
The testers' hardware
Target Report Ran on
windows+nvidia+gpu-rtx-4070 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
windows+nvidia+gpu-rtx-4070 2 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.1.0 AMD Ryzen 9 7900X 12-Core Processor, 32 GB RAM
windows+intel+gpu-arc-b580 1 windows+intel+intel-proprietary+dgpu Intel(R) Arc(TM) B580 Graphics, 0.406.983 12th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAM
linux+radv+gpu-rx-6600 1 linux+amd+radv+dgpu AMD Radeon RX 6600 (RADV NAVI23), 26.2.6 AMD Ryzen 5 5600X 6-Core Processor, 64 GB RAM
linux+radv+gpu-rx-6600 2 linux+amd+radv+dgpu AMD Radeon RX 6600 (RADV NAVI23), 26.3.1 AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM
steamdeck 1 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM
steamdeck 2 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
linux+nvidia 1 linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070, 620.73.4 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
linux+nvidia 2 linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce GTX 1070, 580.196.7 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz, 32 GB RAM
linux+amd 1 linux+amd+radv+dgpu AMD Radeon RX 9070 (RADV GFX1201), 26.0.8 AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM
linux+amd 2 linux+amd+radv+igpu AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8 AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM
windows+amd 1 windows+amd+amd-proprietary+dgpu AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM
windows+amd 2 windows+amd+amd-proprietary+dgpu AMD Radeon RX 7900 XT, 2.0.416 AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM
<!-- beanstalk:sticky --> ### Beanstalk test farm · ❌ failed on steamdeck, linux+nvidia, linux+amd and 1 more Commit `c314a21` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2212) ⚠️ **Note:** The off arm explicitly sets the switch to 0 rather than leaving it unset; the PR describes both as off. Main is repeated across the PR-only switch cells with the switch unset. ⚠️ **Note:** The one-minute measurements are shorter than requested, and the timed scenes are stationary rather than active play. Two starts per side give less noise resistance than three. ⚠️ **Note:** The farm cannot run the standalone Linux unit test, detect every transient black frame, prove individual fence ordering, or exercise the window swapchain present path in this headless plan. > **Summary**, written by AI (`gpt-6.1-terra`) from the numbers below: > > The change failed on Steam Deck, Linux NVIDIA, Linux AMD and Windows AMD; the RTX 4070, Arc B580 and RX 6600 targets passed. On Steam Deck with async fences on, maximum screenshot difference rose from 0.0123 to 0.7126, above the 0.2 limit; on the Linux GTX 1070 it rose from 0.0535 to 0.6982 with fences off and from 0.0989 to 0.7058 with fences on. On the Linux Radeon 760M, the PR’s Forest frame-time p99 increased from 52.704 ms with fences off to 61.998 ms with fences on (+17.6%, above the 15% limit). The Windows RX 7900 XT failure may be specific to that PC: both baseline and candidate crashed in both modes, leaving no usable starts, while the RX 9070 XT report passed. Done (started 2026-11-22 19:59 UTC, last report 2026-11-23 17:34 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | | `windows+nvidia+gpu-rtx-4070` (GPU "rtx 4070") | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_1752610a672d4399) [2](https://beanstalk.magicbean.dev/reports/rp_b5aed931bd41da27) | — | none | | `windows+intel+gpu-arc-b580` (GPU "arc b580") | ✅ pass | 1 [1](https://beanstalk.magicbean.dev/reports/rp_3bde5adc95bcafb5) | — | none | | `linux+radv+gpu-rx-6600` (GPU "rx 6600") | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_0547b5256abee572) [2](https://beanstalk.magicbean.dev/reports/rp_1b767f8262e5de71) | — | none | | `steamdeck` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_15893045124a7c03) [2](https://beanstalk.magicbean.dev/reports/rp_c0bf04eed60e38cb) | — | none | | `linux+nvidia` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_d576da7b1dab96df) [2](https://beanstalk.magicbean.dev/reports/rp_844bb1d896a94c44) | — | none | | `linux+amd` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_ce83e0aa20454d9f) [2](https://beanstalk.magicbean.dev/reports/rp_360001960c4af809) | — | none | | `windows+amd` | ❌ fail | 2 [1](https://beanstalk.magicbean.dev/reports/rp_61b9fcb5b7198fef) [2](https://beanstalk.magicbean.dev/reports/rp_8167053f9c6a9cb0) | — | 4 PR runs | **`forest-field`** · frame time p99 (ms) | Target | main | `RX_VK_ASYNC_FENCES=0` (reference) | `RX_VK_ASYNC_FENCES=1` | | --- | --- | --- | --- | | `windows+nvidia+gpu-rtx-4070` (GPU "rtx 4070") | 18.3 | 18.2 | 18.4 (+1%) | | `windows+intel+gpu-arc-b580` (GPU "arc b580") | 18.1 | 18.2 | 18.2 (+0%) | | `linux+radv+gpu-rx-6600` (GPU "rx 6600") | 21.3 | 21.3 | 21.5 (+1%) | | `steamdeck` | 39.7 | 39.7 | 39.6 (−0%) | | `linux+nvidia` | 19.5 | 19.6 | 19.5 (−1%) | | `linux+amd` | 613.8 | 36.9 | 33.2 (−10%) | | `windows+amd` | 18.8 | 18.9 | 18.8 (−1%) | **Why it failed** - `steamdeck`: `forest-field · RX_VK_ASYNC_FENCES=1 (PR only)` `screenshot.max_diff`: `0.0 → 0.7; limit 0.2` - `linux+nvidia`: `forest-field · RX_VK_ASYNC_FENCES=0 (PR only)` `screenshot.max_diff`: `0.1 → 0.7; limit 0.2` - `linux+nvidia`: `forest-field · RX_VK_ASYNC_FENCES=1 (PR only)` `screenshot.max_diff`: `0.1 → 0.7; limit 0.2` - `linux+amd`: `forest-field · RX_VK_ASYNC_FENCES=1 (PR only)` `forest.frametime_p99_ms: RX_VK_ASYNC_FENCES=1 vs RX_VK_ASYNC_FENCES=0 (PR)`: `52.7 → 62.0 (+17.6%); limit 15.0; the PR's own cells: RX_VK_ASYNC_FENCES=1 against RX_VK_ASYNC_FENCES=0 (RX_VK_ASYNC_FENCES=0 (PR only))` - `windows+amd`: `forest-field · RX_VK_ASYNC_FENCES=0 (PR only)` `crash`: `2 PR runs crashed` - `windows+amd`: `forest-field · RX_VK_ASYNC_FENCES=1 (PR only)` `crash`: `2 PR runs crashed` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) Compare main with the PR’s async fences off and on in Kokiri Forest and Hyrule Field, with two interleaved starts per side on each requested hardware target. Each start captures a Forest picture 10 seconds after the map loads and measures one minute in each area with threaded rendering enabled; the switch axis also permits a direct comparison of the PR’s two modes. Crashes, fatal or device-lost logs, substantial picture differences, or frame-time regressions beyond the noise margins fail the run. The Arc B580 and RX 6600 targets will wait for matching testers to come online. No tester online now matches windows+intel+gpu-arc-b580: that target waits for one. - **Where:** windows+nvidia+gpu-rtx-4070 (GPU "rtx 4070", 1-2 reports), windows+intel+gpu-arc-b580 (GPU "arc b580", 1-2 reports), linux+radv+gpu-rx-6600 (GPU "rx 6600", 1-2 reports), steamdeck (1-2 reports), linux+nvidia (1-2 reports), linux+amd (1-2 reports), windows+amd (1-2 reports). - **Matrix:** 2 cells, each on main and the PR: RX_VK_ASYNC_FENCES `0` or `1` (PR only). - **forest-field:** from the repository's save `kokiri-start` (switches `RX_VK_ASYNC=1`), then teleport to Kokiri Forest, take the picture forest to compare with main, measure forest for 60 s (after 5 s warm-up), teleport to Hyrule Field, measure field for 60 s (after 5 s warm-up); 2 runs on each side for each of 2 cells (2 game starts a run). - **Measured:** crashes, frame times, stutters and hitches, the game's log. - **The PR fails if:** it crashes; or the PR's median frame time with RX_VK_ASYNC_FENCES=1 is more than 10% above RX_VK_ASYNC_FENCES=0; or the PR's frame time (p99) with RX_VK_ASYNC_FENCES=1 is more than 15% above RX_VK_ASYNC_FENCES=0; or a picture differs from main by more than 20%; or median frame time is more than 10% above main; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or frame time (worst 1%) is more than 15% above main. - **Time:** about 59 min of game runs per tester (8 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+nvidia+gpu-rtx-4070`, for the PR description</summary> **Verdict:** pass on windows+nvidia+gpu-rtx-4070 (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.1.0` `AMD Ryzen 9 7900X 12-Core Processor, 32 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.7 | 16.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 18.3 | 18.2 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 18.4 | 18.4 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 18.9 | 19.0 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 19.3 | 19.1 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.7 | 16.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 18.3 | 18.4 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 18.4 | 18.4 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 19.0 | 19.2 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 19.2 | 20.6 (+7%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.7 → 16.7 (+0%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on windows+nvidia+gpu-rtx-4070 (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.1.0` `AMD Ryzen 9 7900X 12-Core Processor, 32 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.7 | 16.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 18.3 | 18.2 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 18.4 | 18.4 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 18.9 | 19.0 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 19.3 | 19.1 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.7 | 16.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 18.3 | 18.4 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 18.4 | 18.4 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 19.0 | 19.2 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 19.2 | 20.6 (+7%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.7 → 16.7 (+0%) | no clear effect | ``` </details> <details><summary>Measurements on `windows+intel+gpu-arc-b580`, for the PR description</summary> **Verdict:** pass on windows+intel+gpu-arc-b580 (1 report): no rule failed and no PR run crashed. Hardware: 1: windows+intel+intel-proprietary+dgpu `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `12th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.6 | 16.6 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.7 | 16.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 18.1 | 18.2 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 32.2 | 32.2 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 19.5 | 19.3 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 35.1 | 34.6 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.6 | 16.6 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.7 | 16.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 18.1 | 18.2 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 32.3 | 32.2 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 19.2 | 19.0 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 34.4 | 34.0 (−1%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.6 → 16.6 (+0%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on windows+intel+gpu-arc-b580 (1 report): no rule failed and no PR run crashed. Hardware: 1: windows+intel+intel-proprietary+dgpu `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `12th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.6 | 16.6 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.7 | 16.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 18.1 | 18.2 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 32.2 | 32.2 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 19.5 | 19.3 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 35.1 | 34.6 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.6 | 16.6 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.7 | 16.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 18.1 | 18.2 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 32.3 | 32.2 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 19.2 | 19.0 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 34.4 | 34.0 (−1%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.6 → 16.6 (+0%) | no clear effect | ``` </details> <details><summary>Measurements on `linux+radv+gpu-rx-6600`, for the PR description</summary> **Verdict:** pass on linux+radv+gpu-rx-6600 (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 6600 (RADV NAVI23), 26.2.6` `AMD Ryzen 5 5600X 6-Core Processor, 64 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 6600 (RADV NAVI23), 26.3.1` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.3 | 16.4 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 21.3 | 21.3 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 19.0 | 18.8 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 28.0 | 26.6 (−5%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 20.6 | 20.4 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.4 | 16.4 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 21.1 | 21.5 (+2%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 18.7 | 18.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 26.3 | 22.4 (−15%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 19.6 | 19.6 (−0%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.3 → 16.4 (+0%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on linux+radv+gpu-rx-6600 (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 6600 (RADV NAVI23), 26.2.6` `AMD Ryzen 5 5600X 6-Core Processor, 64 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 6600 (RADV NAVI23), 26.3.1` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.3 | 16.4 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 21.3 | 21.3 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 19.0 | 18.8 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 28.0 | 26.6 (−5%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 20.6 | 20.4 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.4 | 16.4 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 21.1 | 21.5 (+2%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 18.7 | 18.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 26.3 | 22.4 (−15%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 19.6 | 19.6 (−0%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.3 → 16.4 (+0%) | no clear effect | ``` </details> <details><summary>Measurements on `steamdeck`, for the PR description</summary> **Verdict:** fail on steamdeck (2 reports): `forest-field screenshot.max_diff` failed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 37.3 | 37.2 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 36.2 | 36.2 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 39.7 | 39.7 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 40.7 | 41.6 (+2%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 42.3 | 42.6 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 45.1 | 45.2 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 37.4 | 37.3 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 36.2 | 36.1 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 42.0 | 39.6 (−6%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 40.5 | 41.0 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 45.9 | 42.3 (−8%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 43.6 | 44.4 (+2%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 37.3 → 37.2 (−0%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on steamdeck (2 reports): `forest-field screenshot.max_diff` failed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 37.3 | 37.2 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 36.2 | 36.2 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 39.7 | 39.7 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 40.7 | 41.6 (+2%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 42.3 | 42.6 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 45.1 | 45.2 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 37.4 | 37.3 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 36.2 | 36.1 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 42.0 | 39.6 (−6%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 40.5 | 41.0 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 45.9 | 42.3 (−8%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 43.6 | 44.4 (+2%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 37.3 → 37.2 (−0%) | no clear effect | ``` </details> <details><summary>Measurements on `linux+nvidia`, for the PR description</summary> **Verdict:** fail on linux+nvidia (2 reports): `forest-field screenshot.max_diff` failed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1070, 580.196.7` `Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz, 32 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.7 | 16.6 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.6 | 16.5 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 19.5 | 19.6 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 19.3 | 19.4 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 20.8 | 21.6 (+4%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 20.4 | 21.1 (+4%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.7 | 16.6 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.6 | 16.5 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 19.6 | 19.5 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 19.4 | 19.6 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 20.6 | 20.9 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 20.5 | 20.8 (+1%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.7 → 16.6 (−0%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on linux+nvidia (2 reports): `forest-field screenshot.max_diff` failed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1070, 580.196.7` `Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz, 32 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.7 | 16.6 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.6 | 16.5 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 19.5 | 19.6 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 19.3 | 19.4 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 20.8 | 21.6 (+4%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 20.4 | 21.1 (+4%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.7 | 16.6 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.6 | 16.5 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 19.6 | 19.5 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 19.4 | 19.6 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 20.6 | 20.9 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 20.5 | 20.8 (+1%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.7 → 16.6 (−0%) | no clear effect | ``` </details> <details><summary>Measurements on `linux+amd`, for the PR description</summary> **Verdict:** fail on linux+amd (2 reports): `forest-field forest.frametime_p99_ms: RX_VK_ASYNC_FENCES=1 vs RX_VK_ASYNC_FENCES=0 (PR) (+17.6%)` failed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.0.8` `AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 28.2 | 29.1 (+3%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 27.4 | 28.5 (+4%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 613.8 | 36.9 (−94%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 42.2 | 35.7 (−15%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 957.9 | 58.1 (−94%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 72.0 | 67.3 (−7%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 29.0 | 28.2 (−3%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 29.5 | 28.6 (−3%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 35.1 | 33.2 (−5%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 48.0 | 40.1 (−17%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 68.2 | 57.0 (−16%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 139.3 | 53.1 (−62%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 28.2 → 29.1 (+3%) | doesn't help | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on linux+amd (2 reports): `forest-field forest.frametime_p99_ms: RX_VK_ASYNC_FENCES=1 vs RX_VK_ASYNC_FENCES=0 (PR) (+17.6%)` failed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.0.8` `AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 28.2 | 29.1 (+3%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 27.4 | 28.5 (+4%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 613.8 | 36.9 (−94%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 42.2 | 35.7 (−15%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 957.9 | 58.1 (−94%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 72.0 | 67.3 (−7%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 29.0 | 28.2 (−3%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 29.5 | 28.6 (−3%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 35.1 | 33.2 (−5%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 48.0 | 40.1 (−17%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 68.2 | 57.0 (−16%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 139.3 | 53.1 (−62%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 28.2 → 29.1 (+3%) | doesn't help | ``` </details> <details><summary>Measurements on `windows+amd`, for the PR description</summary> **Verdict:** fail on windows+amd (2 reports): `forest-field crash` failed. Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM`; 2: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 7900 XT, 2.0.416` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.7 | 16.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 18.8 | 18.9 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 19.3 | 19.2 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 19.9 | 20.7 (+4%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 21.2 | 20.6 (−3%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.7 | 16.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 18.9 | 18.8 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 19.1 | 19.2 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 20.7 | 19.8 (−5%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 19.6 | 20.2 (+3%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.7 → 16.7 (+0%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+amd (2 reports): `forest-field crash` failed. Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM`; 2: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 7900 XT, 2.0.416` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM` Scene: forest-field, from the repository's save kokiri-start (RX_VK_ASYNC=1); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); forest-field: 2 game starts a side, forest 60 s after 5 s warm-up, field 60 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ a2dc538 | After: this PR @ c314a21 | |---|---|---| | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · median frame time (ms) | 16.7 | 16.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (p99) (ms) | 18.8 | 18.9 (+1%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (p99) (ms) | 19.3 | 19.2 (−0%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · field · frame time (worst 1%) (ms) | 19.9 | 20.7 (+4%) | | forest-field · `RX_VK_ASYNC_FENCES=0 (PR only)` · forest · frame time (worst 1%) (ms) | 21.2 | 20.6 (−3%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · median frame time (ms) | 16.7 | 16.7 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · median frame time (ms) | 16.6 | 16.6 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (p99) (ms) | 18.9 | 18.8 (−1%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (p99) (ms) | 19.1 | 19.2 (+0%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · field · frame time (worst 1%) (ms) | 20.7 | 19.8 (−5%) | | forest-field · `RX_VK_ASYNC_FENCES=1 (PR only)` · forest · frame time (worst 1%) (ms) | 19.6 | 20.2 (+3%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASYNC_FENCES` | switch the PR adds (set on the PR side only) | `0`, `1` | not in main | the PR's default | forest-field, main without it → the PR with 0: 16.7 → 16.7 (+0%) | no clear effect | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+nvidia+gpu-rtx-4070` | [1](https://beanstalk.magicbean.dev/reports/rp_1752610a672d4399) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` | | `windows+nvidia+gpu-rtx-4070` | [2](https://beanstalk.magicbean.dev/reports/rp_b5aed931bd41da27) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.1.0` `AMD Ryzen 9 7900X 12-Core Processor, 32 GB RAM` | | `windows+intel+gpu-arc-b580` | [1](https://beanstalk.magicbean.dev/reports/rp_3bde5adc95bcafb5) | windows+intel+intel-proprietary+dgpu `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `12th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAM` | | `linux+radv+gpu-rx-6600` | [1](https://beanstalk.magicbean.dev/reports/rp_0547b5256abee572) | linux+amd+radv+dgpu `AMD Radeon RX 6600 (RADV NAVI23), 26.2.6` `AMD Ryzen 5 5600X 6-Core Processor, 64 GB RAM` | | `linux+radv+gpu-rx-6600` | [2](https://beanstalk.magicbean.dev/reports/rp_1b767f8262e5de71) | linux+amd+radv+dgpu `AMD Radeon RX 6600 (RADV NAVI23), 26.3.1` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM` | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_15893045124a7c03) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` | | `steamdeck` | [2](https://beanstalk.magicbean.dev/reports/rp_c0bf04eed60e38cb) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | | `linux+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_d576da7b1dab96df) | linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` | | `linux+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_844bb1d896a94c44) | linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1070, 580.196.7` `Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz, 32 GB RAM` | | `linux+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_ce83e0aa20454d9f) | linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.0.8` `AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM` | | `linux+amd` | [2](https://beanstalk.magicbean.dev/reports/rp_360001960c4af809) | linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` | | `windows+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_61b9fcb5b7198fef) | windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM` | | `windows+amd` | [2](https://beanstalk.magicbean.dev/reports/rp_8167053f9c6a9cb0) | windows+amd+amd-proprietary+dgpu `AMD Radeon RX 7900 XT, 2.0.416` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM` | </details>
Author
Contributor

@HumanBean thank you for approving the farm run. It finished overnight, labelled failed. I've read all 11 reports, and none of the four failures points at this change's code:

  • Pictures, Steam Deck, the =1 cell (rp_c0bf04eed60e38cb): main's picture and this PR's are two different places, Link outside his house and the forest path. Both are whole frames with nothing missing.
  • Pictures, linux+nvidia GTX 1070, both cells (rp_844bb1d896a94c44): the same two-places split. It shows at =0 as well as at =1.
  • Timing, linux+amd Radeon 760M (rp_360001960c4af809): forest p99 +17.6 % with =1, two starts a side. This PR's starts sit inside main's own range on that PC.
  • Crashes, windows+amd RX 7900 XT with 16 GB (rp_8167053f9c6a9cb0): all 8 starts crashed, main's 4 included (exit 0xC0000409). This PR's log ends in an out-of-memory during a shader compile.

Only the Deck's picture is in this change's cells alone, and it is the same two-places split. On every discrete card =1 was within 1 % of =0 in p99, so the run shows no gain from this change either. The switch stays off, and our own in-game A/B on this PC is still to run. The description's Measurements has the details.

An observation for whoever keeps the farm's plans, not a request: the plan loads kokiri-start and then teleports to Kokiri Forest, the map the save is already in. An early teleport is sometimes refused, so the picture lands in one of two places. That happens on main against itself too: 0.73 on a Steam Deck (rp_15893045124a7c03) and 0.86 on an RTX 5070 (rp_d576da7b1dab96df).

@HumanBean thank you for approving the farm run. It finished overnight, labelled failed. I've read all 11 reports, and none of the four failures points at this change's code: - Pictures, Steam Deck, the `=1` cell ([rp_c0bf04eed60e38cb](https://beanstalk.magicbean.dev/reports/rp_c0bf04eed60e38cb)): main's picture and this PR's are two different places, Link outside his house and the forest path. Both are whole frames with nothing missing. - Pictures, linux+nvidia GTX 1070, both cells ([rp_844bb1d896a94c44](https://beanstalk.magicbean.dev/reports/rp_844bb1d896a94c44)): the same two-places split. It shows at `=0` as well as at `=1`. - Timing, linux+amd Radeon 760M ([rp_360001960c4af809](https://beanstalk.magicbean.dev/reports/rp_360001960c4af809)): forest p99 +17.6 % with `=1`, two starts a side. This PR's starts sit inside main's own range on that PC. - Crashes, windows+amd RX 7900 XT with 16 GB ([rp_8167053f9c6a9cb0](https://beanstalk.magicbean.dev/reports/rp_8167053f9c6a9cb0)): all 8 starts crashed, main's 4 included (exit 0xC0000409). This PR's log ends in an out-of-memory during a shader compile. Only the Deck's picture is in this change's cells alone, and it is the same two-places split. On every discrete card `=1` was within 1 % of `=0` in p99, so the run shows no gain from this change either. The switch stays off, and our own in-game A/B on this PC is still to run. The description's Measurements has the details. An observation for whoever keeps the farm's plans, not a request: the plan loads `kokiri-start` and then teleports to Kokiri Forest, the map the save is already in. An early teleport is sometimes refused, so the picture lands in one of two places. That happens on main against itself too: 0.73 on a Steam Deck ([rp_15893045124a7c03](https://beanstalk.magicbean.dev/reports/rp_15893045124a7c03)) and 0.86 on an RTX 5070 ([rp_d576da7b1dab96df](https://beanstalk.magicbean.dev/reports/rp_d576da7b1dab96df)).
Contributor

In-game A/B on Windows 11 + AMD Radeon 860M (Ryzen AI 7 350, RDNA 3.5 iGPU, Adrenalin 26.10.1 LLPC), built from PR #2212 head c314a21e over main a2dc5385 (longshot_vk.dll pack).

Relationship to #2211 (additive test)

#2212 stacks directly on #2211 (756da265, reusing q_reached). Both arms here ran with RX_VK_ASYNC=1 and RX_VK_ASYNC_PARTS=1 so this test measures #2212's additive effect on top of #2211 rather than mixing both PRs' changes. (In all 24 runs below, vk: the render thread also logged 0 in one texture-storage readbacks during play, so #2211's readback path was inactive in these scenes.)

Settings: dev.py ab --separate --runs 3 --seconds 45 --warmup 10, 67% render scale (2560x1440 output), uncapped (HOS_FPS_MAX=1000), V-Sync and framegen off, RX_VK_ASYNC=1, RX_VK_ASYNC_PARTS=1.

Summary across 4 scenes

#2212's async_fence_q / async_wait_fence path ran continuously on every frame across all 24 runs, with 0 errors/hangs. At 67% render scale of 2560x1440 (~30 fps), this 8-CU Radeon 860M iGPU is heavily GPU-bound (12.0–26.2 ms/frame in fence waits; 23.0–51.0 ms/frame total across threads in vk: host time in GPU resource waits). Under that GPU bottleneck, RX_VK_ASYNC_FENCES=1 shows no consistent gain or regression across scenes — any small CPU/cross-queue fence-wait saving gets buried in GPU wait time and run-to-run variance (market flat, deku-tree slightly lower, hyrule-field noisy/overlapping, kokiri-forest matched-spot runs slightly tighter on p99). Testing at a CPU-bound resolution (e.g., Minimum / 25–33% render scale or on a faster discrete GPU) would be needed to measure #2212's CPU-side ceiling, whereas these 4 scenes answer the practical question at normal playable settings on an 860M (no regression, 0 errors).

Results by scene

1. Market (market, standing, 3 matched pairs):

Metric RX_VK_ASYNC_FENCES=0 (A1 / A2 / A3) RX_VK_ASYNC_FENCES=1 (B1 / B2 / B3) Median Delta
FPS 30.7 / 30.7 / 32.4 (median 30.7) 30.6 / 30.7 / 29.3 (median 30.6) -0.3% (flat)
1% low FPS 26.3 / 26.4 / 28.1 (median 26.4) 26.1 / 26.2 / 20.9 (median 26.1) -1.1% (within variance)
Median frame time 32.43 / 32.44 / 30.79 ms (32.43 ms) 32.57 / 32.52 / 33.41 ms (32.57 ms) +0.14 ms
p99 frame time 38.03 / 37.85 / 35.55 ms (37.85 ms) 38.38 / 38.18 / 47.96 ms (38.38 ms) +0.53 ms

Pairs 1 and 2 were virtually identical (30.7 vs 30.6, 30.7 vs 30.7); B3 had a single-run p99 spike (47.96 ms).

2. Inside the Deku Tree (deku-tree, standing, 3 matched pairs):

Metric RX_VK_ASYNC_FENCES=0 (A1 / A2 / A3) RX_VK_ASYNC_FENCES=1 (B1 / B2 / B3) Median Delta
FPS 33.6 / 33.7 / 30.1 (median 33.6) 33.4 / 31.4 / 32.2 (median 32.2) -4.2% (within variance)
1% low FPS 30.2 / 29.7 / 24.4 (median 29.7) 26.7 / 25.3 / 26.3 (median 26.3) -11.4% (within variance)
Median frame time 29.66 / 29.51 / 32.65 ms (29.66 ms) 29.54 / 31.69 / 31.13 ms (31.13 ms) +1.47 ms
p99 frame time 33.11 / 33.69 / 40.99 ms (33.69 ms) 37.51 / 39.51 / 38.02 ms (38.02 ms) +4.33 ms

3. Hyrule Field (hyrule-field, standing, 3 pairs):

Metric RX_VK_ASYNC_FENCES=0 (A1 / A2 / A3) RX_VK_ASYNC_FENCES=1 (B1 / B2 / B3) Median Delta
FPS 29.2 / 27.4 / 25.3 (median 27.4) 31.8 / 23.8 / 33.1 (median 31.8) +16.1% (high spread)
1% low FPS 23.1 / 16.7 / 18.7 (median 18.7) 26.4 / 16.0 / 25.8 (median 25.8) +38.0% (high spread)
Median frame time 34.05 / 34.07 / 38.72 ms (34.07 ms) 31.24 / 41.04 / 29.88 ms (31.24 ms) -2.83 ms
p99 frame time 43.25 / 59.89 / 53.55 ms (53.55 ms) 37.92 / 62.53 / 38.80 ms (38.80 ms) -14.75 ms

Both arms had wide run-to-run variance (25.3–29.2 vs 23.8–33.1 fps, overlapping).

4. Kokiri Forest (kokiri-forest, standing; B1 excluded for kokiri-start early-teleport spot):

  • B1 (38.8 fps, 25.59 ms median) teleported early (35.4 s vs 38.8–41.2 s) and hit the lighter kokiri-start spot (1187 textures / 2424 MB vs 1527–1587 textures / 2770–2957 MB on all other 5 runs), so it is excluded.
  • Matched-spot runs:
    • RX_VK_ASYNC_FENCES=0 (A1 / A2 / A3): 30.9 / 28.8 / 31.9 fps (median 30.9), 1% low 24.9 / 24.0 / 23.9 fps (24.0), median frame time 31.92 / 34.36 / 30.99 ms (31.92 ms), p99 40.18 / 41.69 / 41.84 ms (41.69 ms)
    • RX_VK_ASYNC_FENCES=1 (B2 / B3, B1 excluded): 31.9 / 32.6 fps (mid 32.25), 1% low 27.6 / 28.1 fps (mid 27.85), median frame time 31.24 / 30.56 ms (mid 30.90 ms), p99 36.21 / 35.60 ms (mid 35.91 ms)

Logs & stability

0 FATAL, VK_ERROR, device-lost, or validation lines across all 24 runs. vk: RX_VK_ASYNC_FENCES=1 (an attempt, off unless set) logged on all =1 runs. Representative log lines (Hyrule Field A1 vs B1; Deku Tree A1 vs B1):

# hyrule-field A1 (=0)
[hos host] vk: the render thread (600 presents, 34.27 ms a frame): its jobs 10.40 ms a frame (submits 5.02, presents 0.50, others 4.88), idle 23.87; the game waited for room at 0 presents, 0.00 ms each (0.00 a frame; 6.23 jobs queued at a present); 0 catch-ups (a finish, a texture read back, a write-back not recorded yet: 0), 0.00 ms each; 0 presents held for the CPU's signal, 0.00 ms each (0 let go by RX_VK_HOLD_MS); 336 captures at a CPU signal; the submits' waits read in 0.047 ms a frame; readbacks: 3000 next to a texture's storage (no catch-up), 0 in one, 0 read exactly (after the work handed over: among the catch-ups); a present made 9.63 ms after its hand-over (14.00 at most)
[hos host] vk: host time in GPU resource waits: 37.09 ms a frame (fences 19.27, timelines 17.82, idle 0.00, queries 0.00; sum across threads, not frame time; excludes pacing and driver submit/present blocking)

# hyrule-field B1 (=1)
[hos host] vk: the render thread (600 presents, 31.18 ms a frame): its jobs 9.52 ms a frame (submits 4.38, presents 0.47, others 4.67), idle 21.66; the game waited for room at 0 presents, 0.00 ms each (0.00 a frame; 6.16 jobs queued at a present); 0 catch-ups (a finish, a texture read back, a write-back not recorded yet: 0), 0.00 ms each; 0 presents held for the CPU's signal, 0.00 ms each (0 let go by RX_VK_HOLD_MS); 354 captures at a CPU signal; the submits' waits read in 0.041 ms a frame; readbacks: 3000 next to a texture's storage (no catch-up), 0 in one, 0 read exactly (after the work handed over: among the catch-ups); a present made 8.80 ms after its hand-over (12.72 at most)
[hos host] vk: host time in GPU resource waits: 32.11 ms a frame (fences 16.99, timelines 15.12, idle 0.00, queries 0.00; sum across threads, not frame time; excludes pacing and driver submit/present blocking)

# deku-tree A1 (=0) vs B1 (=1)
[hos host] vk: host time in GPU resource waits: 29.02 ms a frame (fences 16.93, timelines 12.09, idle 0.00, queries 0.00; sum across threads, not frame time; excludes pacing and driver submit/present blocking)
[hos host] vk: host time in GPU resource waits: 27.53 ms a frame (fences 16.34, timelines 11.19, idle 0.00, queries 0.00; sum across threads, not frame time; excludes pacing and driver submit/present blocking)

Limits: Standing dev.py ab scenes (no camera pan / traversal), 3 pairs per scene, and heavily GPU-bound at 67% render scale of 2560x1440 (~30 fps, 12.0–26.2 ms/frame fence waits / 23.0–51.0 ms/frame total across threads in vk: host time in GPU resource waits), where sub-millisecond CPU/fence-wait savings get masked by GPU wait time and run-to-run variance. A CPU-bound test (e.g., Minimum / 25–33% render scale or a faster discrete GPU) is needed to resolve #2212's CPU-side ceiling; these runs also forced RX_VK_ASYNC=1 on a non-mirrored iGPU (where Auto is off on main).

In-game A/B on Windows 11 + AMD Radeon 860M (Ryzen AI 7 350, RDNA 3.5 iGPU, Adrenalin 26.10.1 LLPC), built from PR #2212 head `c314a21e` over `main` `a2dc5385` (`longshot_vk.dll` pack). ### Relationship to `#2211` (additive test) `#2212` stacks directly on `#2211` (`756da265`, reusing `q_reached`). Both arms here ran with `RX_VK_ASYNC=1` and `RX_VK_ASYNC_PARTS=1` so this test measures **`#2212`'s additive effect on top of `#2211`** rather than mixing both PRs' changes. (In all 24 runs below, `vk: the render thread` also logged `0 in one` texture-storage readbacks during play, so `#2211`'s readback path was inactive in these scenes.) Settings: `dev.py ab --separate --runs 3 --seconds 45 --warmup 10`, 67% render scale (2560x1440 output), uncapped (`HOS_FPS_MAX=1000`), V-Sync and framegen off, `RX_VK_ASYNC=1`, `RX_VK_ASYNC_PARTS=1`. ### Summary across 4 scenes `#2212`'s `async_fence_q` / `async_wait_fence` path ran continuously on every frame across all 24 runs, with **0 errors/hangs**. At **67% render scale of 2560x1440 (~30 fps)**, this 8-CU Radeon 860M iGPU is heavily **GPU-bound** (`12.0–26.2 ms/frame` in fence waits; `23.0–51.0 ms/frame` total across threads in `vk: host time in GPU resource waits`). Under that GPU bottleneck, `RX_VK_ASYNC_FENCES=1` shows **no consistent gain or regression** across scenes — any small CPU/cross-queue fence-wait saving gets buried in GPU wait time and run-to-run variance (`market` flat, `deku-tree` slightly lower, `hyrule-field` noisy/overlapping, `kokiri-forest` matched-spot runs slightly tighter on p99). Testing at a CPU-bound resolution (e.g., Minimum / 25–33% render scale or on a faster discrete GPU) would be needed to measure `#2212`'s CPU-side ceiling, whereas these 4 scenes answer the practical question at normal playable settings on an 860M (no regression, 0 errors). ### Results by scene **1. Market (`market`, standing, 3 matched pairs):** | Metric | `RX_VK_ASYNC_FENCES=0` (A1 / A2 / A3) | `RX_VK_ASYNC_FENCES=1` (B1 / B2 / B3) | Median Delta | |---|---|---|---| | FPS | `30.7 / 30.7 / 32.4` (median **30.7**) | `30.6 / 30.7 / 29.3` (median **30.6**) | -0.3% (flat) | | 1% low FPS | `26.3 / 26.4 / 28.1` (median **26.4**) | `26.1 / 26.2 / 20.9` (median **26.1**) | -1.1% (within variance) | | Median frame time | `32.43 / 32.44 / 30.79 ms` (**32.43 ms**) | `32.57 / 32.52 / 33.41 ms` (**32.57 ms**) | +0.14 ms | | p99 frame time | `38.03 / 37.85 / 35.55 ms` (**37.85 ms**) | `38.38 / 38.18 / 47.96 ms` (**38.38 ms**) | +0.53 ms | Pairs 1 and 2 were virtually identical (`30.7 vs 30.6`, `30.7 vs 30.7`); B3 had a single-run p99 spike (`47.96 ms`). **2. Inside the Deku Tree (`deku-tree`, standing, 3 matched pairs):** | Metric | `RX_VK_ASYNC_FENCES=0` (A1 / A2 / A3) | `RX_VK_ASYNC_FENCES=1` (B1 / B2 / B3) | Median Delta | |---|---|---|---| | FPS | `33.6 / 33.7 / 30.1` (median **33.6**) | `33.4 / 31.4 / 32.2` (median **32.2**) | -4.2% (within variance) | | 1% low FPS | `30.2 / 29.7 / 24.4` (median **29.7**) | `26.7 / 25.3 / 26.3` (median **26.3**) | -11.4% (within variance) | | Median frame time | `29.66 / 29.51 / 32.65 ms` (**29.66 ms**) | `29.54 / 31.69 / 31.13 ms` (**31.13 ms**) | +1.47 ms | | p99 frame time | `33.11 / 33.69 / 40.99 ms` (**33.69 ms**) | `37.51 / 39.51 / 38.02 ms` (**38.02 ms**) | +4.33 ms | **3. Hyrule Field (`hyrule-field`, standing, 3 pairs):** | Metric | `RX_VK_ASYNC_FENCES=0` (A1 / A2 / A3) | `RX_VK_ASYNC_FENCES=1` (B1 / B2 / B3) | Median Delta | |---|---|---|---| | FPS | `29.2 / 27.4 / 25.3` (median **27.4**) | `31.8 / 23.8 / 33.1` (median **31.8**) | +16.1% (high spread) | | 1% low FPS | `23.1 / 16.7 / 18.7` (median **18.7**) | `26.4 / 16.0 / 25.8` (median **25.8**) | +38.0% (high spread) | | Median frame time | `34.05 / 34.07 / 38.72 ms` (**34.07 ms**) | `31.24 / 41.04 / 29.88 ms` (**31.24 ms**) | -2.83 ms | | p99 frame time | `43.25 / 59.89 / 53.55 ms` (**53.55 ms**) | `37.92 / 62.53 / 38.80 ms` (**38.80 ms**) | -14.75 ms | Both arms had wide run-to-run variance (`25.3–29.2` vs `23.8–33.1` fps, overlapping). **4. Kokiri Forest (`kokiri-forest`, standing; `B1` excluded for `kokiri-start` early-teleport spot):** - `B1` (`38.8 fps`, `25.59 ms` median) teleported early (`35.4 s` vs `38.8–41.2 s`) and hit the lighter `kokiri-start` spot (`1187` textures / `2424 MB` vs `1527–1587` textures / `2770–2957 MB` on all other 5 runs), so it is excluded. - Matched-spot runs: - `RX_VK_ASYNC_FENCES=0` (`A1 / A2 / A3`): `30.9 / 28.8 / 31.9` fps (median **30.9**), 1% low `24.9 / 24.0 / 23.9` fps (**24.0**), median frame time `31.92 / 34.36 / 30.99 ms` (**31.92 ms**), p99 `40.18 / 41.69 / 41.84 ms` (**41.69 ms**) - `RX_VK_ASYNC_FENCES=1` (`B2 / B3`, `B1` excluded): `31.9 / 32.6` fps (mid **32.25**), 1% low `27.6 / 28.1` fps (mid **27.85**), median frame time `31.24 / 30.56 ms` (mid **30.90 ms**), p99 `36.21 / 35.60 ms` (mid **35.91 ms**) ### Logs & stability 0 `FATAL`, `VK_ERROR`, device-lost, or validation lines across all 24 runs. `vk: RX_VK_ASYNC_FENCES=1 (an attempt, off unless set)` logged on all `=1` runs. Representative log lines (Hyrule Field A1 vs B1; Deku Tree A1 vs B1): ```text # hyrule-field A1 (=0) [hos host] vk: the render thread (600 presents, 34.27 ms a frame): its jobs 10.40 ms a frame (submits 5.02, presents 0.50, others 4.88), idle 23.87; the game waited for room at 0 presents, 0.00 ms each (0.00 a frame; 6.23 jobs queued at a present); 0 catch-ups (a finish, a texture read back, a write-back not recorded yet: 0), 0.00 ms each; 0 presents held for the CPU's signal, 0.00 ms each (0 let go by RX_VK_HOLD_MS); 336 captures at a CPU signal; the submits' waits read in 0.047 ms a frame; readbacks: 3000 next to a texture's storage (no catch-up), 0 in one, 0 read exactly (after the work handed over: among the catch-ups); a present made 9.63 ms after its hand-over (14.00 at most) [hos host] vk: host time in GPU resource waits: 37.09 ms a frame (fences 19.27, timelines 17.82, idle 0.00, queries 0.00; sum across threads, not frame time; excludes pacing and driver submit/present blocking) # hyrule-field B1 (=1) [hos host] vk: the render thread (600 presents, 31.18 ms a frame): its jobs 9.52 ms a frame (submits 4.38, presents 0.47, others 4.67), idle 21.66; the game waited for room at 0 presents, 0.00 ms each (0.00 a frame; 6.16 jobs queued at a present); 0 catch-ups (a finish, a texture read back, a write-back not recorded yet: 0), 0.00 ms each; 0 presents held for the CPU's signal, 0.00 ms each (0 let go by RX_VK_HOLD_MS); 354 captures at a CPU signal; the submits' waits read in 0.041 ms a frame; readbacks: 3000 next to a texture's storage (no catch-up), 0 in one, 0 read exactly (after the work handed over: among the catch-ups); a present made 8.80 ms after its hand-over (12.72 at most) [hos host] vk: host time in GPU resource waits: 32.11 ms a frame (fences 16.99, timelines 15.12, idle 0.00, queries 0.00; sum across threads, not frame time; excludes pacing and driver submit/present blocking) # deku-tree A1 (=0) vs B1 (=1) [hos host] vk: host time in GPU resource waits: 29.02 ms a frame (fences 16.93, timelines 12.09, idle 0.00, queries 0.00; sum across threads, not frame time; excludes pacing and driver submit/present blocking) [hos host] vk: host time in GPU resource waits: 27.53 ms a frame (fences 16.34, timelines 11.19, idle 0.00, queries 0.00; sum across threads, not frame time; excludes pacing and driver submit/present blocking) ``` **Limits:** Standing `dev.py ab` scenes (no camera pan / traversal), 3 pairs per scene, and heavily GPU-bound at 67% render scale of 2560x1440 (`~30 fps`, `12.0–26.2 ms/frame` fence waits / `23.0–51.0 ms/frame` total across threads in `vk: host time in GPU resource waits`), where sub-millisecond CPU/fence-wait savings get masked by GPU wait time and run-to-run variance. A CPU-bound test (e.g., Minimum / 25–33% render scale or a faster discrete GPU) is needed to resolve `#2212`'s CPU-side ceiling; these runs also forced `RX_VK_ASYNC=1` on a non-mirrored iGPU (where `Auto` is off on `main`).
Author
Contributor

@Jer9 thank you for this one too, and for testing it on top of #2211 so that only this change differs between the arms. Your run is now in Measurements as a third party's, with your reading in your words: when GPU-bound, no consistent gain or regression. It also carries your limits (standing scenes, a GPU-bound iGPU, three runs a side).

It agrees with the Test Farm's run last night. There, =1 was within 1 % of =0 in p99 on every discrete card, so neither run shows a gain.

The CPU-bound case you ask for is the one our own comparison is built for. It is CPU-paced on purpose: Kokiri Forest at an 800x600 output and window on an RTX 4060, 8 runs a side, =0 against =1 with RX_VK_ASYNC_PARTS=1 on both sides. It reads vk: host time in GPU resource waits for every run, with fences and timelines apart, since that is the stage this change acts on. It waits for its runtime to be built. Until it has run, nothing is claimed for this change.

@Jer9 thank you for this one too, and for testing it on top of #2211 so that only this change differs between the arms. Your run is now in Measurements as a third party's, with your reading in your words: when GPU-bound, no consistent gain or regression. It also carries your limits (standing scenes, a GPU-bound iGPU, three runs a side). It agrees with the Test Farm's run last night. There, `=1` was within 1 % of `=0` in p99 on every discrete card, so neither run shows a gain. The CPU-bound case you ask for is the one our own comparison is built for. It is CPU-paced on purpose: Kokiri Forest at an 800x600 output and window on an RTX 4060, 8 runs a side, `=0` against `=1` with `RX_VK_ASYNC_PARTS=1` on both sides. It reads `vk: host time in GPU resource waits` for every run, with fences and timelines apart, since that is the stage this change acts on. It waits for its runtime to be built. Until it has run, nothing is claimed for this change.
Author
Contributor

@Jer9 thank you again: you asked for the CPU-bound case, and here it is, now in Measurements ("In play"). On this PC (RTX 4060, Kokiri Forest at an 800x600 output, 8 runs a side, RX_VK_ASYNC_PARTS=1 on both arms), the waits this change targets did not move: host time in GPU resource waits was 2.50 ms a frame with =1 and without (p = 0.93). The timeline part and the blocking sync waits were lower only in medians, inside the spread (p = 0.68 and 0.34).

Frame time was level (calm game time p = 0.97). The tail was worse with =1 in this one sitting: p99 17.7 against 21.3 ms (p = 0.024), and 57 against 16 frames of 50 ms or more (p = 0.039), across most =1 runs, with the game thread blocked and the cause not identified. #2211's readbacks were again not reached. So it stays off; a second sitting would come before anyone turns it on.

@Jer9 thank you again: you asked for the CPU-bound case, and here it is, now in Measurements ("In play"). On this PC (RTX 4060, Kokiri Forest at an 800x600 output, 8 runs a side, `RX_VK_ASYNC_PARTS=1` on both arms), the waits this change targets did not move: `host time in GPU resource waits` was 2.50 ms a frame with `=1` and without (p = 0.93). The timeline part and the blocking sync waits were lower only in medians, inside the spread (p = 0.68 and 0.34). Frame time was level (calm game time p = 0.97). The tail was worse with `=1` in this one sitting: p99 17.7 against 21.3 ms (p = 0.024), and 57 against 16 frames of 50 ms or more (p = 0.039), across most `=1` runs, with the game thread blocked and the cause not identified. #2211's readbacks were again not reached. So it stays off; a second sitting would come before anyone turns it on.
Author
Contributor

@Jer9 the CPU-paced run you asked for is in Measurements ("In play"): Kokiri Forest at an 800x600 output on an RTX 4060, 8 runs a side, RX_VK_ASYNC_FENCES off against =1 in one runtime. The waits this targets did not move (host time in GPU resource waits 2.50 ms a frame either way, p = 0.93), the frame was level, and the tail was worse with it on in that one sitting (p99 17.7 against 21.3 ms).

This is built on #2211's wait for the queue, and #2211 is withdrawn because its own path never ran, so this is closed with it. Thank you for testing both, on top of each other and then the CPU-bound case. The branch perf/vk-async-fences stays on the fork, and this can be reopened.

@Jer9 the CPU-paced run you asked for is in Measurements ("In play"): Kokiri Forest at an 800x600 output on an RTX 4060, 8 runs a side, `RX_VK_ASYNC_FENCES` off against `=1` in one runtime. The waits this targets did not move (host time in GPU resource waits 2.50 ms a frame either way, p = 0.93), the frame was level, and the tail was worse with it on in that one sitting (p99 17.7 against 21.3 ms). This is built on #2211's wait for the queue, and #2211 is withdrawn because its own path never ran, so this is closed with it. Thank you for testing both, on top of each other and then the CPU-bound case. The branch `perf/vk-async-fences` stays on the fork, and this can be reopened.
siantm closed this pull request 2026-11-24 02:00:45 +00:00
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
beanstalk/approval approved by HumanBean (reviewed)
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
beanstalk/windows+nvidia+gpu-rtx-4070 2/1 pass
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
beanstalk/windows+intel+gpu-arc-b580 1/1 pass
beanstalk/linux+radv+gpu-rx-6600 2/1 pass
beanstalk/steamdeck 1/1 fail
beanstalk/linux+nvidia 1/1 fail
beanstalk/linux+amd 1/1 fail
beanstalk/windows+amd 1/1 fail
PR description / Description follows the template (pull_request_target) Successful in 5s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
5 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!2212
No description provided.