Skip to content

Runtime: keep the queue's prepared command lists across smaller submits instead of rebuilding them by copy (about 23% less per-draw submit work on a title-shaped frame) - #5384

Closed
tedin7 wants to merge 4 commits into
ProjectLeonida:mainfrom
tedin7:perf-submit-copies

Conversation

@tedin7

@tedin7 tedin7 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

#5256 (comment)

What and why

VulkanQueue::execute keeps its PreparedLists between executions (prepared_), so that prepare refills each list's entries in the storage the last execution left. But it resized prepared_ to the number of lists of each call. A queue that alternates a one-list call with a many-list call frees the many-list call's PreparedLists on the short call. Then the long call builds them again from nothing: commands.assign copy-constructs every detail::Prepared entry, the per-draw pool (draws) is allocated again, and the short call pays for freeing all of it.

A title's direct queue does exactly this every frame: a pre pass in one list, then the main pass in several. Lanterns stage 25 has the same pattern: Execute(pre) with 1 list, then Execute(bind, 4 chunks, post) with 6 lists. In its profile, the Prepared copy constructor was the layer's second-hottest function.

This change:

  • prepared_ only grows. An execution works on a std::span of its first lists.size() entries, so the loops over prepared (prepare, query planning, emit) see only this call's lists, as before.
  • Entries past lists.size() keep their storage for the next larger call. Nothing reads them. PreparedList owns no Vulkan objects, so a kept entry holds nothing alive. Their list pointer is cleared until prepare fills it again, so a stale entry can't point at a list the title has since released (a comment next to the span says this).
  • What those idle entries keep is bounded. Each position keeps its own peak, so a large list that moves between positions would be kept once per position (found by @shdann in review). After each prepare, the idle entries may keep at most twice the largest execution seen recently, and at least 1 MiB. The "largest execution" is a peak that loses 1/16 per execution. Above that, the largest idle entries are released first. The alternating one-list / six-list frame keeps its reuse: while the pre pass runs, the main pass's lists are within the bound.

Nothing else changes. prepare still refills every entry it uses (out.commands.assign(n, {})). Over kept storage, that is now a copy-assignment that keeps the vectors' capacity, not a copy construction.

Numbers

Lanterns stage 25 (run_lanterns.py --stage 25, 60 frames, the guest's call-class timers over the 50 measured frames). 6,880 draws, 88 dispatches, 9 lists in 4 ExecuteCommandLists a frame. RTX 5080, Linux, NVIDIA 580.65.06, Wine 11.0, clang-cl 21 + xwin cross-build. Three runs each, base and branch alternating. Base is main 3faac55 with the Lanterns stage 25 guest merged in. The branch adds this change.

The direct queue's main-pass execution waits for copy and compute fences that are signalled later. So its work runs inside a later Signal call, and the queue work per frame is the Signal row plus the two ExecuteCommandLists rows:

Signal (us/frame) ECL copy, compute, direct pre ECL direct main queue work (ms/frame) per draw (us) frame-to-frame median (ms)
base 1 25,327 1,233 337 26.90 3.91 52.70
base 2 23,662 1,054 241 24.96 3.63 48.77
base 3 22,985 1,063 350 24.40 3.55 47.66
branch 1 20,795 41 242 21.08 3.06 45.33
branch 2 20,139 36 317 20.49 2.98 44.80
branch 3 19,688 35 196 19.92 2.90 44.72
mean 25.42 -> 20.50 (-19%) 3.69 -> 2.98 49.7 -> 44.9

Measured again after the second commit (which clears the kept entries' list pointer), in one later session. The pod was busier then (load about 11 to 40, just after a memory shortage), so every row is slower. Base, the first commit and the second commit ran one after another:

queue work (ms/frame) per draw (us) frame-to-frame median (ms)
base 31.55 4.59 51.63
first commit 24.35 3.54 50.27
second commit (3 runs) 24.23, 24.22, 26.10 3.52, 3.52, 3.79 46.88, 47.49, 46.65

The second commit is as fast as the first. Both are 20 to 23% under base in the same session.

After the third commit (the bound on idle entries), branch and base were run alternately in the same session: branch 21.86 and 21.06 ms a frame (3.18 and 3.06 us a draw), base 25.97 ms (3.77 us). The frame-to-frame median was 45.3 ms for the branch and 49.2 ms for base. All three runs passed with the same hash.

The one-list calls (ExecuteCommandLists (copy, compute, direct pre)) drop from about 1.1 ms to 0.04 ms a frame: they no longer free the main pass's lists.

The guest's sampling profiler (--sample-us 500, 300 frames, scale_report.py --samples), samples in gta6rt.exe:

function base branch
detail::Prepared::Prepared(const Prepared&) 346 0
std::vector<VkImageCopy> copy constructor (inside it) 72 0
detail::Prepared::operator=(const Prepared&) (not in top) 40
the whole layer 2,401 1,928 (-20%)

Other open pull requests

Tested

On an RTX 5080, Linux, NVIDIA 580.65.06, Wine 11.0, clang-cl 21 with the xwin SDK. Base and branch builds came from the same build folder.

  • vk_queue_test (native Linux, new check): one direct queue runs 2 lists, then 1, then 2 different lists, so the regrow puts another list at index 0. A part-buffer copy makes a stale entry show. Each execution must run exactly its own lists with their own data: every destination buffer has the list's bytes where that list copies and zeros everywhere else. The lists of one execution read only the upload buffer and write different buffers, so the check needs no barrier between them. Result: 0, 0 and 0 wrong bytes, and also 0 validation errors with LEONIDA_VK_VALIDATION=1.

    • Negative control: with the emit loop over all of prepared_ instead of this call's span, the test fails. With the cleared list pointer it crashes (exit 139) as soon as a stale entry is emitted. Before that pointer was cleared, an earlier version of the check saw 65,280 bytes written by the left-out list.
  • vk_queue_test section 6 (the bound): @shdann's pattern, written as a test. One list of 1,024 four-byte copies sits among empty lists, last in batches that narrow from 32 lists to 1, with the queue idle after each one. The test counts the heap the process holds through operator new and requires the 1-list figure to be at most 4 times the 32-list figure. This branch: 1.30 MB at 32 lists, 3.28 MB at 1 (3.93 MB under LEONIDA_VK_VALIDATION=1, 0 validation errors). On 32eae8d, the head before the bound, the same test fails: 1.30 MB at 32 lists, 32.03 MB at 1.

  • Lanterns stage 25: PASS in all 6 runs and both profiler runs, with the same frame hash (99f8df1bea376593) and every frame identical to frame 1.

  • The Wine ctest set and the GPU tests below ran on the first commit. The second commit only adds the pointer clear and the test, and its gta6rt.exe passed stage 25 (3 runs, same hash).

  • Windows ctest set under Wine (scripts/run_wine_tests.py, 177 tests, LEONIDA_D3D12_SHIM_TESTS=ON): base 131 passed, 12 failed, 34 skipped; branch 132 passed, 10 failed, 35 skipped. The same tests fail in both runs, except two:

    • device_proxy (base: timed out after 120 s; branch: skip, exit 77)
    • loader_tls (base: fail; branch: pass)

    Neither binary was rebuilt by this change (both are older than the change), and three more runs of the same binaries gave pass/skip, pass/skip, then fail/timeout. They are flaky under Wine on this machine. The other 10 failures are the same in base and branch: vkd3d host-comparison mismatches and /dev/dri permissions in the container.

  • scripts/run_gpu_tests.py (Linux build): 170/217 passed, 47 skipped, for both base and branch. Every per-test line is identical except the output paths.

Not covered

  • No native Windows run, and no AMD or Intel GPU.
  • No Vulkan validation run: the validation layer under Wine on this machine is still being looked into, as docs/lanterns.md says.
  • prepare still refills each entry by copy-assignment from a fresh Prepared. That is 40 profiler samples, about 2% of the layer. Resetting entries in place, field by field, would remove most of it, but the field list is what Runtime: a copy's prepared data lives beside the per-command entries #2928 rewrites, so that is left for after Runtime: a copy's prepared data lives beside the per-command entries #2928.
  • The bound counts each entry's outer vectors (commands, draws, queries), not the small vectors inside the entries, and not Runtime: a copy's prepared data lives beside the per-command entries #2928's copies pool once that lands. Entries inside an execution are not bounded, exactly as on main: a large list that moves between positions of equally wide batches is kept at each of them, as before this change.
  • The Wine ctest set and the GPU tests were not run again for the third commit. That commit changes only the queue's trimming and vk_queue_test. vk_queue_test (with validation) and stage 25 were run.

No game files.

AI-assisted (Claude Code).

…ewer lists

VulkanQueue::execute resized prepared_ to the number of lists of each call.
A queue that alternates a one-list call with a many-list call (a title's pre
pass, then its main pass) freed the main pass's PreparedLists on the short
call, and the long call built every entry again by copy (the Prepared copy
constructor, the vectors' storage, the draw pool). prepared_ now only grows,
and an execution works on its first lists.size() entries.

Lanterns stage 25 (6,880 draws a frame, RTX 5080, Wine 11), 3 alternating
runs each: queue work 25.4 -> 20.5 ms a frame, 3.69 -> 2.98 us a draw.

vk_queue_test: a direct queue runs two lists, then one, and the left-out
list must not run again.
…drop their list

The check for a queue that keeps prepared lists between executions now runs
2 lists, then 1, then 2 different lists, so the regrow puts another list at
index 0. Each execution must run exactly its own lists with their own
commands. The lists of one execution read only the upload buffer and write
different buffers, so the check does not depend on a barrier between them.

Entries past the execution's list count are never read, but they still
point at their last list. Their list pointer is now cleared until prepare
fills it again.
@shdann

shdann commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

The queue can retain more memory than its largest submission needs. Each list position retains its own peak command capacity. One large list that moves between positions can therefore occupy the cache many times.

I tested head 32eae8dc on Windows 11 with the RTX 4090 and AMD Radeon iGPU. Each submission contains exactly 1,024 four-byte copies in one list. The other lists are empty. I reduced the batch width from 32 to 1 and placed the populated list last each time. I waited for the queue to go idle after every submission.

Batch width Command storage on head (bytes) With the original resize (bytes)
32 966,656 966,656
16 16,433,152 966,656
1 30,932,992 966,656

Both adapters gave these values with zero Vulkan validation errors. The measurements cover only the capacity of the prepared command vectors. At the last submission the head retains 32 times the storage needed by any single submission in this sequence. This is retained host memory for the queue lifetime.

Please consider a byte budget for inactive entries. It can preserve reuse for the alternating one-list and six-list workload while limiting retention when the command distribution changes.

To reproduce, add this public test accessor to VulkanQueue:

    std::size_t command_bytes_for_test() const {
        std::size_t bytes = 0;
        for (const auto& entry : prepared_)
            bytes += entry.commands.capacity() * sizeof(detail::Prepared);
        return bytes;
    }

Insert this block before the final EXPECT(direct.idle() && compute.idle() && copy.idle()); in runtime/test/vk_queue_test.cpp:

    {
        VulkanQueue q(context, d.queue, d.family, Kind::direct);
        CommandList empty, heavy;
        EXPECT(empty.close());
        for (unsigned i = 0; i < 1024; ++i)
            EXPECT(heavy.copy_buffer({mid_id, i*4, upload_id, i*4, 4}));
        EXPECT(heavy.close());
        for (unsigned width = 32; width > 0; --width) {
            std::vector<const CommandList*> batch(width, &empty);
            batch.back() = &heavy;
            EXPECT(q.execute(batch) == ReplayResult::success);
            EXPECT(q.idle());
            if (width == 32 || width == 16 || width == 1)
                std::printf("width %u command bytes %zu\n", width, q.command_bytes_for_test());
        }
    }

Build with cmake --build E:/Leonida-review-work-build --config RelWithDebInfo --target vk_queue_test. Run vk_queue_test.exe with LEONIDA_VK_VALIDATION=1. For the control, replace the guarded resize with prepared_.resize(lists.size()); and repeat. The PR's original 2/1/2 byte checks also pass on both GPUs.

AI-assisted. Synthetic command lists only.

Each kept PreparedList position kept its own peak storage, so one large list
that moved between positions was kept once per position: shdann measured
1,024 small copies in a batch narrowing from 32 lists to 1 keeping 30.9 MB,
32 times the largest submission (ProjectLeonida#5384).

After each prepare, the entries past the execution's lists may keep at most
twice the largest execution seen recently (a peak that loses 1/16 per
execution), and at least 1 MiB; above that the largest are released first.
The alternating one-list / six-list frame keeps its reuse: the main pass's
lists are within the bound while the pre pass runs.

vk_queue_test section 6 runs that narrowing batch and counts the heap the
process holds: 1.3 MB at 32 lists, 3.3 MB at 1 (32.0 MB on 32eae8d, where
the check fails).

Reported by shdann.
@tedin7

tedin7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @shdann, good catch, and thanks for the clean repro. Each kept position did hold its own peak, so a list that moved around was kept once per position.

7f80464d bounds what the lists a submission doesn't use may keep: twice the largest recent submission, and at least 1 MiB. Above that, the largest are released first. The alternating one-list / six-list frame keeps its reuse.

  • Your narrowing-batch pattern is now section 6 of vk_queue_test, written fresh, with the heap counted through operator new. It holds 1.30 MB at 32 lists and 3.28 MB at 1. On 32eae8dc it held 32.03 MB, and the new check fails there.
  • RTX 5080: 0 validation errors. Stage 25 stays at about 3.1 µs a draw, against 3.8 µs on main.
  • Limit: lists that are in use in the current submission are still not bounded, the same as on main. The description says so.

AI-assisted.

@timbot103

Copy link
Copy Markdown

Tested 7f80464 natively on Windows 11 Pro 26200 (MSVC 14.44.35207, Vulkan SDK 1.4.363.0), merged onto main 3faac55, on an NVIDIA RTX 5080 (616.64) and an AMD Radeon Graphics RDNA2 iGPU (25.10.30.02): pass.

  • vk_queue_test: OK on both GPUs. "2, then 1, then 2 other lists: 0, 0 and 0 wrong bytes".
  • The bound check: "1312389 heap bytes held at 32 lists, 3294683 at 1" on both, a ratio of 2.5, under the 4x limit.
  • main's vk_queue_test: OK on both GPUs, the same three base checks.
  • Not run: Lanterns stage 25, the Wine set, and the negative control.

No game files. AI-assisted (Claude Code).

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed head 7f80464da3.

Build: vcvars64 + Ninja + Vulkan 1.4.363, cmake --build build --target vk_queue_test.

  • .\build\vk_queue_test.exe -> OK on NVIDIA GeForce RTX 5070 Ti; new section prints "2, then 1, then 2 other lists: 0, 0 and 0 wrong bytes"; heavy list: 1312389 heap bytes held at 32 lists, 3294683 at 1 (bound is 4x).
  • Control with main's runtime/src/vulkan_backend.h + this test -> also OK, as expected for a perf change with no main-failure claim.

Notes: prepared_ only grows and the span limits every loop to lists.size(); idle entries have list cleared; trim_kept_lists terminates because idle > budget > 0 implies a non-empty idle entry. The test overrides global operator new but not the aligned form, so over-aligned allocations are uncounted. The claimed ~23% is not reproduced by a committed benchmark.

Verdict: LGTM.

@Hiiva Hiiva left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent native Windows review of 7f80464. No blocking finding in the active-list replay and idle-entry retention scope tested.

Windows 11 x64 build 26200, MSVC 19.44.35228, Windows SDK 10.0.26100, Vulkan SDK/validation 1.4.363.0, RTX 4080 driver 610.62. Both runs used LEONIDA_VK_DEVICE=RTX 4080, LEONIDA_VK_VALIDATION=1 and VK_LOADER_LAYERS_DISABLE=implicit.

Built and ran the unchanged final vk_queue_test with CMake/MSVC RelWithDebInfo. The copy-to-direct buffer/texture readbacks and direct-to-compute readback had zero bad bytes. The 2-list, 1-list, 2-different-list sequence had 0, 0 and 0 wrong bytes, including the untouched-buffer/range checks. All seven queue-picker layouts and the copy/compute rejection controls passed. Final result: exit 0, zero validation errors.

The narrowing-batch regression also distinguishes this revision from the pre-limit implementation:

Production backend Heap counter at 32 lists Heap counter at 1 list Result
Revised 7f80464 1,312,389 bytes 3,294,683 bytes Pass
Pre-limit 32eae8d 1,312,389 bytes 32,041,542 bytes Fails the <= 4x retention assertion

For the negative control, I used the byte-identical final test source, including its operator-new accounting and every byte assertion, with only vulkan_backend.h substituted from exact 32eae8d. All other headers remained at the reviewed head; CMake-generated MSVC optimization/runtime flags matched. The earlier implementation still passed the preceding byte checks and exited 1 at the retention assertion.

Source review also confirms that preparation, query planning and emission use the active span, and trimming touches only inactive PreparedList entries under the queue's existing state synchronization.

These are the test's process operator-new heap counters, not a measurement of total process memory or GPU memory. This checks the reported moving-heavy-list pattern and existing replay controls; it does not establish whole-frame performance or expand the documented bound to nested entry vectors.

No tracked changes, game files or game execution. AI-assisted: yes.

@caltr98

caltr98 commented Nov 23, 2026

Copy link
Copy Markdown

Tested 7f80464 on NVIDIA GeForce RTX 5080 Laptop GPU, driver 621.14, Windows 11 (build 26300), MSVC 14.44, RelWithDebInfo: pass. vk_queue_test (run directly; it is not a CTest test): vk_queue_test: OK, 0 wrong bytes in every case, and the heavy-list line reports 1312389 heap bytes at 32 lists and 3294683 at 1. ctest -R ^vk_queue (vk_queue_query_sync) passes too. AI-assisted.

@searyecheesepeaceful

Copy link
Copy Markdown

Tested 7f80464 on NVIDIA GeForce RTX 4080, driver 617.42: vk_queue_test exits 0 with "vk_queue_test: OK". It prints "2, then 1, then 2 other lists: 0, 0 and 0 wrong bytes" and "a heavy list moving from position 31 to 0: 1312389 heap bytes held at 32 lists, 3294683 at 1". The submit-time saving in the title was not measured.

AI-assisted.

@Jadiac5

Jadiac5 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested 7f80464 on Windows 11, AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32029.2010: pass (one unrelated, existing crash noted)

  • Built the runtime at the head (RelWithDebInfo, Ninja, MSVC 19.44). vk_queue_test.exe (the new checks) passes, also with LEONIDA_VK_VALIDATION=1: no validation errors.
  • ctest on the neighbouring queue tests (d3d12_queue_wait, d3d12_queue_wait_timeout, d3d12_queue_handover, d3d12_multithread, d3d12_vulkan_device) passes. --repeat until-fail:8 -j8 on the queue_wait, handover and multithread tests passes all 8 rounds. Under -j3 with other workers on the GPU, d3d12_queue_wait and d3d12_queue_wait_timeout timed out once. Both pass alone in about 1 s, so that is load, not the PR.
  • d3d12_sparse_queue_family_contract fails with exit 0xC0000005 (access violation) in d3d12_sparse_queue_family_test.exe when run under the API dump layer (check_sparse_queue_family.py). It is not the PR: on the merge base 3faac55 the same script fails 3 of 3 runs with the same exit code, and at the head it failed 2 of 3 runs. The PR does not touch that test or its path.
  • Read the diff (runtime/src/vulkan_backend.h): no bug found. prepared is a span over the first lists.size() entries, so the loops see the same lists as before. Idle entries get list = nullptr, nothing else reads them. trim_kept_lists always ends: each pass zeroes one idle entry, and idle reaches 0, which is below the budget. Its caller sits after prepare and before the early returns that matter, so an error path just skips one trim.
  • Not done: the Lanterns frame-time numbers in the description (needs the game). No test for the peak decay over many executions; the new test covers the bound and the reuse.

AI-assisted (Claude Code).

main (7d71e83) already keeps PreparedList storage from a larger batch with a
grow-only resize and runs only lists.size() entries. Keep that, and keep main's
KHR instance stage pool next to this branch's trim_kept_lists. On top, this
branch still adds what main lacks: the kept entries past lists.size() drop
their dangling list pointer and are bounded by trim_kept_lists (twice the
recent peak, at least 1 MiB).

vk_queue_test: main's 3b (8 then 1 lists, no stale replay) replaces this
branch's section 5, which checked the same thing; main's backlog test stays
section 5; the heap budget check stays as section 6.

Tested on an RTX 5080: vk_queue_test native, also with LEONIDA_VK_VALIDATION=1
(0 errors); without the trim_kept_lists call section 6 fails (34 MB kept at
1 list vs 1.4 MB at 32). clang-cl build under Wine: vk_queue, d3d12_com,
d3d12_multithread, d3d12_queue_wait, d3d12_queue_handover (3 modes),
d3d12_draw, d3d12_bundle pass. tests/test_docs_*.py pass.
@hazben

hazben commented Nov 23, 2026

Copy link
Copy Markdown

Tested 4d86d074 (the merge of main 561b65a8) natively on NVIDIA GeForce RTX 4070 SUPER (Ada), driver 621.14, Windows 11 (build 26200): pass. AI-assisted run, no game files.

  • Build: MSVC 14.44 (19.44.35230), Ninja, RelWithDebInfo, Vulkan SDK 1.4.363.0, the whole runtime (644 steps). No warnings from vulkan_backend.h or vk_queue_test.cpp.
  • vk_queue_test, run directly and through ctest, normally and with LEONIDA_VK_VALIDATION=1 (device: NVIDIA GeForce RTX 4070 SUPER (validation on)): vk_queue_test: OK all four times, and validation errors: 0 in both validation runs. These lines were the same in every run:
    • prepared storage: 8 entries kept, 0 stale bytes
    • a heavy list moving from position 31 to 0: 1386157 heap bytes held at 32 lists, 3515907 at 1 (2.54x, under the test's 4x limit). At 7f80464d, other reports here printed 1312389 and 3294683.
  • Negative control (in the worktree only, not committed): I took runtime/src/vulkan_backend.h back to 561b65a8 and kept this PR's test. Section 6 fails with a heavy list moving from position 31 to 0: 1386157 heap bytes held at 32 lists, 34400878 at 1 and line 379: widest > 0 && narrowest <= 4 * widest. The other sections still pass there (prepared storage: 8 entries kept, 0 stale bytes), so section 6 is the check that tells this PR's header from main's. I then restored the header and rebuilt everything before the ctest runs.
  • Queue and D3D12-on-Vulkan set through ctest: 14/14 passed normally and 14/14 with validation. The set was vk_command_replay, vk_queue, vk_queue_query_sync, d3d12_com, d3d12_multithread, d3d12_queue_wait, d3d12_queue_wait_timeout, d3d12_queue_list_type, d3d12_queue_handover (plus _two_queues and _shared_queue), d3d12_vulkan_device, d3d12_draw and d3d12_bundle. d3d12_multithread printed PASS (2 queues x 32 concurrent submissions + resource churn + shared-texture handoff + multi-fence ALL/ANY; 0 validation errors).
  • Full ctest (248 tests, gameinput disabled): 235 passed, 11 skipped and 1 failed normally. With validation, 236 passed, 10 skipped and 1 failed (vk_sync_validation runs only with validation on). The other skips are shader_library_corpus, the Bink tests, fsr_dispatch, bvh_builder, d3d12_rgb9e5_rtv, d3d12_boot_movie and d3d12_first_light.

Not covered: no frame-time or submit-cost measurement, so the submit-work saving in the title is not checked here. Only one GPU (no AMD or Intel), and no Wine run.

@itaskaev2

Copy link
Copy Markdown

Re-tested the merged head 4d86d074 (with main 561b65a8) natively on Windows 11, NVIDIA GeForce RTX 4080 SUPER, driver 616.92, MSVC 14.51, RelWithDebInfo: pass. AI-assisted (Claude Code), no game files.

  • vk_queue_test: OK, exit 0. The bound line reads a heavy list moving from position 31 to 0: 1386157 heap bytes held at 32 lists, 3515907 at 1, a ratio of 2.5, within the test's 4x. The byte counts are a little higher than the 1312389 / 3294683 reported at 7f80464d, because main's merge grew the entries.
  • vk_queue_test under LEONIDA_VK_VALIDATION=1: exit 0, no validation messages.
  • ctest -R "queue|vk_": 28/28 pass. vk_sync_validation is skipped.
  • Full ctest, 248 tests: 3 fail, and none of them is from this change. d3d12_indirect_dispatch_count (count 0 update 1: host 6/10, layer 0/0) and d3d12_indirect_rt (RayQueryKHR ARRAY expected hit=1 miss=0, got hit=0 miss=0) fail the same way on plain main 561b65a8 on this machine. xbox_present also crashes on main here.

The submit-time saving in the title was not measured.

@timbot103

Copy link
Copy Markdown

Re-tested the new head 4d86d07 (it merges main 561b65a into the branch) natively on Windows 11 Pro 26200 (MSVC 14.44.35207, Vulkan SDK 1.4.363.0), on an NVIDIA RTX 5080 (616.64) and an AMD Radeon Graphics RDNA2 iGPU (25.10.30.02): vk_queue_test OK on both, as at 7f80464.

  • "2, then 1, then 2 other lists: 0, 0 and 0 wrong bytes"
  • bound: "1386157 heap bytes held at 32 lists, 3515907 at 1" on both (2.5x, under the 4x limit)

No game files. AI-assisted (Claude Code).

@tunczzz

tunczzz commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested 4d86d074 (merge base 561b65a8) on Windows 11 10.0.26300 with an NVIDIA GeForce RTX 5070 Ti (Blackwell, subgroup 32..32), driver 616.56. Result: pass (no failure that main doesn't have).

Not run: other GPUs/vendors, Linux, anything that needs game files. No game files.

AI-assisted (Claude Code).

Raxstreams added a commit to Raxstreams/Leonida that referenced this pull request Nov 23, 2026
…ProjectLeonida#5182 ProjectLeonida#5215 ProjectLeonida#5281 ProjectLeonida#5310 ProjectLeonida#5351 ProjectLeonida#5447 ProjectLeonida#5068 ProjectLeonida#5166 ProjectLeonida#5277 ProjectLeonida#5282 ProjectLeonida#5475 ProjectLeonida#5158 ProjectLeonida#5183 ProjectLeonida#5200 ProjectLeonida#5384 ProjectLeonida#5427 ProjectLeonida#5466 ProjectLeonida#5471 ProjectLeonida#5365 ProjectLeonida#5382 ProjectLeonida#5405

ProjectLeonida#8919 fork integration. Each parent after the first is an exact reviewed PR head.

ProjectLeonida#5153 88cf9ac ProjectLeonida#5153 (comment)
ProjectLeonida#5157 7d40e36 ProjectLeonida#5157 (comment)
ProjectLeonida#5182 4996abf ProjectLeonida#5182 (review)
ProjectLeonida#5215 d3813da ProjectLeonida#5215 (comment)
ProjectLeonida#5281 c7479ca ProjectLeonida#5281 (comment)
ProjectLeonida#5310 4a92a11 ProjectLeonida#5310 (comment)
ProjectLeonida#5351 d323535 ProjectLeonida#5351 (comment)
ProjectLeonida#5447 3ea2012 ProjectLeonida#5447 (comment)
ProjectLeonida#5068 c677645 ProjectLeonida#5068 (comment)
ProjectLeonida#5166 f38610b ProjectLeonida#5166 (comment)
ProjectLeonida#5277 1890d03 ProjectLeonida#5277 (comment)
ProjectLeonida#5282 e720a87 ProjectLeonida#5282 (comment)
ProjectLeonida#5475 efe94cc ProjectLeonida#5475 (comment)
ProjectLeonida#5158 cd6149d ProjectLeonida#5158 (comment)
ProjectLeonida#5183 411af87 ProjectLeonida#5183 (comment)
ProjectLeonida#5200 8b3e1f6 ProjectLeonida#5200 (comment)
ProjectLeonida#5384 4d86d07 ProjectLeonida#5384 (comment)
ProjectLeonida#5427 18a1ef2 ProjectLeonida#5427 (comment)
ProjectLeonida#5466 59a92c8 ProjectLeonida#5466 (comment)
ProjectLeonida#5471 c85e97a ProjectLeonida#5471 (comment)
ProjectLeonida#5365 24da2a0 ProjectLeonida#5365 (comment)
ProjectLeonida#5382 4ce3ce2 ProjectLeonida#5382 (comment)
ProjectLeonida#5405 f29b3eb ProjectLeonida#5405 (comment)

AI-assisted integration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.