Repository navigation
README: the runtime loads the pipelines stage's pipeline_cache.bin - #4679
Pierre-Kookis wants to merge 1 commit into
Conversation
The pipelines stage writes pipeline_cache.bin to --out beside gta6rt.exe (make_game.py:1803), and the runtime seeds its VkPipelineCache from that file when it matches the Vulkan device (pipeline_cache_path() and PipelineCacheSeed in runtime/shims/d3d12_vulkan_device.cpp). The README still said the runtime doesn't load it.
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 896c855b2 on Windows 11: test_docs_links.py -> 6 OK; git diff --check clean.
The README now says the runtime loads the pipelines stage's pipeline_cache.bin, which matches make_game.py's pipeline stage and the shader-library/cache reader on current main. No blocking issue.
|
Tested 896c855 merged with main 98fa503 on Linux (Python 3.12.16): pass with one leftover - README-only change; tests/test_docs_*.py all OK; negative control: n/a for prose, but I checked the claim: runtime/shims/d3d12_vulkan_device.cpp builds the path from the executable's folder (GetModuleFileNameW parent / pipeline_cache.bin) and rejects a cache whose header does not match the device, and make_game.py writes it to --out beside gta6rt.exe, so the new sentence is accurate. Leftover: the module docstring of make_game.py (lines 26-28, the 'pipelines' stage) still says '(the runtime doesn't load that cache yet)'. |
|
The sentence is accurate for trees containing #367's PipelineCacheSeed (this branch does), but on current main the shim never loads pipeline_cache.bin — verified: no PipelineCacheSeed/pipeline_cache_path in main's d3d12_vulkan_device.cpp — so merging this alone would make the README wrong. Please land it with or after #367. The docs guards pass and make_game.py's cache-path claim beside gta6rt.exe checks out. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). Correction — the #367 guidance above is withdrawn: our ref was stale. PipelineCacheSeed IS on current main (de67135), so the README line is accurate and this PR can land on its own. Sorry for the noise. |
Italian quickstart synced with README.md at aa2988c, keeping ItsNotRexed#3974's disk figures (~400 GB full build, ~370 GB for assets). The pipeline-cache sentence follows ItsNotRexed#4679. Index row: Italian synced commit -> aa2988c. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GirjaqC7QWj928KaDZYUpo
…age's pipeline_cache.bin Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claimed in the coordination issue: #4571 (item 1 of my
claiming:comment).Problem
README.md:182says thepipelinesstage'spipeline_cache.binis not loaded by the runtime ("the runtime doesn't load that cache yet, so it doesn't speed up the first boot"). It is:make_game.py:1803writespipeline_cache.binto--out, wheregta6rt.exeis installed (RUNTIME_FILES,:63).pipeline_cache_path()resolvespipeline_cache.binbeside the running executable (runtime/shims/d3d12_vulkan_device.cpp:82-89).VkPipelineCachefrom it (PipelineCacheSeed,:141-154;create_seeded_pipeline_cache,:510), and logsloaded N bytes from pipeline_cache.bin, ordoes not match this Vulkan devicewhen it was made elsewhere.Change
Doc only, one sentence: the cache sits beside
gta6rt.exe, which seeds its Vulkan pipeline cache from it at start when it was made on the same device.Tested
python -I -m unittest discover -s tests -p "test_docs*.py": OK. No other copy of that sentence in the repo (git grep).AI-assisted (Claude Code + Codex; I checked the cited code). No game files.