From 19a1beabde6ad2232c5b07a17cfb2d00b2ab29de Mon Sep 17 00:00:00 2001 From: Logan <100187341+Daolyap@users.noreply.github.com> Date: Tue, 24 Nov 2026 20:56:36 +0000 Subject: [PATCH] runtime: say when no pipeline_cache.bin seeds the Vulkan cache (RT-PIPELINE-CACHE-HINT) 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 --- runtime/shims/d3d12_vulkan_device.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/runtime/shims/d3d12_vulkan_device.cpp b/runtime/shims/d3d12_vulkan_device.cpp index f8a5f656dc..a356a7c6f8 100644 --- a/runtime/shims/d3d12_vulkan_device.cpp +++ b/runtime/shims/d3d12_vulkan_device.cpp @@ -183,8 +183,18 @@ class PipelineCacheSeed { VkPipelineCache create_seeded_pipeline_cache(PFN_vkCreatePipelineCache create_cache, VkDevice device, const leonida::cached_pso::Identity& identity) { - const PipelineCacheSeed seed(pipeline_cache_path()); - if (!seed.data()) return VK_NULL_HANDLE; + const std::filesystem::path path = pipeline_cache_path(); + const PipelineCacheSeed seed(path); + if (!seed.data()) { + // Measured with the retail 1.0.2.1 executable on an RTX 3070: without a seed, the title's first compute + // pipeline compiles cold inside its graphics-init thread for longer than the title's own watchdog allows + // (~26 s), and the title ends itself with no error in this log. Say once where the seed was looked for. + std::fprintf(stderr, + "[rt] d3d12: no usable pipeline_cache.bin at %ls: every pipeline compiles cold (the pipelines " + "stage of make_game.py writes it to --out, beside gta6rt.exe)\n", + path.empty() ? L"(no module path)" : path.c_str()); + return VK_NULL_HANDLE; + } if (!seed.compatible(identity)) { std::fprintf(stderr, "[rt] d3d12: pipeline_cache.bin does not match this Vulkan device\n"); return VK_NULL_HANDLE;