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
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2212
Loading…
Reference in a new issue
No description provided.
Delete branch "siantm/Longshot:perf/vk-async-fences"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
On the submitting thread's replay a fence of one queue (
nvnQueueFenceSync) is that queue's last submission, andits wait is for that queue's work recorded whole and then its last recording (
fence_q,wait). With the replay onthe render thread (
RX_VK_ASYNC=1) a fence is every queue's work up to it on the main timeline, which is signalled inthe 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=1gives the render thread the same rule, presents kept:enqueuenotes each submit's queue and valueand 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, orthe last present handed over if that came later (
async_fence_q). A present has a value and no queue, so a fence after itstays 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 withRX_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, kindattempt, bool, its row ingpu/vk/switches.def), off by default: unset ismain's code. It stays off until its in-game comparison exists (dazemc, 72465 point 2).
1(any value but empty,0,false,offorno) 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_lastis filled bysubmit_qonly, 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_qandwait_inneringpu/vk/vk_replay.cpp, thentests/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, summaryb-fx2212.log), the checks in a hidden console withtests/run_all.py --strict --exact --jobs 2 --timeout 1200. Headc314a21eon756da265(#2211's head, on maina2dc5385): its own check passes (logfx2212-12-head.log):tests/test_async_fences.py(the switch's read in fresh processes included, off when unset). The failing test first: atdc5cef28(on dff3d054's code) it fails,async_fence_q(7) == 17(the queue's last submission, 10, after a present 17; logfx2212-12-ptest.log), and passes at6a09a036; atb850d08f(the tightened check on dff3d054's code) it passes. Mutants (logfx2212-mut2212.log; the files taken from git, one edit each): the hook moved belowvkWaitSemaphores,async_wait_fenceanswering 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 a2dc5385picks (logfx2212-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 maina2dc5385too (batchfx2212-r1m, logfx2212-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 2at this head (everygpu/vk/*.cpp; no game, nothing run): compiled with 0 failed and linkedlongshot_vk.dll(logfx2212-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 anda 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:
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
=1no worse than off (by hand)switch was read (by hand)
RX_VK_ASYNC=1), play three minutes each: main @a2dc5385, this branch unset (off) and this branch withRX_VK_ASYNC_FENCES=1, each warmed up a minute in the scene first, interleaved (ABBA), at least two runs each,RX_VK_ASYNC_PARTSunset in every run, expecting the same picture, no FATAL, hang or black frame, a median frame time with=1lower than unset and than main, and unset the same as main (by hand)a2dc5385, this branch unset and this branch withRX_VK_ASYNC_FENCES=1, warmed up, ABBA, expecting the same picture, no FATAL and no hang, and a median frame time with=1lower 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)python3 -I -B tests/test_async_fences.py, expecting PASS (by hand)RX_VK_ASYNC_FENCESand #2211'sRX_VK_ASYNC_PARTSon 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,
=1against off withRX_VK_ASYNC_PARTS=1on both sides, 8 runs a side; In play below):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.
within 1.5 % (p >= 0.39).
50 ms or more 16 against 57 (p = 0.039), in most
=1runs rather than one; in those frames the game thread was blockedfor 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_FENCESships off (attempt). This change is built on #2211's wait for the queue (q_reached), and #2211is 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_PARTScomes 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 (theswitch is read with
env_on, so unset,0and other false values all return before anything is set up).linux+amd, RX 9070 XT on windows+amd, the other Steam Deck).
=1cell, report rp_c0bf04eed60e38cb) and one linux+nvidia PC with a GTX 1070(both cells, rp_844bb1d896a94c44). The plan loads
kokiri-startand then teleports to Kokiri Forest, the map the saveis 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.
=1(two starts a side). This PR's starts areinside main's own range on that PC.
0xC0000409; this PR's log ends in an out-of-memory error during a shader compile.
=1was within 1 % of=0in p99, so the farm shows no frame-time gain from thischange either.
=1took effect in a start (its line is printed at start-up only, and thereports 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
c314a21eover maina2dc5385,RX_VK_ASYNC=1andRX_VK_ASYNC_PARTS=1on both arms,RX_VK_ASYNC_FENCES=0against=1,dev.py ab --separate --runs 3 --seconds 45, fourscenes, 24 runs.
=1showsno 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
=1run left outfor 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.
a faster discrete GPU) is what it would take.
His run and the farm's (
=1within 1 % of=0in p99 on every discrete card) agree: no gain is shown. Neither wasCPU-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 headc314a21e(on #2211's756da265and maina2dc5385), Threaded rendering at its default (on),RX_VK_ASYNC_PARTS=1andRX_VK_PROF_FINE=1on bothsides. Kokiri Forest, 60 s a run, CPU-paced on purpose (an 800x600 output and window), a warm-up a side, then off and
=1interleaved (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=1run and in none off. It proves the switch wasread and on; no counter says how many fences took the new path.
The wait columns: the host's
host time in GPU resource waitsline (ms a frame, summed over the threads; fences andtimelines apart), and the host's
nvn: GPU waits in 5 sline (the blockingnvnSyncWaits in 5 s and their ms, summed overthe game's threads), each a run's median line.
c314a21e, off, 8 runsc314a21e,RX_VK_ASYNC_FENCES=1, 8 runsa frame's replay time (ms): submitSplit 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
=1against 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 resultsnot 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_fenceandasync_fences_doneagainst stand-in queue maps, stoppedqueues 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
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
gpu/vk/switches.def.tests/that reads changed source is updated, not weakened.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.@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.@siantm only members of
BigBeanscan start the farm.One of them can approve this request by reacting 👍 to it or to this comment.This request was fordff3d05, and the PR has changed since (c314a21), so a 👍 no longer approves it. Comment@Beanstalkagain to ask for the new commit.Read of
dff3d054(the #2212 commit alone, on9751e510; +338 in three files). The rule itself is right and mirrors the submitting-thread path (fence_q→q_last→wait_recorded), and=0is 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 itsJobcarries no queue (Job j{JOB_PRESENT}inpresent_tagged,:8163-8170), and the new bookkeeping isj.kind == JOB_SUBMIT && j.queue(:7883) feedingaq_last, which is allasync_fence_qconsults (:7973-7976). SonvnQueueFenceSync(queue)returns that queue's last submit; on main with the render thread it returnedfence()=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_lastis filled only bysubmit_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_ASYNCis 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:
fence_qforqueue != 0andwait_innerfor 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'sasync_catch_upand the present'sdrain(0)are untouched.gate_ms/hold_ms,q_cvtimeouts) 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.=0is main exactly:async_fences()false,fence_qfalls tofence(), thewait_innerhook is skipped,enqueue/async_fences_donedo nothing. The only cost when off is a static +rec_timelinecheck per submit and per job.vk_replay.cppand runs them (tests/test_async_fences.py:73-101), and asserts the wiring (:214-229), so on main it fails at the extraction ofasync_fence_q. Two weak spots::218says the hook is "before the main timeline's" but only compares its index to the hold block — moving it belowvkWaitSemaphoreswould still pass; and the fixture'swait_recorded(:68-72) always answers done, so a recording that is not done (ok=0passed through) is not exercised.:3235,:3301,:7715/:7850,:7883and the three new functions; the barrier-split branch isvk_texture.cppplus onevk_replay.cpphunk in the frame line, and the #1988 line's fix isSlowWatch:2529/:2557anddo_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 haveRX_VK_ASYNC_FENCES(and #2211'sRX_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.
dff3d05487c314a21e1eWIP: 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)Thank you for the read. New head
c314a21eon #2211's new head756da265(maina2dc5385). dff3d054's own lines are unchanged:git range-diffshows only its context moved, where #2211 dropped lines. Four commits on it.You were right. On main with the render thread
fence_qreturnsfence()=q_values(vk_replay.cpp:3219-3220,:8031), which a present raises too (:7740); with the switch on,dff3d054readaq_lastonly, whichenqueuefills 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), then6a09a036:async_fence_qgives the queue's last submission or the last present handed over, whichever came later (aq_present, noted byenqueue). 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_lastfilled bysubmit_qonly (:7864) and the present's++q_values(:7900) noted for no queue.Done in
c314a21e:RX_VK_ASYNC_FENCESships off, kindattempt: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 andvkWaitSemaphoresonce each, in that order. The mutant with the hook moved belowvkWaitSemaphoresfails it (it failed the old check too, as the hold block sits above the wait; the check now names the wait itself). The fixture'swait_recordedanswers 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_fenceanswering 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.pypasses at the head, fails atdc5cef28and passes at6a09a036; every mutant above fails at the head;--changed a2dc5385146 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.
@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.@siantm only members of
BigBeanscan start the farm. One of them can approve this request by reacting 👍 to it or to this comment.@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.@siantm only members of
BigBeanscan start the farm. One of them can approve this request by reacting 👍 to it or to this comment.@Beanstalk
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.
Done (started 2026-11-22 19:59 UTC, last report 2026-11-23 17:34 UTC). Comment
@Beanstalkto run it again.windows+nvidia+gpu-rtx-4070(GPU "rtx 4070")windows+intel+gpu-arc-b580(GPU "arc b580")linux+radv+gpu-rx-6600(GPU "rx 6600")steamdecklinux+nvidialinux+amdwindows+amdforest-field· frame time p99 (ms)RX_VK_ASYNC_FENCES=0(reference)RX_VK_ASYNC_FENCES=1windows+nvidia+gpu-rtx-4070(GPU "rtx 4070")windows+intel+gpu-arc-b580(GPU "arc b580")linux+radv+gpu-rx-6600(GPU "rx 6600")steamdecklinux+nvidialinux+amdwindows+amdWhy it failed
steamdeck:forest-field · RX_VK_ASYNC_FENCES=1 (PR only)screenshot.max_diff:0.0 → 0.7; limit 0.2linux+nvidia:forest-field · RX_VK_ASYNC_FENCES=0 (PR only)screenshot.max_diff:0.1 → 0.7; limit 0.2linux+nvidia:forest-field · RX_VK_ASYNC_FENCES=1 (PR only)screenshot.max_diff:0.1 → 0.7; limit 0.2linux+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 crashedwindows+amd:forest-field · RX_VK_ASYNC_FENCES=1 (PR only)crash:2 PR runs crashedWhat 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.
0or1(PR only).kokiri-start(switchesRX_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).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.0AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpuNVIDIA GeForce RTX 4070, 621.1.0AMD Ryzen 9 7900X 12-Core Processor, 32 GB RAMScene: 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 (
@Beanstalkon this PR runs it again)a2dc538c314a21RX_VK_ASYNC_FENCES=0 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (worst 1%) (ms)Flags and settings
RX_VK_ASYNC_FENCES0,1As Markdown for the PR description:
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.98312th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAMScene: 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 (
@Beanstalkon this PR runs it again)a2dc538c314a21RX_VK_ASYNC_FENCES=0 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (worst 1%) (ms)Flags and settings
RX_VK_ASYNC_FENCES0,1As Markdown for the PR description:
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.6AMD Ryzen 5 5600X 6-Core Processor, 64 GB RAM; 2: linux+amd+radv+dgpuAMD Radeon RX 6600 (RADV NAVI23), 26.3.1AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAMScene: 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 (
@Beanstalkon this PR runs it again)a2dc538c314a21RX_VK_ASYNC_FENCES=0 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (worst 1%) (ms)Flags and settings
RX_VK_ASYNC_FENCES0,1As Markdown for the PR description:
Measurements on `steamdeck`, for the PR description
Verdict: fail on steamdeck (2 reports):
forest-field screenshot.max_difffailed.Hardware: 1: linux+amd+radv+igpu+handheld
AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 12 GB RAM; 2: linux+amd+radv+igpu+handheldAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAMScene: 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 (
@Beanstalkon this PR runs it again)a2dc538c314a21RX_VK_ASYNC_FENCES=0 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (worst 1%) (ms)Flags and settings
RX_VK_ASYNC_FENCES0,1As Markdown for the PR description:
Measurements on `linux+nvidia`, for the PR description
Verdict: fail on linux+nvidia (2 reports):
forest-field screenshot.max_difffailed.Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu
NVIDIA GeForce RTX 5070, 620.73.4AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM; 2: linux+nvidia+nvidia-proprietary+dgpuNVIDIA GeForce GTX 1070, 580.196.7Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz, 32 GB RAMScene: 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 (
@Beanstalkon this PR runs it again)a2dc538c314a21RX_VK_ASYNC_FENCES=0 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (worst 1%) (ms)Flags and settings
RX_VK_ASYNC_FENCES0,1As Markdown for the PR description:
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.8AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM; 2: linux+amd+radv+igpuAMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAMScene: 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 (
@Beanstalkon this PR runs it again)a2dc538c314a21RX_VK_ASYNC_FENCES=0 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (worst 1%) (ms)Flags and settings
RX_VK_ASYNC_FENCES0,1As Markdown for the PR description:
Measurements on `windows+amd`, for the PR description
Verdict: fail on windows+amd (2 reports):
forest-field crashfailed.Hardware: 1: windows+amd+amd-proprietary+dgpu
AMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM; 2: windows+amd+amd-proprietary+dgpuAMD Radeon RX 7900 XT, 2.0.416AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAMScene: 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 (
@Beanstalkon this PR runs it again)a2dc538c314a21RX_VK_ASYNC_FENCES=0 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=0 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=0 (PR only)· forest · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · median frame time (ms)RX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (p99) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forbidden log linesRX_VK_ASYNC_FENCES=1 (PR only)· field · frame time (worst 1%) (ms)RX_VK_ASYNC_FENCES=1 (PR only)· forest · frame time (worst 1%) (ms)Flags and settings
RX_VK_ASYNC_FENCES0,1As Markdown for the PR description:
The testers' hardware
windows+nvidia+gpu-rtx-4070NVIDIA GeForce RTX 4070, 621.24.0AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAMwindows+nvidia+gpu-rtx-4070NVIDIA GeForce RTX 4070, 621.1.0AMD Ryzen 9 7900X 12-Core Processor, 32 GB RAMwindows+intel+gpu-arc-b580Intel(R) Arc(TM) B580 Graphics, 0.406.98312th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAMlinux+radv+gpu-rx-6600AMD Radeon RX 6600 (RADV NAVI23), 26.2.6AMD Ryzen 5 5600X 6-Core Processor, 64 GB RAMlinux+radv+gpu-rx-6600AMD Radeon RX 6600 (RADV NAVI23), 26.3.1AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAMsteamdeckAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 12 GB RAMsteamdeckAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAMlinux+nvidiaNVIDIA GeForce RTX 5070, 620.73.4AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAMlinux+nvidiaNVIDIA GeForce GTX 1070, 580.196.7Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz, 32 GB RAMlinux+amdAMD Radeon RX 9070 (RADV GFX1201), 26.0.8AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAMlinux+amdAMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAMwindows+amdAMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 7 7700 8-Core Processor, 32 GB RAMwindows+amdAMD Radeon RX 7900 XT, 2.0.416AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM@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:
=1cell (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.=0as well as at=1.=1, two starts a side. This PR's starts sit inside main's own range on that PC.Only the Deck's picture is in this change's cells alone, and it is the same two-places split. On every discrete card
=1was within 1 % of=0in 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-startand 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).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
c314a21eovermaina2dc5385(longshot_vk.dllpack).Relationship to
#2211(additive test)#2212stacks directly on#2211(756da265, reusingq_reached). Both arms here ran withRX_VK_ASYNC=1andRX_VK_ASYNC_PARTS=1so this test measures#2212's additive effect on top of#2211rather than mixing both PRs' changes. (In all 24 runs below,vk: the render threadalso logged0 in onetexture-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'sasync_fence_q/async_wait_fencepath 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/framein fence waits;23.0–51.0 ms/frametotal across threads invk: host time in GPU resource waits). Under that GPU bottleneck,RX_VK_ASYNC_FENCES=1shows 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 (marketflat,deku-treeslightly lower,hyrule-fieldnoisy/overlapping,kokiri-forestmatched-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):RX_VK_ASYNC_FENCES=0(A1 / A2 / A3)RX_VK_ASYNC_FENCES=1(B1 / B2 / B3)30.7 / 30.7 / 32.4(median 30.7)30.6 / 30.7 / 29.3(median 30.6)26.3 / 26.4 / 28.1(median 26.4)26.1 / 26.2 / 20.9(median 26.1)32.43 / 32.44 / 30.79 ms(32.43 ms)32.57 / 32.52 / 33.41 ms(32.57 ms)38.03 / 37.85 / 35.55 ms(37.85 ms)38.38 / 38.18 / 47.96 ms(38.38 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):RX_VK_ASYNC_FENCES=0(A1 / A2 / A3)RX_VK_ASYNC_FENCES=1(B1 / B2 / B3)33.6 / 33.7 / 30.1(median 33.6)33.4 / 31.4 / 32.2(median 32.2)30.2 / 29.7 / 24.4(median 29.7)26.7 / 25.3 / 26.3(median 26.3)29.66 / 29.51 / 32.65 ms(29.66 ms)29.54 / 31.69 / 31.13 ms(31.13 ms)33.11 / 33.69 / 40.99 ms(33.69 ms)37.51 / 39.51 / 38.02 ms(38.02 ms)3. Hyrule Field (
hyrule-field, standing, 3 pairs):RX_VK_ASYNC_FENCES=0(A1 / A2 / A3)RX_VK_ASYNC_FENCES=1(B1 / B2 / B3)29.2 / 27.4 / 25.3(median 27.4)31.8 / 23.8 / 33.1(median 31.8)23.1 / 16.7 / 18.7(median 18.7)26.4 / 16.0 / 25.8(median 25.8)34.05 / 34.07 / 38.72 ms(34.07 ms)31.24 / 41.04 / 29.88 ms(31.24 ms)43.25 / 59.89 / 53.55 ms(53.55 ms)37.92 / 62.53 / 38.80 ms(38.80 ms)Both arms had wide run-to-run variance (
25.3–29.2vs23.8–33.1fps, overlapping).4. Kokiri Forest (
kokiri-forest, standing;B1excluded forkokiri-startearly-teleport spot):B1(38.8 fps,25.59 msmedian) teleported early (35.4 svs38.8–41.2 s) and hit the lighterkokiri-startspot (1187textures /2424 MBvs1527–1587textures /2770–2957 MBon all other 5 runs), so it is excluded.RX_VK_ASYNC_FENCES=0(A1 / A2 / A3):30.9 / 28.8 / 31.9fps (median 30.9), 1% low24.9 / 24.0 / 23.9fps (24.0), median frame time31.92 / 34.36 / 30.99 ms(31.92 ms), p9940.18 / 41.69 / 41.84 ms(41.69 ms)RX_VK_ASYNC_FENCES=1(B2 / B3,B1excluded):31.9 / 32.6fps (mid 32.25), 1% low27.6 / 28.1fps (mid 27.85), median frame time31.24 / 30.56 ms(mid 30.90 ms), p9936.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=1runs. Representative log lines (Hyrule Field A1 vs B1; Deku Tree A1 vs B1):Limits: Standing
dev.py abscenes (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/framefence waits /23.0–51.0 ms/frametotal across threads invk: 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 forcedRX_VK_ASYNC=1on a non-mirrored iGPU (whereAutois off onmain).@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,
=1was within 1 % of=0in 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,
=0against=1withRX_VK_ASYNC_PARTS=1on both sides. It readsvk: host time in GPU resource waitsfor 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 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=1on both arms), the waits this change targets did not move:host time in GPU resource waitswas 2.50 ms a frame with=1and 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
=1in 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=1runs, 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 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_FENCESoff against=1in 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-fencesstays on the fork, and this can be reopened.Pull request closed