Skip to content

README: the runtime loads the pipelines stage's pipeline_cache.bin - #4679

Open
Pierre-Kookis wants to merge 1 commit into
ItsNotRexed:mainfrom
Pierre-Kookis:docs/readme-pipeline-cache
Open

Pierre-Kookis wants to merge 1 commit into
ItsNotRexed:mainfrom
Pierre-Kookis:docs/readme-pipeline-cache

Conversation

@Pierre-Kookis

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue: #4571 (item 1 of my claiming: comment).

Problem

README.md:182 says the pipelines stage's pipeline_cache.bin is 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:1803 writes pipeline_cache.bin to --out, where gta6rt.exe is installed (RUNTIME_FILES, :63).
  • pipeline_cache_path() resolves pipeline_cache.bin beside the running executable (runtime/shims/d3d12_vulkan_device.cpp:82-89).
  • The device seeds its VkPipelineCache from it (PipelineCacheSeed, :141-154; create_seeded_pipeline_cache, :510), and logs loaded N bytes from pipeline_cache.bin, or does not match this Vulkan device when 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.

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 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@kapitche

Copy link
Copy Markdown
Contributor

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

@memorypressure

memorypressure commented Nov 23, 2026 •

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants