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

Open
github-bot wants to merge 1 commit from github-bot/gh-1255 into main AGit
Owner

@⁠Daolyap on GitHub · 2026-11-24 20:56 UTC · original
Daolyap:rt-pipeline-cache-hint → main · +12 −2 · 1 files · 1 commits · open

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

**@⁠Daolyap** on GitHub · 2026-11-24 20:56 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1255) `Daolyap:rt-pipeline-cache-hint` → `main` · +12 −2 · 1 files · 1 commits · open 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)
create_seeded_pipeline_cache returned silently when pipeline_cache.bin was missing or too short beside
gta6rt.exe. With the retail 1.0.2.1 executable on an RTX 3070, the title's first compute pipeline then
compiles cold on its graphics-init thread for longer than the title's own watchdog allows (~26 s), and the
title ends itself with nothing in the log pointing at the cache. Log once where the seed was looked for and
which make_game.py stage writes it.

Log-only; no change in behaviour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:44:42 +00:00
Author
Owner

@⁠Snooozs on GitHub · 2026-11-24 22:29 UTC · original

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).

**@⁠Snooozs** on GitHub · 2026-11-24 22:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1255#issuecomment-7146296885) 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).
This pull request has changes conflicting with the target branch.
  • runtime/shims/d3d12_vulkan_device.cpp
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1255/head:github-bot/gh-1255'
git switch 'github-bot/gh-1255'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1255'
git switch 'github-bot/gh-1255'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1255'
git switch 'github-bot/gh-1255'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1255'
git switch 'main'
git merge --squash 'github-bot/gh-1255'
git switch 'main'
git merge --ff-only 'github-bot/gh-1255'
git switch 'main'
git merge 'github-bot/gh-1255'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.