vulkan: read the retirement records under their own lock (RT-RETIRE-TICKET-LOCK) #2402

Closed
wavehs wants to merge 1 commit from upstream-pr/2402 into main
wavehs commented 2026-11-26 19:54:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by wavehs on 2026-11-26T19:54:52Z.


Claimed in the coordination issue as: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7201897573
(follow-up to DadaCap's finding: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7201692029)

Depends on: none.

What and why

VulkanContext::completed_retire_ticket() and wait_retire_ticket() read retire_tickets_ under submit_mutex_, so a caller that only asks what retired waits behind whoever holds that lock — a queue submission, or a vkDeviceWaitIdle under it. That is the hop DadaCap described: the held-work releaser inside a gate Signal and the progress watch both want the completed ticket and neither needs to submit.

retire_tickets_ now has its own innermost retire_mutex_:

  • record_submit_locked and retire_queue_idle_locked take submit_mutex_ -> retire_mutex_;
  • completed_retire_ticket and wait_retire_ticket take retire_mutex_ alone; the wait_submitted_locked snapshot takes it under the submit_mutex_ its caller already holds;
  • nothing takes retire_mutex_ before submit_mutex_, so the order is unchanged everywhere else;
  • poll_retirement_locked try-locks retire_mutex_ on purpose: a query already in progress watches the same timelines, and waiting for it while holding the submit lock is what this change removes.

Queue teardown is still safe: it marks the queue's entries idle under retire_mutex_ (via retire_queue_idle_locked) before destroying the timeline semaphore, so an in-flight query either finishes first or is skipped because the entry is idle.

Test

New CPU-only ctest retire_ticket_lock (runtime/test/retire_ticket_lock_test.cpp): one thread holds context.submit_mutex() for 500 ms, the main thread calls completed_retire_ticket() and must get ticket 0 in under 200 ms.

=== main 2d43417d4 (only runtime/src/vulkan_backend.h reverted, same build directory)
completed_retire_ticket returned 505ms after a submit lock was held (ticket 0)
line 55: waited < 200
NEG_EXIT=1

=== with the change
completed_retire_ticket returned 0ms after a submit lock was held (ticket 0)
retire_ticket_lock_test: passed
POS_EXIT=0

Tested

macOS 27.2.1 arm64 (Apple clang, CMake/Ninja, RelWithDebInfo), portable runtime build, no GPU and no game files:

  • ctest after a full build: 114/114 passed (63-66 s). retire_tickets and replay_pipeline_compile_unlock are in that run; submit_mutex is Windows-only and is not part of the portable set.
  • python3 -I tests/test_ctest_registration.py -> 6 tests, OK.
  • python3 -I scripts/check_no_game_data.py on the four changed files -> exit 0.
  • python3 -m compileall -q make_game.py tools tests -> OK.

Not built here: the Windows runtime (MSVC) and the title. The change is portable C++17 and the new target links Vulkan::Headers Threads::Threads like its neighbours, but the Windows build should confirm it.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5516335836 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2402). Originally posted by [wavehs](https://github.com/wavehs) on 2026-11-26T19:54:52Z. --- Claimed in the coordination issue as: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7201897573 (follow-up to DadaCap's finding: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7201692029) Depends on: none. ### What and why `VulkanContext::completed_retire_ticket()` and `wait_retire_ticket()` read `retire_tickets_` under `submit_mutex_`, so a caller that only asks what retired waits behind whoever holds that lock — a queue submission, or a `vkDeviceWaitIdle` under it. That is the hop DadaCap described: the held-work releaser inside a gate `Signal` and the progress watch both want the completed ticket and neither needs to submit. `retire_tickets_` now has its own innermost `retire_mutex_`: - `record_submit_locked` and `retire_queue_idle_locked` take `submit_mutex_ -> retire_mutex_`; - `completed_retire_ticket` and `wait_retire_ticket` take `retire_mutex_` alone; the `wait_submitted_locked` snapshot takes it under the `submit_mutex_` its caller already holds; - nothing takes `retire_mutex_` before `submit_mutex_`, so the order is unchanged everywhere else; - `poll_retirement_locked` try-locks `retire_mutex_` on purpose: a query already in progress watches the same timelines, and waiting for it while holding the submit lock is what this change removes. Queue teardown is still safe: it marks the queue's entries idle under `retire_mutex_` (via `retire_queue_idle_locked`) before destroying the timeline semaphore, so an in-flight query either finishes first or is skipped because the entry is idle. ### Test New CPU-only ctest `retire_ticket_lock` (`runtime/test/retire_ticket_lock_test.cpp`): one thread holds `context.submit_mutex()` for 500 ms, the main thread calls `completed_retire_ticket()` and must get ticket 0 in under 200 ms. ```text === main 2d43417d4 (only runtime/src/vulkan_backend.h reverted, same build directory) completed_retire_ticket returned 505ms after a submit lock was held (ticket 0) line 55: waited < 200 NEG_EXIT=1 === with the change completed_retire_ticket returned 0ms after a submit lock was held (ticket 0) retire_ticket_lock_test: passed POS_EXIT=0 ``` ### Tested macOS 27.2.1 arm64 (Apple clang, CMake/Ninja, RelWithDebInfo), portable runtime build, no GPU and no game files: - `ctest` after a full build: **114/114 passed** (63-66 s). `retire_tickets` and `replay_pipeline_compile_unlock` are in that run; `submit_mutex` is Windows-only and is not part of the portable set. - `python3 -I tests/test_ctest_registration.py` -> 6 tests, OK. - `python3 -I scripts/check_no_game_data.py` on the four changed files -> exit 0. - `python3 -m compileall -q make_game.py tools tests` -> OK. Not built here: the Windows runtime (MSVC) and the title. The change is portable C++17 and the new target links `Vulkan::Headers Threads::Threads` like its neighbours, but the Windows build should confirm it. AI-assisted.
ecox982745 commented 2026-11-26 20:17:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ecox982745 on 2026-11-26T20:17:56Z.


Native Windows 11 x64, MSVC 19.44 Release: gta6rt.exe built at PR head 35eb7b4a40. All four focused CPU tests passed, including the Windows-only submit_mutex, plus retire_ticket_lock, retire_tickets and replay_pipeline_compile_unlock.

I also checked the change with two outstanding submissions on an RTX 4090 (driver 616.64). The same synthetic probe ran three times on the PR and three times on its parent 2d43417d49. Each submission waited for its own host gate value and signaled a real Vulkan timeline. The reader ran on a separate thread while the main thread held context.submit_mutex(). I waited for the GPU counter to reach each released value independently.

GPU timeline state Parent PR
Neither submission complete Poll returned 0 after unlock Poll returned 0 while locked
First complete, second still gated Poll returned 1 after unlock Poll returned 1 while locked
Waiting for ticket 2, then releasing its gate Wait returned 2 after unlock Wait stayed pending before the signal, then returned 2 while locked

All three runs agreed on each revision. On the parent, each reader remained blocked throughout the 400 ms observation window. This covers both the query and wait paths with live semaphore values. The stock vk_queue_test also passed on the PR: copy-to-direct and direct-to-compute readbacks had zero bad bytes. The queue test and all six probe runs recorded zero Vulkan validation errors. The probe uses synthetic submissions and measures this lock dependency only.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7202509181 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2402#issuecomment-7202509181). Originally posted by [ecox982745](https://github.com/ecox982745) on 2026-11-26T20:17:56Z. --- Native Windows 11 x64, MSVC 19.44 Release: `gta6rt.exe` built at PR head `35eb7b4a40`. All four focused CPU tests passed, including the Windows-only `submit_mutex`, plus `retire_ticket_lock`, `retire_tickets` and `replay_pipeline_compile_unlock`. I also checked the change with two outstanding submissions on an RTX 4090 (driver 616.64). The same synthetic probe ran three times on the PR and three times on its parent `2d43417d49`. Each submission waited for its own host gate value and signaled a real Vulkan timeline. The reader ran on a separate thread while the main thread held `context.submit_mutex()`. I waited for the GPU counter to reach each released value independently. | GPU timeline state | Parent | PR | | --- | --- | --- | | Neither submission complete | Poll returned 0 after unlock | Poll returned 0 while locked | | First complete, second still gated | Poll returned 1 after unlock | Poll returned 1 while locked | | Waiting for ticket 2, then releasing its gate | Wait returned 2 after unlock | Wait stayed pending before the signal, then returned 2 while locked | All three runs agreed on each revision. On the parent, each reader remained blocked throughout the 400 ms observation window. This covers both the query and wait paths with live semaphore values. The stock `vk_queue_test` also passed on the PR: copy-to-direct and direct-to-compute readbacks had zero bad bytes. The queue test and all six probe runs recorded zero Vulkan validation errors. The probe uses synthetic submissions and measures this lock dependency only.
lixonik commented 2026-11-26 20:43:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-26T20:43:01Z.

Code review location: runtime/src/vulkan_backend.h; line 2242

@@ -2227,7 +2235,11 @@ class VulkanContext {
         return framebuffer;
     }
 
+    // Called with submit_mutex_ held. Never waits for retire_mutex_: a query already in progress watches the same
+    // timelines, and waiting for it here would keep the submit lock, and every submission, behind a stuck query.
     std::uint64_t poll_retirement_locked(VkResult& result) {
+        std::unique_lock lock(retire_mutex_, std::try_to_lock);
+        if (!lock.owns_lock()) return 0;      // report no progress this tick; the next one reads it

[P2] Keep a skipped retirement poll out of the hang watchdog's pending samples. With a fake Vulkan counter held by completed_retire_ticket(), this branch returned 0 with VK_SUCCESS while submitted_retire_ticket() was 1. The in-flight query then returned completed ticket 1. The watch loop classifies that unmeasured sample as pending; feeding it two such samples 15 seconds apart triggered SubmissionProgressWatch's stall result in the focused test. Under sustained contention the same classification also feeds the opt-in LEONIDA_HANG_EXIT_S process-exit path. Can the poll return an explicit skipped result so the watch loop only advances its pending timer on a real measurement?

<!-- greyfinch-sync:ubiquitarianism/leonida:review-comment:4713211771 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2402#discussion_r4713211771). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-26T20:43:01Z. **Code review location:** `runtime/src/vulkan_backend.h`; line 2242 ~~~~diff @@ -2227,7 +2235,11 @@ class VulkanContext { return framebuffer; } + // Called with submit_mutex_ held. Never waits for retire_mutex_: a query already in progress watches the same + // timelines, and waiting for it here would keep the submit lock, and every submission, behind a stuck query. std::uint64_t poll_retirement_locked(VkResult& result) { + std::unique_lock lock(retire_mutex_, std::try_to_lock); + if (!lock.owns_lock()) return 0; // report no progress this tick; the next one reads it ~~~~ --- [P2] Keep a skipped retirement poll out of the hang watchdog's pending samples. With a fake Vulkan counter held by `completed_retire_ticket()`, this branch returned 0 with `VK_SUCCESS` while `submitted_retire_ticket()` was 1. The in-flight query then returned completed ticket 1. The watch loop classifies that unmeasured sample as `pending`; feeding it two such samples 15 seconds apart triggered `SubmissionProgressWatch`'s stall result in the focused test. Under sustained contention the same classification also feeds the opt-in `LEONIDA_HANG_EXIT_S` process-exit path. Can the poll return an explicit skipped result so the watch loop only advances its pending timer on a real measurement?
lixonik commented 2026-11-26 20:43:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-26T20:43:01Z.

Review: COMMENTED


On Windows 11 with MSVC, retire_ticket_lock, retire_tickets, submit_mutex and replay_pipeline_compile_unlock all passed. The new test measured 0 ms for the retirement read with the submit lock held. A separate synthetic counter test found a watchdog regression on the try-lock path. Details inline.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6080300235 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2402#pullrequestreview-6080300235). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-26T20:43:01Z. **Review:** COMMENTED --- On Windows 11 with MSVC, `retire_ticket_lock`, `retire_tickets`, `submit_mutex` and `replay_pipeline_compile_unlock` all passed. The new test measured 0 ms for the retirement read with the submit lock held. A separate synthetic counter test found a watchdog regression on the try-lock path. Details inline. AI-assisted.
timbot103 commented 2026-11-27 12:09:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by timbot103 on 2026-11-27T12:09:33Z.


Independently checked head 35eb7b4a4 on Windows 11 Pro 26200, MSVC 2022 (19.44.35230.0, RelWithDebInfo, Ninja), Vulkan SDK 1.4.363.0, WSL llvm-mc 21.1.8, no game files.

Local build & runtime verification:

  • Clean MSVC build of retire_ticket_lock_test, retire_tickets_test, and d3d12_m4_compute_test (zero new warnings in PR files).
  • retire_ticket_lock_test: 5/5 consecutive runs PASS (completed_retire_ticket returned 0ms after a submit lock was held).
  • retire_tickets_test: PASS (out-of-order queue completion kept the retirement prefix safe).
  • d3d12_m4_compute_test (LEONIDA_VK_VALIDATION=1): 1924/1924 words matched (error 0) on both NVIDIA GeForce RTX 5080 (616.64) and AMD Radeon(TM) Graphics (25.10.30.02), 0 validation errors.

Static lock & lifetime findings on 35eb7b4a4:

  • Lock ordering checks out: all six retire_tickets_ accesses hold retire_mutex_, and every nested path acquires submit_mutex_ before retire_mutex_ (no AB-BA inversion found).
  • 1. Ticket N is published before its retirement record exists (runtime/src/vulkan_backend.h:2058-2064, 1992-2013; caller d3d12_vulkan_device.cpp:5051-5064):
    • The submitter publishes ticket N via fetch_add before acquiring retire_mutex_ to insert the retirement record. If N-1 has already retired, a concurrent waiter can read N, snapshot an empty retire_tickets_ list, skip vkWaitSemaphores, and return N-1 while submission N is still outstanding on the GPU (the old shared submit_mutex_ prevented this window; console-heap teardown ignores the returned prefix before destroying its buffer).
    • Fix: publish ticket N under retire_mutex_ after installing its record (and add a test holding N's timeline unsignaled to prove wait_retire_ticket(N) cannot return early).
  • 2. Failed queue-idle teardown destroys semaphores without retire_mutex_ (runtime/src/vulkan_backend.h:2024-2033, 2631-2645, 2661-2665, 1993-2012):
    • On a failed queue-idle path, teardown skips retire_mutex_ before destroying the semaphore even though a counter query already inside retire_mutex_ can still be reading it. (Separately, on successful idle, wait_retire_ticket copies raw semaphore handles and waits outside the lock, which is an inherited teardown lifetime window.) Synchronizing failed teardown with in-flight queries and pinning timelines across waits closes both.
  • 3. Contended try_lock in the progress sample can feed a false hang exit (runtime/src/vulkan_backend.h:2240-2248, 2281-2286, 2336-2353):
    • A missed retire_mutex_ try-lock returns 0 with VK_SUCCESS, which the watchdog treats as pending unretired work after any submission; repeated misses can trip LEONIDA_HANG_EXIT_S on an idle GPU. Representing an unavailable sample explicitly so it does not advance the hang timer avoids false triggers.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7217907773 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2402#issuecomment-7217907773). Originally posted by [timbot103](https://github.com/timbot103) on 2026-11-27T12:09:33Z. --- Independently checked head `35eb7b4a4` on Windows 11 Pro 26200, MSVC 2022 (`19.44.35230.0`, RelWithDebInfo, Ninja), Vulkan SDK `1.4.363.0`, WSL `llvm-mc 21.1.8`, no game files. **Local build & runtime verification:** - Clean MSVC build of `retire_ticket_lock_test`, `retire_tickets_test`, and `d3d12_m4_compute_test` (zero new warnings in PR files). - `retire_ticket_lock_test`: **5/5 consecutive runs PASS** (`completed_retire_ticket returned 0ms after a submit lock was held`). - `retire_tickets_test`: **PASS** (`out-of-order queue completion kept the retirement prefix safe`). - `d3d12_m4_compute_test` (`LEONIDA_VK_VALIDATION=1`): **1924/1924 words matched (error 0)** on both **NVIDIA GeForce RTX 5080** (`616.64`) and **AMD Radeon(TM) Graphics** (`25.10.30.02`), 0 validation errors. **Static lock & lifetime findings on `35eb7b4a4`:** - **Lock ordering checks out:** all six `retire_tickets_` accesses hold `retire_mutex_`, and every nested path acquires `submit_mutex_` before `retire_mutex_` (no AB-BA inversion found). - **1. Ticket `N` is published before its retirement record exists (`runtime/src/vulkan_backend.h:2058-2064, 1992-2013`; caller `d3d12_vulkan_device.cpp:5051-5064`):** - The submitter publishes ticket `N` via `fetch_add` before acquiring `retire_mutex_` to insert the retirement record. If `N-1` has already retired, a concurrent waiter can read `N`, snapshot an empty `retire_tickets_` list, skip `vkWaitSemaphores`, and return `N-1` while submission `N` is still outstanding on the GPU (the old shared `submit_mutex_` prevented this window; console-heap teardown ignores the returned prefix before destroying its buffer). - **Fix:** publish ticket `N` under `retire_mutex_` after installing its record (and add a test holding `N`'s timeline unsignaled to prove `wait_retire_ticket(N)` cannot return early). - **2. Failed queue-idle teardown destroys semaphores without `retire_mutex_` (`runtime/src/vulkan_backend.h:2024-2033, 2631-2645, 2661-2665, 1993-2012`):** - On a failed queue-idle path, teardown skips `retire_mutex_` before destroying the semaphore even though a counter query already inside `retire_mutex_` can still be reading it. (Separately, on successful idle, `wait_retire_ticket` copies raw semaphore handles and waits outside the lock, which is an inherited teardown lifetime window.) Synchronizing failed teardown with in-flight queries and pinning timelines across waits closes both. - **3. Contended `try_lock` in the progress sample can feed a false hang exit (`runtime/src/vulkan_backend.h:2240-2248, 2281-2286, 2336-2353`):** - A missed `retire_mutex_` try-lock returns `0` with `VK_SUCCESS`, which the watchdog treats as pending unretired work after any submission; repeated misses can trip `LEONIDA_HANG_EXIT_S` on an idle GPU. Representing an unavailable sample explicitly so it does not advance the hang timer avoids false triggers. AI-assisted.
djrolfes commented 2026-11-27 19:27:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-27T19:27:49Z.


Single-variable A/B game-run check on Linux + Wine 11.22 + NVIDIA RTX 3070 Ti 8 GB (Profile M), per #2464. Both arms started from the exact same byte-for-byte warm cache and overlay snapshot (cloned post-cold-baseline), with identical recipe and hands-free input script (0 env differences apart from the per-run capture folder; runtime_sha256 differs as expected). Numbers independently checked from raw logs and resource samples by a second agent (codex / gpt-6-luna) and cross-verified before posting. PROVISIONAL (n=1 per side).

RUN 2402-A | 2026-11-27 | djrolfes | AI-assisted: Antigravity (Gemini 4 Neon) + Codex (gpt-6-luna verification)
BASE:        main 43a9d562d + none | shaders: main ec91d695c local translation (wave64 emulated; no overlays)
MACHINE:     RTX 3070 Ti 8 GB, desktop, display attached | NVIDIA 620.73.04 | Arch Linux 7.2.15 + Wine 11.22 | Ryzen 7 5800X | 31 GiB RAM
RECIPE:      documented ("Linux, Proton, NVIDIA") + DEVIATIONS: --run mode (no LEONIDA_XMEM_BACKING_DIR), LEONIDA_ARENA_MB=1024, LEONIDA_GEOMETRY_MB=2048, LEONIDA_ASYNC_PIPELINES=1, LEONIDA_ASYNC_MIN_BYTES=2097152, LEONIDA_ASYNC_MIN_BYTES_GRAPHICS=0 (no skip list), LEONIDA_COMPUTE_WARMUP=0, LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000, LEONIDA_DEVICE_TYPE=6, LEONIDA_MAP_READBACK=1, LEONIDA_DEVICE_FAULT=1, LEONIDA_STARTUP_CACHE_CHECKPOINTS=1, LEONIDA_TITLE_WATCHDOG=0 + local KICK, LEONIDA_TITLE_HUD=1, LEONIDA_KEYBOARD_PAD=1, hands-free LEONIDA_INPUT_SCRIPT, 600 s limit; RT_AS / HOST_IMAGE_COPY / TITLE_WINDOWS_MB / COMPILE_GATE at main defaults | precompile: no
OS/DRIVER:   default Linux NVIDIA driver settings; Wine 11.22 Wayland driver; isolated network namespace; silent workspace
TARGET:      stalls / frame-rate behavior through menu -> story load -> world load | PREDICTED (written before the run): control arm (same run as #2464 baseline C2)
MEASURED:    menu -> story load -> world load (did not reach play); PresentX ok 4,515, failed 0; 9,042 submissions; submit-phases 0.39-85.15 frames/s across 30 windows (final 1.07 frames/s); 1 submit-lock held warning; 0 list-value gate timeouts, 0 releaser stalls, 0 deadlocks; 2 untranslated compute shader refusals; 16 small-BAR (246 MiB heap 2) vkAllocateMemory fallbacks (0 fatal); min available RAM 7.95 GiB; max GPU memory 7,173 MiB | duration 174.33 s
END:         process crash (Wine unhandled exception, exit 126; device loss: no)
CACHES:      warm (post-C1 baseline snapshot) | RUN 1 of 1, Arm A
INSTRUMENTS: device fault 1, resource sampling (2 s), frame capture every 600 frames (local only), startup cache checkpoints
VERDICT:     control arm (same run as #2464 baseline C2)
RUN 2402-B | 2026-11-27 | djrolfes | AI-assisted: Antigravity (Gemini 4 Neon) + Codex (gpt-6-luna verification)
BASE:        main 43a9d562d + #2402 (35eb7b4a4, applied cleanly) | shaders: main ec91d695c local translation (wave64 emulated; no overlays)
MACHINE:     RTX 3070 Ti 8 GB, desktop, display attached | NVIDIA 620.73.04 | Arch Linux 7.2.15 + Wine 11.22 | Ryzen 7 5800X | 31 GiB RAM
RECIPE:      same as 2402-A (0 setting differences) | precompile: no
OS/DRIVER:   same as 2402-A
TARGET:      stalls / frame-rate behavior with #2402 | PREDICTED (written before the run): 0 stalls, 0 device losses, comparable submission/frame rates through menu -> story load -> world load (~155-190 s, same clean-main end class)
MEASURED:    menu -> story load -> world load (did not reach play); PresentX ok 3,295, failed 0; 6,602 submissions; submit-phases 0.00-86.57 frames/s across 27 windows (penultimate window 6.75 frames/s; final world-entry exception window 0.00 frames/s); 1 submit-lock held warning (2,482 ms); 0 list-value gate timeouts, 0 releaser stalls, 0 deadlocks; 2 untranslated compute shader refusals; 16 small-BAR (246 MiB heap 2) vkAllocateMemory fallbacks (0 fatal); min available RAM 6.30 GiB; max GPU memory 7,804 MiB | duration 160.18 s
END:         process crash (Wine unhandled exception, exit 126; device loss: no)
CACHES:      warm (byte-identical clone of post-C1 baseline snapshot) | RUN 1 of 1, Arm B
INSTRUMENTS: same as 2402-A
VERDICT:     prediction held through world load (0 deadlocks, 0 releaser stalls, 0 device losses, comparable frame rates: max 86.57 vs 85.15 frames/s, story-load windows 5.50-8.15 frames/s vs 5.06-8.98 frames/s)

Reading:

  • MEASURED (n=1 per side, PROVISIONAL): Through menu -> story load -> world load on RTX 3070 Ti 8 GB (NVIDIA 620.73.04, Linux + Wine 11.22), PR #2402 introduced 0 deadlocks, 0 releaser stalls, 0 list-value gate timeouts, and 0 device losses, with comparable frame rates (peak 86.57 vs 85.15 frames/s; story-load windows 5.50–8.15 vs 5.06–8.98 frames/s) and the same clean-main missing-shader world-entry end class (160.18 s B vs 174.33 s A).
  • NOT SHOWN: Multi-minute play past world entry (clean main shaders stop at world entry before play; long-run soak in play still needs a run past world entry).

AI-assisted: Antigravity (Gemini 4 Neon) + Codex (gpt-6-luna independent verification); no game data.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7226551459 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2402#issuecomment-7226551459). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-11-27T19:27:49Z. --- Single-variable A/B game-run check on Linux + Wine 11.22 + NVIDIA RTX 3070 Ti 8 GB (Profile M), per #2464. Both arms started from the exact same byte-for-byte warm cache and overlay snapshot (cloned post-cold-baseline), with identical recipe and hands-free input script (`0` env differences apart from the per-run capture folder; `runtime_sha256` differs as expected). Numbers independently checked from raw logs and resource samples by a second agent (`codex` / `gpt-6-luna`) and cross-verified before posting. `PROVISIONAL (n=1 per side)`. ```text RUN 2402-A | 2026-11-27 | djrolfes | AI-assisted: Antigravity (Gemini 4 Neon) + Codex (gpt-6-luna verification) BASE: main 43a9d562d + none | shaders: main ec91d695c local translation (wave64 emulated; no overlays) MACHINE: RTX 3070 Ti 8 GB, desktop, display attached | NVIDIA 620.73.04 | Arch Linux 7.2.15 + Wine 11.22 | Ryzen 7 5800X | 31 GiB RAM RECIPE: documented ("Linux, Proton, NVIDIA") + DEVIATIONS: --run mode (no LEONIDA_XMEM_BACKING_DIR), LEONIDA_ARENA_MB=1024, LEONIDA_GEOMETRY_MB=2048, LEONIDA_ASYNC_PIPELINES=1, LEONIDA_ASYNC_MIN_BYTES=2097152, LEONIDA_ASYNC_MIN_BYTES_GRAPHICS=0 (no skip list), LEONIDA_COMPUTE_WARMUP=0, LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000, LEONIDA_DEVICE_TYPE=6, LEONIDA_MAP_READBACK=1, LEONIDA_DEVICE_FAULT=1, LEONIDA_STARTUP_CACHE_CHECKPOINTS=1, LEONIDA_TITLE_WATCHDOG=0 + local KICK, LEONIDA_TITLE_HUD=1, LEONIDA_KEYBOARD_PAD=1, hands-free LEONIDA_INPUT_SCRIPT, 600 s limit; RT_AS / HOST_IMAGE_COPY / TITLE_WINDOWS_MB / COMPILE_GATE at main defaults | precompile: no OS/DRIVER: default Linux NVIDIA driver settings; Wine 11.22 Wayland driver; isolated network namespace; silent workspace TARGET: stalls / frame-rate behavior through menu -> story load -> world load | PREDICTED (written before the run): control arm (same run as #2464 baseline C2) MEASURED: menu -> story load -> world load (did not reach play); PresentX ok 4,515, failed 0; 9,042 submissions; submit-phases 0.39-85.15 frames/s across 30 windows (final 1.07 frames/s); 1 submit-lock held warning; 0 list-value gate timeouts, 0 releaser stalls, 0 deadlocks; 2 untranslated compute shader refusals; 16 small-BAR (246 MiB heap 2) vkAllocateMemory fallbacks (0 fatal); min available RAM 7.95 GiB; max GPU memory 7,173 MiB | duration 174.33 s END: process crash (Wine unhandled exception, exit 126; device loss: no) CACHES: warm (post-C1 baseline snapshot) | RUN 1 of 1, Arm A INSTRUMENTS: device fault 1, resource sampling (2 s), frame capture every 600 frames (local only), startup cache checkpoints VERDICT: control arm (same run as #2464 baseline C2) ``` ```text RUN 2402-B | 2026-11-27 | djrolfes | AI-assisted: Antigravity (Gemini 4 Neon) + Codex (gpt-6-luna verification) BASE: main 43a9d562d + #2402 (35eb7b4a4, applied cleanly) | shaders: main ec91d695c local translation (wave64 emulated; no overlays) MACHINE: RTX 3070 Ti 8 GB, desktop, display attached | NVIDIA 620.73.04 | Arch Linux 7.2.15 + Wine 11.22 | Ryzen 7 5800X | 31 GiB RAM RECIPE: same as 2402-A (0 setting differences) | precompile: no OS/DRIVER: same as 2402-A TARGET: stalls / frame-rate behavior with #2402 | PREDICTED (written before the run): 0 stalls, 0 device losses, comparable submission/frame rates through menu -> story load -> world load (~155-190 s, same clean-main end class) MEASURED: menu -> story load -> world load (did not reach play); PresentX ok 3,295, failed 0; 6,602 submissions; submit-phases 0.00-86.57 frames/s across 27 windows (penultimate window 6.75 frames/s; final world-entry exception window 0.00 frames/s); 1 submit-lock held warning (2,482 ms); 0 list-value gate timeouts, 0 releaser stalls, 0 deadlocks; 2 untranslated compute shader refusals; 16 small-BAR (246 MiB heap 2) vkAllocateMemory fallbacks (0 fatal); min available RAM 6.30 GiB; max GPU memory 7,804 MiB | duration 160.18 s END: process crash (Wine unhandled exception, exit 126; device loss: no) CACHES: warm (byte-identical clone of post-C1 baseline snapshot) | RUN 1 of 1, Arm B INSTRUMENTS: same as 2402-A VERDICT: prediction held through world load (0 deadlocks, 0 releaser stalls, 0 device losses, comparable frame rates: max 86.57 vs 85.15 frames/s, story-load windows 5.50-8.15 frames/s vs 5.06-8.98 frames/s) ``` Reading: - **MEASURED (`n=1` per side, PROVISIONAL):** Through `menu -> story load -> world load` on RTX 3070 Ti 8 GB (`NVIDIA 620.73.04`, Linux + Wine 11.22), PR #2402 introduced **0** deadlocks, **0** releaser stalls, **0** list-value gate timeouts, and **0** device losses, with comparable frame rates (peak `86.57` vs `85.15` frames/s; story-load windows `5.50–8.15` vs `5.06–8.98` frames/s) and the same clean-`main` missing-shader world-entry end class (`160.18 s` B vs `174.33 s` A). - **NOT SHOWN:** Multi-minute `play` past world entry (clean `main` shaders stop at world entry before `play`; long-run soak in `play` still needs a run past world entry). AI-assisted: Antigravity (Gemini 4 Neon) + Codex (`gpt-6-luna` independent verification); no game data.
zmasi commented 2026-11-29 00:31:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T00:31:04Z.


#2402 | head 35eb7b4a40 (merged cleanly with main 829530dbd0 — no conflicts on current main) | ctest --test-dir runtime/build -C RelWithDebInfo -R "^(retire_ticket_lock|retire_tickets|submit_mutex|replay_pipeline_compile_unlock|vk_queue|d3d12_bindless_churn|d3d12_compute)$" --output-on-failure (LEONIDA_VK_VALIDATION=1) | red on main: building retire_ticket_lock_test against main's runtime/src/vulkan_backend.h fails retire_ticket_lock at line 55: waited < 200 (completed_retire_ticket returned 515ms after a submit lock was held) | green on PR+main: 7/7 CTests (retire_ticket_lock — 0ms after a submit lock was held, retire_tickets, submit_mutex, replay_pipeline_compile_unlock, vk_queue, d3d12_bindless_churn exercising release_retired(context.completed_retire_ticket()) across 96 direct+compute frames with 0 vkDeviceWaitIdle, and d3d12_compute) pass in 45.97 s on RTX 3090 with 0 Khronos validation errors (10/10 test_ctest_registration.py + test_text_write_line_endings.py OK, check_no_game_data.py 0 violations; timbot103's static note on moving submitted_ticket_.fetch_add inside retire_mutex_ in record_submit_locked still applies at head 35eb7b4a40) | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248167119 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2402#issuecomment-7248167119). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-29T00:31:04Z. --- #2402 | head 35eb7b4a4071897c5337ba67c428918b15c08ed1 (merged cleanly with main 829530dbd0196aa817dbec74aaafc79407b94b57 — no conflicts on current `main`) | `ctest --test-dir runtime/build -C RelWithDebInfo -R "^(retire_ticket_lock|retire_tickets|submit_mutex|replay_pipeline_compile_unlock|vk_queue|d3d12_bindless_churn|d3d12_compute)$" --output-on-failure` (`LEONIDA_VK_VALIDATION=1`) | red on main: building `retire_ticket_lock_test` against `main`'s `runtime/src/vulkan_backend.h` fails `retire_ticket_lock` at `line 55: waited < 200` (`completed_retire_ticket returned 515ms after a submit lock was held`) | green on PR+main: `7/7` CTests (`retire_ticket_lock` — `0ms after a submit lock was held`, `retire_tickets`, `submit_mutex`, `replay_pipeline_compile_unlock`, `vk_queue`, `d3d12_bindless_churn` exercising `release_retired(context.completed_retire_ticket())` across 96 direct+compute frames with `0` `vkDeviceWaitIdle`, and `d3d12_compute`) pass in `45.97 s` on RTX 3090 with `0` Khronos validation errors (`10/10` `test_ctest_registration.py` + `test_text_write_line_endings.py` OK, `check_no_game_data.py` `0` violations; `timbot103`'s static note on moving `submitted_ticket_.fetch_add` inside `retire_mutex_` in `record_submit_locked` still applies at head `35eb7b4a40`) | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yes
timbot103 commented 2026-11-29 04:27:09 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by timbot103 on 2026-11-29T04:27:09Z.

Review: COMMENTED


Requesting changes on 35eb7b4a4. Static audit only. I ran no builds, tests, or GPU workloads.

  1. Publish each ticket with its retirement record (runtime/src/vulkan_backend.h:2059). A waiter can observe N, take retire_mutex_ before the submitter inserts N, and return N−1 with N still on the GPU. The heap release at runtime/shims/d3d12_vulkan_device.cpp:5062 then proceeds to destroy the buffer and free its memory. Insert the record under retire_mutex_ before publishing the ticket.

  2. Synchronize timeline destruction with retirement reads and waits (runtime/src/vulkan_backend.h:2643). If queue idle fails while a retirement counter read is active, teardown can destroy its semaphore at runtime/src/vulkan_backend.h:2664. The lost flag cannot stop a read already in progress. Quiesce those reads before destruction on the failure path. The existing wait path at runtime/src/vulkan_backend.h:2011 also needs a lifetime pin for its copied handles through the Vulkan wait, since successful idle can race a waiter that already took a snapshot.

  3. Give missed retirement samples their own result (runtime/src/vulkan_backend.h:2242). A try-lock miss returns zero with VK_SUCCESS, so runtime/src/vulkan_backend.h:2284 classifies any previously submitted work as pending. Repeated misses can trip LEONIDA_HANG_EXIT_S on an idle GPU. Skip unavailable samples in both stall timers.

All six retirement-record accesses take retire_mutex_, and nested retirement paths acquire it below submit_mutex_. I found no reverse acquisition involving state_mutex_. The Vulkan counter query and host wait can run alongside submissions when the timeline stays alive. The new CMake target follows the adjacent portable test setup for Linux and MSVC. Its CPU test uses an empty retirement list, leaving ticket publication, timeline lifetime, and watchdog contention uncovered.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6101396200 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2402#pullrequestreview-6101396200). Originally posted by [timbot103](https://github.com/timbot103) on 2026-11-29T04:27:09Z. **Review:** COMMENTED --- Requesting changes on `35eb7b4a4`. Static audit only. I ran no builds, tests, or GPU workloads. 1. **Publish each ticket with its retirement record** (`runtime/src/vulkan_backend.h:2059`). A waiter can observe N, take `retire_mutex_` before the submitter inserts N, and return N−1 with N still on the GPU. The heap release at `runtime/shims/d3d12_vulkan_device.cpp:5062` then proceeds to destroy the buffer and free its memory. Insert the record under `retire_mutex_` before publishing the ticket. 2. **Synchronize timeline destruction with retirement reads and waits** (`runtime/src/vulkan_backend.h:2643`). If queue idle fails while a retirement counter read is active, teardown can destroy its semaphore at `runtime/src/vulkan_backend.h:2664`. The lost flag cannot stop a read already in progress. Quiesce those reads before destruction on the failure path. The existing wait path at `runtime/src/vulkan_backend.h:2011` also needs a lifetime pin for its copied handles through the Vulkan wait, since successful idle can race a waiter that already took a snapshot. 3. **Give missed retirement samples their own result** (`runtime/src/vulkan_backend.h:2242`). A try-lock miss returns zero with `VK_SUCCESS`, so `runtime/src/vulkan_backend.h:2284` classifies any previously submitted work as pending. Repeated misses can trip `LEONIDA_HANG_EXIT_S` on an idle GPU. Skip unavailable samples in both stall timers. All six retirement-record accesses take `retire_mutex_`, and nested retirement paths acquire it below `submit_mutex_`. I found no reverse acquisition involving `state_mutex_`. The Vulkan counter query and host wait can run alongside submissions when the timeline stays alive. The new CMake target follows the adjacent portable test setup for Linux and MSVC. Its CPU test uses an empty retirement list, leaving ticket publication, timeline lifetime, and watchdog contention uncovered. AI-assisted.
bobcatchris commented 2026-11-29 12:11:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by bobcatchris on 2026-11-29T12:11:15Z.


Native Windows 11 + AMD Radeon RX 7900 XTX 24 GB A/B game-run check (main 791899f65 vs main + #2402 35eb7b4a4), per #2464.

  • Unit test: retire_ticket_lock_test passed (completed_retire_ticket returned in 0 ms while the submit lock was held).
  • Game run (90 s, first-run UI / menu, unattended): 0 faults, 0 VK_ERROR_DEVICE_LOST, 0 regressions; GPU direct latency 0.64 ms avg (5.0 ms max, 5.5% busy) vs main 0.74 ms avg (5.8 ms max, 6.5% busy), VRAM identical (4,982 MiB).
RUN WIN-AMD-7900XTX-2402-A | 2026-11-29 05:51 UTC | bobcatchris | AI-assisted: Antigravity (Gemini 4 Neon)
BASE:        791899f65 + 1-line local MSVC 14.39 fix in runtime/src/crt_timed_wait.cpp:26 (_CRTIMP2_PURE _Thrd_result) | shaders: make_game.py --stages shaders --wave64-emulate off (29,280 translated, all spirv-val valid)
MACHINE:     AMD Radeon RX 7900 XTX, 24 GB, desktop | AMD Windows driver 32.0.32029.2010 | Windows 11 Pro 10.0.26200 | 63.7 GB RAM (Ryzen 7 7800X3D)
RECIPE:      documented ("Linux, Wine, AMD RX 7900 XTX (RADV)" adapted to native Windows) + DEVIATIONS: no LEONIDA_TITLE_WATCHDOG_KICK, no LEONIDA_SKIP_COMPUTE, LEONIDA_ASYNC_MIN_BYTES=2097152, LEONIDA_ASYNC_MIN_BYTES_GRAPHICS=0, LEONIDA_COMPILE_THREADS=12, LEONIDA_COMPILE_HEAVY_MAX=10 | precompile: yes, 3,757 compute pipelines (<2 MiB, --max-bytes 2097151, 0 failed)
OS/DRIVER:   Windows default TdrDelay (2 s), Resizable BAR off
TARGET:      A/B control (main) | PREDICTED (written before the run): 30.0 fps, 0 faults
MEASURED:    first-run UI / menu (unattended) | 30.05 fps mean (29.90-30.55) | 60.09 subs/s (1,504 direct/10s) | heaps 4.65 ms/sub, shadows 0.69 ms/sub, geometry 0.14 ms/sub | GPU direct latency 0.74 ms avg (5.8 ms max), 6.5% busy | 4 gfx / 800 compute pipelines live (0.1 s / 0.2 s) | 4,982 MiB VRAM | 0 faults | duration 90 s
END:         time limit (90 s)
CACHES:      warm (session + precompiled compute journal) | RUN 2 of 2 (control A)
INSTRUMENTS: LEONIDA_DEVICE_FAULT=1, LEONIDA_DEVICE_MARKERS=1, LEONIDA_GPU_LATENCY=1, LEONIDA_MEM_PROBE=30, LEONIDA_TITLE_HUD=1
VERDICT:     prediction held (MEASURED, n=2)
RUN WIN-AMD-7900XTX-2402-B | 2026-11-29 12:08 UTC | bobcatchris | AI-assisted: Antigravity (Gemini 4 Neon)
BASE:        791899f65 + #2402 (35eb7b4a4) + 1-line local MSVC 14.39 fix in runtime/src/crt_timed_wait.cpp:26 (_CRTIMP2_PURE _Thrd_result) | shaders: same main pack (29,280 translated, all spirv-val valid)
MACHINE:     AMD Radeon RX 7900 XTX, 24 GB, desktop | AMD Windows driver 32.0.32029.2010 | Windows 11 Pro 10.0.26200 | 63.7 GB RAM (Ryzen 7 7800X3D)
RECIPE:      same as A | precompile: copied journal from A (3,757 compute pipelines <2 MiB)
OS/DRIVER:   Windows default TdrDelay (2 s), Resizable BAR off
TARGET:      A/B treatment (main + #2402) | PREDICTED (written before the run): 30.0 fps, 0 faults, no regression vs A
MEASURED:    first-run UI / menu (unattended) | 29.60 fps mean (25.47-30.04) | 59.21 subs/s (1,481 direct/10s) | heaps 4.86 ms/sub, shadows 0.49 ms/sub, geometry 0.13 ms/sub | GPU direct latency 0.64 ms avg (5.0 ms max), 5.5% busy | 4 gfx / 800 compute pipelines live (0.1 s / 0.2 s) | 4,982 MiB VRAM | 0 faults | duration 90 s
END:         time limit (90 s)
CACHES:      cold session / copied precompiled compute journal | RUN 1 of 1 (treatment B)
INSTRUMENTS: LEONIDA_DEVICE_FAULT=1, LEONIDA_DEVICE_MARKERS=1, LEONIDA_GPU_LATENCY=1, LEONIDA_MEM_PROBE=30, LEONIDA_TITLE_HUD=1
VERDICT:     prediction held (MEASURED, n=1)
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7255628634 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2402#issuecomment-7255628634). Originally posted by [bobcatchris](https://github.com/bobcatchris) on 2026-11-29T12:11:15Z. --- Native **Windows 11 + AMD Radeon RX 7900 XTX 24 GB** A/B game-run check (`main` `791899f65` vs `main` + `#2402` `35eb7b4a4`), per `#2464`. - **Unit test:** `retire_ticket_lock_test` passed (`completed_retire_ticket` returned in `0 ms` while the submit lock was held). - **Game run (90 s, `first-run UI` / `menu`, unattended):** 0 faults, 0 `VK_ERROR_DEVICE_LOST`, 0 regressions; GPU direct latency `0.64 ms` avg (`5.0 ms` max, `5.5%` busy) vs `main` `0.74 ms` avg (`5.8 ms` max, `6.5%` busy), VRAM identical (`4,982 MiB`). ``` RUN WIN-AMD-7900XTX-2402-A | 2026-11-29 05:51 UTC | bobcatchris | AI-assisted: Antigravity (Gemini 4 Neon) BASE: 791899f65 + 1-line local MSVC 14.39 fix in runtime/src/crt_timed_wait.cpp:26 (_CRTIMP2_PURE _Thrd_result) | shaders: make_game.py --stages shaders --wave64-emulate off (29,280 translated, all spirv-val valid) MACHINE: AMD Radeon RX 7900 XTX, 24 GB, desktop | AMD Windows driver 32.0.32029.2010 | Windows 11 Pro 10.0.26200 | 63.7 GB RAM (Ryzen 7 7800X3D) RECIPE: documented ("Linux, Wine, AMD RX 7900 XTX (RADV)" adapted to native Windows) + DEVIATIONS: no LEONIDA_TITLE_WATCHDOG_KICK, no LEONIDA_SKIP_COMPUTE, LEONIDA_ASYNC_MIN_BYTES=2097152, LEONIDA_ASYNC_MIN_BYTES_GRAPHICS=0, LEONIDA_COMPILE_THREADS=12, LEONIDA_COMPILE_HEAVY_MAX=10 | precompile: yes, 3,757 compute pipelines (<2 MiB, --max-bytes 2097151, 0 failed) OS/DRIVER: Windows default TdrDelay (2 s), Resizable BAR off TARGET: A/B control (main) | PREDICTED (written before the run): 30.0 fps, 0 faults MEASURED: first-run UI / menu (unattended) | 30.05 fps mean (29.90-30.55) | 60.09 subs/s (1,504 direct/10s) | heaps 4.65 ms/sub, shadows 0.69 ms/sub, geometry 0.14 ms/sub | GPU direct latency 0.74 ms avg (5.8 ms max), 6.5% busy | 4 gfx / 800 compute pipelines live (0.1 s / 0.2 s) | 4,982 MiB VRAM | 0 faults | duration 90 s END: time limit (90 s) CACHES: warm (session + precompiled compute journal) | RUN 2 of 2 (control A) INSTRUMENTS: LEONIDA_DEVICE_FAULT=1, LEONIDA_DEVICE_MARKERS=1, LEONIDA_GPU_LATENCY=1, LEONIDA_MEM_PROBE=30, LEONIDA_TITLE_HUD=1 VERDICT: prediction held (MEASURED, n=2) ``` ``` RUN WIN-AMD-7900XTX-2402-B | 2026-11-29 12:08 UTC | bobcatchris | AI-assisted: Antigravity (Gemini 4 Neon) BASE: 791899f65 + #2402 (35eb7b4a4) + 1-line local MSVC 14.39 fix in runtime/src/crt_timed_wait.cpp:26 (_CRTIMP2_PURE _Thrd_result) | shaders: same main pack (29,280 translated, all spirv-val valid) MACHINE: AMD Radeon RX 7900 XTX, 24 GB, desktop | AMD Windows driver 32.0.32029.2010 | Windows 11 Pro 10.0.26200 | 63.7 GB RAM (Ryzen 7 7800X3D) RECIPE: same as A | precompile: copied journal from A (3,757 compute pipelines <2 MiB) OS/DRIVER: Windows default TdrDelay (2 s), Resizable BAR off TARGET: A/B treatment (main + #2402) | PREDICTED (written before the run): 30.0 fps, 0 faults, no regression vs A MEASURED: first-run UI / menu (unattended) | 29.60 fps mean (25.47-30.04) | 59.21 subs/s (1,481 direct/10s) | heaps 4.86 ms/sub, shadows 0.49 ms/sub, geometry 0.13 ms/sub | GPU direct latency 0.64 ms avg (5.0 ms max), 5.5% busy | 4 gfx / 800 compute pipelines live (0.1 s / 0.2 s) | 4,982 MiB VRAM | 0 faults | duration 90 s END: time limit (90 s) CACHES: cold session / copied precompiled compute journal | RUN 1 of 1 (treatment B) INSTRUMENTS: LEONIDA_DEVICE_FAULT=1, LEONIDA_DEVICE_MARKERS=1, LEONIDA_GPU_LATENCY=1, LEONIDA_MEM_PROBE=30, LEONIDA_TITLE_HUD=1 VERDICT: prediction held (MEASURED, n=1) ```
KelboLive commented 2026-11-30 17:24:23 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-11-30T17:24:23Z.


Independent check on Windows (not the author), at 35eb7b4a4.

  • Built retire_ticket_lock_test and ran it: passed — completed_retire_ticket returned 0ms after a submit lock was held (ticket 0).

Environment: Ryzen 9 7950X3D, Windows 11 Pro 10.0.26200.9711.

AI-assisted: yes (opencode).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7286226187 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2402#issuecomment-7286226187). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-30T17:24:23Z. --- Independent check on Windows (not the author), at `35eb7b4a4`. - Built `retire_ticket_lock_test` and ran it: **passed** — `completed_retire_ticket returned 0ms after a submit lock was held (ticket 0)`. Environment: Ryzen 9 7950X3D, Windows 11 Pro 10.0.26200.9711. AI-assisted: yes (opencode).
aslan2142 commented 2026-12-01 16:44:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:44:44Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7318147744 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2402#issuecomment-7318147744). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:44:44Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!2402
No description provided.