runtime: say when no pipeline_cache.bin seeds the Vulkan cache (RT-PIPELINE-CACHE-HINT) #1255

Closed
Daolyap wants to merge 1 commit from upstream-pr/1255 into main
Daolyap commented 2026-11-24 20:56:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Daolyap on 2026-11-24T20:56:44Z.


Item: RT-PIPELINE-CACHE-HINT (claimed in #14).

Why

create_seeded_pipeline_cache returns VK_NULL_HANDLE without a word when there's no usable pipeline_cache.bin
beside gta6rt.exe. That's easy to hit: running gta6rt straight from runtime/build has no cache there. With the
retail 1.0.2.1 executable on an RTX 3070 (wave64 emulation on), the title's first compute pipeline then compiles cold
inside its graphics-init thread. Thread samples put that thread in nvgpucomp64.dll for the whole stall. The
title's own watchdog ends the process after about 26 s, and nothing in the log points at the cache. Details are in
the #14 finding.

Change

A one-time stderr line when the seed is missing or too short, naming the path it looked for and the
make_game.py stage that writes it. The device mismatch and declined-seed cases already log. Log-only; behaviour
is unchanged.

Tested

  • Windows 11, VS 2022 RelWithDebInfo, NVIDIA RTX 3070, driver 32.0.16.1692, on main.
  • d3d12_indirect_dispatch_count_test run from runtime/build/RelWithDebInfo (no cache there): the new line is
    printed once and the test passes (8 native WARP / Vulkan comparisons).
  • gta6rt builds. On main alone the retail run stops earlier (the RT-XMEM-LEASE assert), before any pipeline is
    created. On the #432 stack the stall this line explains is the one described in #14.

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5480194217 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1255). Originally posted by [Daolyap](https://github.com/Daolyap) on 2026-11-24T20:56:44Z. --- Item: **RT-PIPELINE-CACHE-HINT** (claimed in #14). ## Why `create_seeded_pipeline_cache` returns `VK_NULL_HANDLE` without a word when there's no usable `pipeline_cache.bin` beside `gta6rt.exe`. That's easy to hit: running `gta6rt` straight from `runtime/build` has no cache there. With the retail 1.0.2.1 executable on an RTX 3070 (wave64 emulation on), the title's first compute pipeline then compiles cold inside its graphics-init thread. Thread samples put that thread in `nvgpucomp64.dll` for the whole stall. The title's own watchdog ends the process after about 26 s, and nothing in the log points at the cache. Details are in the #14 finding. ## Change A one-time stderr line when the seed is missing or too short, naming the path it looked for and the `make_game.py` stage that writes it. The device mismatch and declined-seed cases already log. Log-only; behaviour is unchanged. ## Tested - Windows 11, VS 2022 RelWithDebInfo, NVIDIA RTX 3070, driver 32.0.16.1692, on `main`. - `d3d12_indirect_dispatch_count_test` run from `runtime/build/RelWithDebInfo` (no cache there): the new line is printed once and the test passes (8 native WARP / Vulkan comparisons). - `gta6rt` builds. On `main` alone the retail run stops earlier (the RT-XMEM-LEASE assert), before any pipeline is created. On the #432 stack the stall this line explains is the one described in #14. AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Snooozs commented 2026-11-24 22:29:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Snooozs on 2026-11-24T22:29:41Z.


Read the diff at 19a1beabd (nothing built or run by me). Two notes:

  • The path goes through %ls. In #1308 I measured that a non-ASCII folder cuts such a stderr line off at the first character outside the C locale, newline included. Here everything after the path, which is the useful half of the message, would be lost for such a user. Converting it to UTF-8 and printing it with %s avoids it.
  • The line tells the user that the pipelines stage's file is what is missing, while #1308 reports that this very file misses for the runtime's pipelines on your RTX 3070. One of the two texts will have to change once that is settled; here the hint could just name the file and where it was looked for.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7146296885 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1255#issuecomment-7146296885). Originally posted by [Snooozs](https://github.com/Snooozs) on 2026-11-24T22:29:41Z. --- Read the diff at `19a1beabd` (nothing built or run by me). Two notes: - The path goes through `%ls`. In #1308 I measured that a non-ASCII folder cuts such a stderr line off at the first character outside the C locale, newline included. Here everything after the path, which is the useful half of the message, would be lost for such a user. Converting it to UTF-8 and printing it with `%s` avoids it. - The line tells the user that the `pipelines` stage's file is what is missing, while #1308 reports that this very file misses for the runtime's pipelines on your RTX 3070. One of the two texts will have to change once that is settled; here the hint could just name the file and where it was looked for. AI-assisted (Claude Code, Claude Opus 5.5).
MoonEyes commented 2026-11-28 18:00:29 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T18:00:29Z.


Hi @Daolyap, thanks for this pull request. It currently conflicts with main (conflicting file(s): runtime/shims/d3d12_vulkan_device.cpp), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7243456244 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1255#issuecomment-7243456244). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T18:00:29Z. --- Hi @Daolyap, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `runtime/shims/d3d12_vulkan_device.cpp`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 16:34:12 +00:00 (Migrated from github.com)

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


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:7317823856 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1255#issuecomment-7317823856). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:34:12Z. --- 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!1255
No description provided.