Jan Trencansky
50c5eddcd2
runtime: unlock VulkanQueue state_mutex_ across execution, coalesce ready batches, zero-copy CommandList
...
Round 1D runtime CPU optimization:
1. Split VulkanQueue state bookkeeping (state_mutex_, microsecond hold) from
execution serialization (executing_ + exec_cv_ + execution-local wait/pin
staging). Callers arriving while executing_ is active append to held_ in
strict FIFO order without blocking on before_execute_() or replay, and the
executing thread drains ready held work before releasing executing_.
2. Coalesce consecutive ready Deferred::Kind::batch ops in release_held() /
drain_held_while_executing() and consecutive Call::Kind::execute ops in
async_worker() (stopping on Signal, Wait, Marker, or Present after_held
barrier_after), inserting D3D12 inter-batch full memory barriers and
falling back to per-batch execution on validation failure.
3. Pass closed CommandList snapshots via std::shared_ptr<const CommandList>
from GraphicsCommandList to VulkanQueue (zero deep copies on submit;
Reset() reuses storage with an acquire fence when unique or allocates
fresh storage while in flight), and skip redundant visible_heaps
scan_title_table() recording for console descriptor heaps when table-scan
diagnostics are off.
4. Add unit tests in submit_frame_test covering unlocked before_execute_(),
strict FIFO order, held-batch coalescing and Signal/Wait splits, invalid
batch fallback, zero-copy Reset(), and async worker (depth=4) coalescing
with Present barrier ordering.
AI-assisted: Antigravity (Gemini 4 Neon).
Tested on Linux (RADV RAPHAEL_MENDOCINO): 15/15 queue/submit/replay ctest
targets pass (list_value_progress, vk_queue, vk_queue_query_sync,
submit_frame, vk_queue_constructor_oom, vk_semaphore_lifetime,
vk_fence_dispatcher_sync, vk_fence_lost_by_counter, vk_command_replay,
vk_predicated_copy, vk_predicate_capture, vk_overlapping_occlusion,
vk_host_at_aliasing, vk_host_texture_order).
2026-11-27 10:59:34 -05:00
..
2026-11-26 13:15:17 -05:00
2026-11-27 04:55:14 -05:00
2026-11-27 05:20:52 -05:00
2026-11-24 15:05:47 +00:00
2026-11-26 09:07:53 -05:00
2026-11-24 11:42:12 -06:00
2026-11-26 16:44:41 -05:00
2026-11-25 13:09:51 +01:00
2026-11-25 10:53:03 +00:00
2026-11-26 16:44:41 -05:00
2026-11-25 21:59:36 +01:00
2026-11-25 15:11:11 +01:00
2026-11-26 14:48:57 -05:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-26 13:15:17 -05:00
2026-11-26 12:40:56 -05:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-24 20:18:37 -05:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-25 14:30:51 -06:00
2026-11-25 21:20:01 +01:00
2026-11-27 04:29:58 -05:00
2026-11-24 11:42:12 -06:00
2026-11-24 15:48:18 +01:00
2026-11-26 02:27:26 -06:00
2026-11-24 19:54:46 -05:00
2026-11-24 20:26:00 -05:00
2026-11-25 15:11:11 +01:00
2026-11-24 11:42:12 -06:00
2026-11-25 03:44:43 -06:00
2026-11-24 11:42:12 -06:00
2026-11-24 19:54:01 +05:00
2026-11-24 19:38:04 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 16:24:17 +01:00
2026-11-25 14:30:51 -06:00
2026-11-26 02:25:52 +01:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-24 20:53:44 -05:00
2026-11-24 11:42:12 -06:00
2026-11-25 03:44:43 -06:00
2026-11-24 11:42:12 -06:00
2026-11-26 18:50:03 -05:00
2026-11-26 01:25:22 +03:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-25 03:44:43 -06:00
2026-11-27 08:43:30 -05:00
2026-11-24 11:39:08 -06:00
2026-11-25 03:44:43 -06:00
2026-11-25 18:36:19 -05:00
2026-11-24 11:42:12 -06:00
2026-11-24 20:53:43 -05:00
2026-11-24 11:42:12 -06:00
2026-11-25 14:30:51 -06:00
2026-11-26 09:16:34 -05:00
2026-11-24 11:42:12 -06:00
2026-11-27 09:41:01 -05:00
2026-11-24 19:02:50 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 04:46:33 +01:00
2026-11-25 14:30:51 -06:00
2026-11-24 11:42:12 -06:00
2026-11-25 00:17:38 +05:00
2026-11-24 20:26:00 -05:00
2026-11-24 11:42:12 -06:00
2026-11-24 10:42:39 -06:00
2026-11-24 11:42:12 -06:00
2026-11-26 01:58:24 +03:00
2026-11-25 03:44:43 -06:00
2026-11-24 19:49:09 +05:00
2026-11-25 03:44:43 -06:00
2026-11-24 11:42:12 -06:00
2026-11-25 03:44:43 -06:00
2026-11-24 23:48:51 +02:00
2026-11-24 21:35:06 -05:00
2026-11-25 00:25:24 +01:00
2026-11-25 19:19:20 +03:00
2026-11-25 22:27:19 +10:00
2026-11-26 17:03:39 -05:00
2026-11-25 20:40:23 +05:00
2026-11-26 18:40:43 -05:00
2026-11-24 10:42:39 -06:00
2026-11-25 22:27:19 +10:00
2026-11-26 18:40:43 -05:00
2026-11-26 14:47:29 -05:00
2026-11-25 18:18:57 -05:00
2026-11-25 18:36:19 -05:00
2026-11-25 03:44:43 -06:00
2026-11-27 04:07:38 -05:00
2026-11-24 11:42:12 -06:00
2026-11-24 19:16:06 -03:00
2026-11-25 12:39:12 +01:00
2026-11-25 14:30:51 -06:00
2026-11-25 18:18:57 -05:00
2026-11-24 20:26:00 -05:00
2026-11-25 16:35:47 -05:00
2026-11-24 11:42:12 -06:00
2026-11-25 09:37:42 +01:00
2026-11-25 17:23:18 -05:00
2026-11-24 10:42:39 -06:00
2026-11-26 00:00:45 +01:00
2026-11-26 00:01:37 +01:00
2026-11-26 13:17:06 -05:00
2026-11-26 04:58:19 +00:00
2026-11-26 17:03:39 -05:00
2026-11-27 05:20:52 -05:00
2026-11-24 20:58:44 -05:00
2026-11-27 05:03:32 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 22:10:37 +00:00
2026-11-25 00:25:24 +01:00
2026-11-25 14:30:51 -06:00
2026-11-26 16:43:28 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 16:00:22 +01:00
2026-11-25 16:43:47 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 14:30:51 -06:00
2026-11-25 15:11:10 +01:00
2026-11-26 17:37:42 -05:00
2026-11-24 11:42:12 -06:00
2026-11-24 10:24:51 -05:00
2026-11-27 05:56:53 -05:00
2026-11-25 09:37:42 +01:00
2026-11-25 09:19:01 +01:00
2026-11-25 13:00:57 +01:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-25 14:30:51 -06:00
2026-11-24 18:08:29 +01:00
2026-11-26 02:36:38 +01:00
2026-11-25 04:46:33 +01:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-25 17:19:44 +01:00
2026-11-24 19:38:04 -05:00
2026-11-25 13:16:41 +01:00
2026-11-25 16:41:36 -05:00
2026-11-26 19:40:14 -05:00
2026-11-24 19:38:04 -05:00
2026-11-25 17:04:39 -05:00
2026-11-24 20:26:00 -05:00
2026-11-25 22:27:19 +10:00
2026-11-24 15:16:22 +00:00
2026-11-25 16:42:34 -05:00
2026-11-24 21:35:06 -05:00
2026-11-25 16:51:33 -05:00
2026-11-24 11:42:12 -06:00
2026-11-27 05:20:52 -05:00
2026-11-26 01:22:14 +01:00
2026-11-25 00:20:54 -05:00
2026-11-26 01:25:22 +03:00
2026-11-25 16:38:51 -05:00
2026-11-24 21:39:58 -05:00
2026-11-27 10:59:34 -05:00
2026-11-25 14:30:51 -06:00
2026-11-24 11:42:12 -06:00
2026-11-26 18:52:44 -05:00
2026-11-27 09:36:10 -05:00
2026-11-25 18:18:57 -05:00
2026-11-26 02:02:47 -08:00
2026-11-27 09:36:10 -05:00
2026-11-27 08:34:14 -05:00
2026-11-27 08:34:14 -05:00
2026-11-27 09:38:50 -05:00
2026-11-25 13:09:51 +01:00
2026-11-25 03:44:43 -06:00
2026-11-24 11:42:12 -06:00
2026-11-27 09:38:50 -05:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-25 03:44:43 -06:00
2026-11-26 14:48:57 -05:00
2026-11-24 20:00:23 -05:00
2026-11-26 14:48:57 -05:00
2026-11-24 12:45:05 -06:00
2026-11-25 14:30:51 -06:00
2026-11-25 14:30:51 -06:00
2026-11-26 19:40:14 -05:00
2026-11-24 16:09:38 +00:00
2026-11-25 10:50:03 +08:00
2026-11-26 18:50:22 -05:00
2026-11-25 14:30:51 -06:00
2026-11-27 05:07:02 -05:00
2026-11-24 17:22:18 +01:00
2026-11-26 17:22:16 -05:00
2026-11-25 14:30:51 -06:00
2026-11-25 03:44:43 -06:00
2026-11-27 05:48:33 -05:00
2026-11-25 14:30:51 -06:00
2026-11-25 14:30:51 -06:00
2026-11-25 00:23:37 +05:00
2026-11-25 14:30:51 -06:00
2026-11-25 14:30:51 -06:00
2026-11-25 14:30:51 -06:00
2026-11-27 04:32:30 -05:00
2026-11-25 17:23:18 -05:00
2026-11-26 09:16:06 -05:00
2026-11-27 05:20:52 -05:00
2026-11-27 04:55:14 -05:00
2026-11-26 07:50:38 +01:00
2026-11-27 05:48:33 -05:00
2026-11-24 11:42:12 -06:00
2026-11-26 19:40:14 -05:00
2026-11-24 22:54:10 +08:00
2026-11-24 11:42:12 -06:00
2026-11-25 12:09:55 +01:00
2026-11-25 14:11:53 -05:00
2026-11-24 11:42:12 -06:00
2026-11-25 14:37:34 -05:00
2026-11-24 20:44:26 -05:00
2026-11-25 22:09:28 +02:00
2026-11-25 06:16:46 -05:00
2026-11-25 06:43:13 -05:00
2026-11-26 00:01:37 +01:00
2026-11-25 19:04:24 -05:00
2026-11-26 16:21:19 +01:00
2026-11-25 03:44:43 -06:00
2026-11-24 19:38:04 -05:00
2026-11-24 11:42:12 -06:00
2026-11-25 03:44:43 -06:00
2026-11-25 03:44:43 -06:00
2026-11-27 04:55:14 -05:00
2026-11-25 03:44:43 -06:00
2026-11-24 20:01:35 -05:00
2026-11-26 17:37:42 -05:00