mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #1255] runtime: say when no pipeline_cache.bin seeds the Vulkan cache (RT-PIPELINE-CACHE-HINT) #1287
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1287
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
19a1bearuntime: 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_cachereturnsVK_NULL_HANDLEwithout a word when there's no usablepipeline_cache.binbeside
gta6rt.exe. That's easy to hit: runninggta6rtstraight fromruntime/buildhas no cache there. With theretail 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.dllfor the whole stall. Thetitle'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.pystage that writes it. The device mismatch and declined-seed cases already log. Log-only; behaviouris unchanged.
Tested
main.d3d12_indirect_dispatch_count_testrun fromruntime/build/RelWithDebInfo(no cache there): the new line isprinted once and the test passes (8 native WARP / Vulkan comparisons).
gta6rtbuilds. Onmainalone the retail run stops earlier (the RT-XMEM-LEASE assert), before any pipeline iscreated. 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.