d3d12: LEONIDA_RELEASE_WORKER=1 releases a queue's held work on its own worker, not on the signalling thread (RT-RELEASER-HELD-REPLAY) #2541
Closed
leonida/mandy
tiguan26 wants to merge 0 commits from
rt-releaser-held-replay into main
pull from: rt-releaser-held-replay
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!2541
Loading…
Reference in a new issue
No description provided.
Delete branch "rt-releaser-held-replay"
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?
Pull request closed
This pull request cannot be reopened because the branch was deleted.
Item: RT-RELEASER-HELD-REPLAY (claimed in #1608). Builds on main alone; no dependencies.
What it changes and why
A D3D12
Waitwhose value has not been signalled holds the queue's work; theSignalthat makes it ready records andsubmits that held work inline, on the thread that signalled. The list values' releaser signals the gates of every
queue from one thread, so one queue's replay, with its first-use pipeline builds (38-93 s each when cold with
LEONIDA_ASYNC_PIPELINESoff), holds every other queue's release behind it: djrolfes measured one release taking26 minutes, with the other queues idle and waiting.
With
LEONIDA_RELEASE_WORKER=1, theSignalonly asks: the held queue's own worker records and submits its heldwork, and the signalling thread goes on at once. Each queue's replay cost stays with that queue. This removes the
cause of that stall (one thread doing every queue's replay) rather than shortening it.
Off by default, as #2464 asks for new settings until game runs on two vendors show it right. Unset, held work is
released on the signalling thread exactly as on main.
Files
This touches only
VulkanQueue's held-work and worker code inruntime/src/vulkan_backend.h(release_ready,release_held,run,async_worker,flush_async,submit,discard_waiting_on) andQueueHolds::pump_nowinruntime/src/queue_holds.h. It does not touch the title upload and wait parts ofvulkan_backend.hor any file#2464 lists as off limits; the releaser it helps lives in
d3d12_xs_list_values.h, which is unchanged.Change
VulkanQueue::release_ready(with the setting on) hands the release to the queue's own worker: theLEONIDA_SUBMIT_ASYNCworker, or one started for releases alone on the queue's first release. The worker replays,then pumps the other queues.
queue's request is not left waiting behind that replay.
flush_asyncalso waits for a requested release and for theworker's pump after it.
QueueHolds::pump_now: a pass run after any pass in progress, with no "nothing to do" shortcut (a pass on anotherthread takes a queued Present off the list before running it, so an empty list can still mean a Present in
progress).
VulkanQueue::idle()and the queue destructor use it, so the Presents queued behind released or droppedwork have run when they return.
stop_async()closes the door under the lockstart_release_worker()takes. Without that, another thread's pump could ask a queue to release until its destructor detaches it, and the
worker started then would outlive the queue (
queue_proxy's 8-thread test aborted on exactly that duringdevelopment).
process.
LEONIDA_HELD_RUN_DELAY_MS=<n>sleeps before each held operation, for tests only; it costs nothing when unset.docs/d3d12_vulkan.md: the Wait-before-Signal paragraph describes the default and the setting.Tests
d3d12_held_release_worker_test, two CTest entries. Two queues each hold two Signals behind a gate; one threadsignals both gates, as the releaser does; each held operation waits 1.5 s.
d3d12_held_release_worker(LEONIDA_RELEASE_WORKER=1): both Signals return at once, each queue's held worktakes its 3 s, and the two queues finish side by side, in order on each queue.
d3d12_held_release_on_signaller(the default): the signalling thread runs A's held work before it reaches B'sgate, as on main.
vulkan_backend.handqueue_holds.h, run withLEONIDA_RELEASE_WORKER=1, fails at the check that the held work took its time (main has neither the worker northe delay hook: "held work done at 1 ms").
vk_presenter_sync_release_workerandvk_queue_query_sync_release_workerrun those two testswith the setting on, since the Present and failed-Signal races above only occur with it. Both tests now wait the way
an application does (a fence behind the held batch,
idle()) instead of assuming the release is synchronous.What I ran: cross-built with clang-cl 19 + xwin, run under Wine 11.22 on llvmpipe (Mesa, LLVM 20.1.2), 2 cores, on
main
d442851972(after theport/d3d12-nvidiamerge), one commit. It merges cleanly onto the current main431ceba4f4, whose three newer commits change none of these files.d3d12_held_release_worker,d3d12_held_release_on_signallervk_presenter_sync,vk_presenter_sparse_capture,vk_presenter_sync_release_workervk_queue_query_sync,vk_queue_query_sync_release_workerqueue_proxy, default /LEONIDA_RELEASE_WORKER=1d3d12_staged_copy_wait(main's, useswait_submitted), default /LEONIDA_RELEASE_WORKER=1The 21 full-ctest failures under Wine/llvmpipe here: the 18 that failed on main in this same setup when I last ran
main's full suite (
d1dff7949):gameinput_host,root_sig, the threexmem,file_system, bothbcrypt_rng,vk_device_filter_tools,d3d12_descriptor,pipeline_cache_seed,d3d12_clear,d3d12_view_slices, bothd3d12_indirect_rt,d3d12_subgroup,d3d12_clear_formats,d3d12_set_descriptor_heaps;module_namesandxgameruntime, whose binaries do not include the files this change touches; andrun_tiny_game_console_paths, wherethis Wine prefix's locale turns the test's Unicode overlay folder name into
?(ERROR_INVALID_NAME), the same causeas
file_system.python -I scripts/check_no_game_data.pyon the changed files is clean, and the doc tests pass excepttest_docs_links, which fails on main forREADME.md'sassets/mandy.png. The translator is untouched.Not tested: any GPU but llvmpipe, and any game run. The real check is a retail boot with cold pipeline compiles
and
LEONIDA_RELEASE_WORKER=1, compared with the same run without it (Snooozs, djrolfes: your stall snapshots fromthe list-values work are what this targets).
GPUs tested: llvmpipe (Mesa, LLVM 20.1.2) under Wine 11.22 on Linux.
AI-assisted (Claude Code, Claude Opus 5.5).
🤖 Generated with Claude Code
XCL #2965 separates queue submission from observed GPU completion in its receipts. For the release worker, an independent check would signal one completion and immediately quiesce the worker while another resource is still held. Assert the signaller stays free, the completed resource is released once, and the outstanding resource keeps its lifetime contract. This is a source comparison, without a performance claim.
Reviewed at head
25d460ccbon Windows 11 (MSVC 202219.44) with dual-GPU Vulkan validation (LEONIDA_VK_VALIDATION=1, Vulkan SDK1.4.363.0).Verification
d3d12_held_release_worker_test,vk_queue_query_sync_test, andvk_presenter_sync_test.616.64) and AMD Radeon(TM) Graphics (25.10.30.02), both with default settings and withLEONIDA_RELEASE_WORKER=1.Findings (Request changes)
queue_holds.h:168-183;vulkan_backend.h:4030-4045,4083-4088,4681-4730,4841-4854):QueueHoldsinvokes every holder whenever any held operation or queued barrier remains.release_ready()unconditionally setsrelease_requested_ = trueon every worker-backed holder — including whenon_workeris already true — without checking whether the queue's front operation can actually advance. The worker consumesrelease_requested_, sees the front still blocked atrelease_held(), and pumps again at the end of its pass, re-armingrelease_requested_in a tight loop. Because the flag is set before the worker publishes idle,flush_async()can also stall until its 60 s timeout on a queue whose front cannot run (even underLEONIDA_SUBMIT_ASYNCwithLEONIDA_RELEASE_WORKERunset). Only request another worker pass on an actual readiness transition or release progress, letting a blocked front go idle.VulkanQueuedestruction (vulkan_backend.h:2608-2652,4061-4067,4700-4730,4857-4883):start_release_worker()capturesthisby raw pointer, and teardown detachesworker_after the 60 s drain timeout.QueueHolds::detachonly serializes holder callbacks underpump_mutex_, whereasrelease_held_guarded()and post-replay bookkeeping run outsidepump_mutex_and can still touchinbox_mutex_/ queue members after~VulkanQueue()finishes. Keep queue/context state alive until the worker exits (or join cleanly).state_mutex_can deadlock on device loss (vulkan_backend.h:2462-2477,4083-4118;queue_holds.h:61-73):When
context_.is_device_lost()skipsrun(op)insiderelease_held(), the localDeferred op(owning a COM fence pin) is destroyed whilestate_mutex_is still held. If that drops the last reference to the fence while another operation remains held,~VulkanFence->remove_fence()takespump_mutex_and callsdiscard_waiting_on()on all holders, re-acquiringstate_mutex_on the same queue. Move dropped operations into a vector and destroy them after releasingstate_mutex_(matching teardown at4169-4174).vulkan_backend.h:4061-4067;queue_holds.h:168-210):If
std::threadcreation throws insiderelease_ready()during a pump, thread-localin_pumpis never reset; an RAII scope guard forin_pumpand catching thread-start failure prevents future pumps on that thread from silently skipping.AI-assisted review + local MSVC/dual-GPU verification.
#2541 | head 25d460ccb7a895351591a31ba2c6b87f656da245 | ctest -C RelWithDebInfo -R "d3d12_held_release|vk_queue_query_sync|vk_presenter_sync" (MSVC RelWithDebInfo, GPU tests) | red: clean main + the PR's test files and test registrations: d3d12_held_release_worker and d3d12_held_release_on_signaller fail on assertions (lines 90/94 and 125: the held work finishes at 0 ms, as main has no LEONIDA_HELD_RUN_DELAY_MS and no release worker); the 4 vk_* entries pass on main too | green: main 02f71ccfe merged into the head, 6/6 passed, 2 of 2 runs (held_release_worker 3.5 s, on_signaller 6.4 s) | full suite: not run (a game boot was using the machine) | Windows 11, RTX 4070 SUPER, NVIDIA 621.01, Python 3.14 | AI-assisted: yes, Claude Code
@timbot103 thank you, all four were right; and thanks for the RTX 5080 + AMD runs. Fixed in 99308202d (a separate commit so the changes are easy to see). AI-assisted (Claude Code, Claude Opus 5.5).
1. Spin on a blocked front. Confirmed: the worker's own pump re-armed
release_requested_on every pass.release_readynow asks only when the held front can run (front_may_run, the sameready(held_.front())testrelease_helduses). The signalling thread does not wait for the state lock: if it is busy, a release is running, so it asks (once per Signal); the worker never re-arms itself on a busy lock, and a front that a Signal makes ready meanwhile is asked for by that Signal's own pass. New check ind3d12_held_release_worker(worker on): a front held on an unsignalled fence, process CPU over 1 s. With the fix 0 ms of 1001; with the oldrelease_ready(check disabled) 990 ms of 1000, and the test fails. That also covers theflush_asyncstall underLEONIDA_SUBMIT_ASYNC.2. Release outliving the queue. The detach after
flush_async's minute was main's, but you're right that the release worker makes it reachable, since one held batch's cold builds can take longer than a minute.stop_asyncnow waits for a worker still busy; only on a lost device (where a release runs nothing) is a still-stuck worker detached. That last case keeps a narrow window, which I'd rather leave than risk hanging teardown on a dead device; say if you'd prefer joining there too.3. Fence pin dropped under
state_mutex_. Confirmed (this one is on main too).release_heldnow moves every operation it ran or skipped into a local vector destroyed after the state lock, as teardown does.4.
in_pumpon a throw.QueueHoldsmarks a pass with a scope guard (PumpScope) in all three places; a failure to start the worker thread falls back to the release on the signalling thread.Retested under Wine 11.22 on llvmpipe:
d3d12_held_release_worker,d3d12_held_release_on_signaller, bothvk_presenter_syncentries plusvk_presenter_sparse_capture, bothvk_queue_query_syncentries,queue_proxyandd3d12_staged_copy_wait, 3/3 each;queue_proxyandd3d12_staged_copy_waitwithLEONIDA_RELEASE_WORKER=14/4. Full ctest 487/509: the same 21 as before plusd3d12_compile_pool, which passes 5/5 on its own and doesn't touch the holds (the load flake Tyrannys claimed as TEST-COMPILE-POOL-LOAD-FLAKE).@Tyrannys thanks for the red/green on the RTX 4070 SUPER; that is the first check of these tests on Windows with a real GPU. Your run was at the first commit, so the new blocked-front check isn't in it yet.
@akimfomin: the case you describe (one release completed, another front still held, the worker going quiet) is what the new blocked-front check exercises, measured through the worker's CPU time rather than a receipt.
Reviewed the diff and tested merged onto
main(493867366) with Ninja Release (MSVC).The
LEONIDA_RELEASE_WORKERlifecycle inqueue_holds.h/vulkan_backend.hlooks solid:PumpScope,front_may_run(), destroying completeddoneentries outsidestate_mutex_, and clearingworker_busy_only afterpump_ready()avoid lock-inversion and premature-idle races. Both default (on-signaller) and worker-thread modes pass on real Vulkan hardware.Tests run
ctest --output-on-failure -R "^(d3d12_held_release_worker|d3d12_held_release_on_signaller|vk_queue_query_sync|vk_queue_query_sync_release_worker|vk_presenter_sync|vk_presenter_sync_release_worker)$": 6/6 passed (vk_queue_query_sync0.27 s,vk_queue_query_sync_release_worker0.24 s,vk_presenter_sync0.71 s,vk_presenter_sync_release_worker0.59 s,d3d12_held_release_worker7.41 s,d3d12_held_release_on_signaller6.16 s).python -m unittest tests/test_ctest_registration.py -v: 7/7 passed (0.26 s).GPUs tested: NVIDIA GeForce RTX 5070 12 GB (Windows 11, driver 610.88, Vulkan 1.4.341; VK_LAYER_KHRONOS_validation not installed locally).
AI-assisted (Antigravity, Gemini).
#2541 | head 99308202dd09b0efcd1a5c55f7b082c4a03e5cd2 (merged cleanly with main adfb3821a23612263c1c5b195453ed01c4c114db — includes the second commit's
front_may_runidle check,stop_asyncjoin, post-lock fence-pin drop, andPumpScopeRAII) |ctest --test-dir runtime/build -C RelWithDebInfo -R "^(d3d12_held_release_worker|d3d12_held_release_on_signaller|vk_presenter_sync|vk_presenter_sparse_capture|vk_presenter_sync_release_worker|vk_queue_query_sync|vk_queue_query_sync_release_worker|queue_proxy|d3d12_staged_copy_wait)$" --output-on-failure+LEONIDA_RELEASE_WORKER=1onqueue_proxyandd3d12_staged_copy_wait(LEONIDA_VK_VALIDATION=1) | red on main: buildingd3d12_held_release_worker_testagainstmain'squeue_holds.handvulkan_backend.hfails (line 90: b_ms >= 2.0 * kDelayMs - 50 && a_ms >= 2.0 * kDelayMs - 50,held work done at 1 ms) | green on PR+main:9/9CTests (includingd3d12_held_release_worker's newcheck_blocked_front_idlesspin check,d3d12_held_release_on_signaller, bothvk_presenter_syncandvk_queue_query_sync_release_workermodes,queue_proxy, andd3d12_staged_copy_wait) pass in35.28 s, andqueue_proxy+d3d12_staged_copy_waitpass underLEONIDA_RELEASE_WORKER=1in15.95 s, all on physical RTX 3090 hardware with0Khronos validation errors;test_docs_encoding.py,test_docs_repo_paths.py, andcheck_no_game_data.py0violations | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yesClosing this. The worker is off by default and shows no frame-rate gain, #1783 already made the QueueHolds pump handoff safe (and is why this now conflicts), and timbot103's second audit (device-loss teardown, the held count reaching zero before the final render) would need a rework larger than the change is worth. Thank you @lixonik for the review, @zmasi for the hardware red/green run, and @timbot103 for both audits. AI-assisted (Claude).