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

Open
opened 2026-11-26 20:20:44 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1255
Author: @Daolyap
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: rt-pipeline-cache-hint


📝 Commits (1)

  • 19a1bea runtime: say when no pipeline_cache.bin seeds the Vulkan cache (RT-PIPELINE-CACHE-HINT)

📊 Changes

1 file changed (+12 additions, -2 deletions)

View changed files

📝 runtime/shims/d3d12_vulkan_device.cpp (+12 -2)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1255 **Author:** [@Daolyap](https://github.com/Daolyap) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `rt-pipeline-cache-hint` --- ### 📝 Commits (1) - [`19a1bea`](https://github.com/ubiquitarianism/leonida/commit/19a1beabde6ad2232c5b07a17cfb2d00b2ab29de) runtime: say when no pipeline_cache.bin seeds the Vulkan cache (RT-PIPELINE-CACHE-HINT) ### 📊 Changes **1 file changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+12 -2) </details> ### 📄 Description 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#1287
No description provided.