Repository navigation
make_game: the pipelines stage's cache is loaded by the runtime (docstring) - #5774
evilclanker9000 wants to merge 2 commits into
Conversation
|
Tested c85a199 merged with main 561b65a on Ubuntu (WSL2) / Python 3.12.16: pass Docstring-only change to make_game.py (2 lines). make_game.py parses; all 22 tests/test_make_game_*.py files pass (argparse 36, assets_decoder 5, assets_pools 7, container 14, destinations 4, dry_run 24, empty_translation 9, interrupt 4, paths 5, pick 6, pipeline_batches 15, pipeline_preflight 16, pipelines 13, platform 43, preflight 92, python_version 3, resume 14, submodule 3, translate_cleanup 3, translation_completeness 5, translator_flags 26, wave64 38; 0 failures, a few skips). Negative control: not applicable (no behaviour or test change). Checked the claim against the tree: the pipelines stage writes pipeline_cache.bin into the --out directory (make_game.py:1897) and runtime/shims/d3d12_vulkan_device.cpp:87-93,158 loads pipeline_cache.bin from the directory of gta6rt.exe and logs the loaded size. |
|
Verified against main 561b65a: the docstring fix is correct — d3d12_vulkan_device.cpp:93 maps pipeline_cache.bin beside the executable, :148/:158 do the device-header check and the "loaded N bytes" log, docs/d3d12_vulkan.md:2020 documents the load, and make_game.py:1897 writes the cache to that same folder. compileall and --help clean. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
make_game.py AI-assisted.
Task: EGEN-MAKEGAME-PIPELINE-CACHE, posted as a
finding:in #5581.make_game.py's stage list says the pipelines stage saves "the pipeline cache next to the port (the runtime doesn'tload that cache yet)". That has not been true since the runtime began seeding its pipeline cache from it:
runtime/shims/d3d12_vulkan_device.cppmapspipeline_cache.binbesidegta6rt.exe(lines 88-93), checks itsVkPipelineCacheHeaderVersionOneagainst the device (lines 127-150) and logsloaded N bytes from pipeline_cache.bin(line 158) when the pipeline cache is created (line 143).
docs/d3d12_vulkan.md:2019already documents that load.The pipelines stage writes the cache into the port folder, the same folder the runtime stage copies
gta6rt.exeinto(
make_game.py:1800,make_game.py:1897), so "beside gta6rt.exe" is exact.This corrects the one sentence; nothing else changes.
Test (no GPU needed):
Before the change the docstring carried the stale "(the runtime doesn't load that cache yet)"; after it, searching
doesn't loadovermake_game.pyreturns nothing.Notes: the same stale sentence is in
README.md:189and indocs/i18n/{de,es,fr,ru,zh-CN}. Those are other files,and other open PRs (#5720 for the README, #5742 for fr + ru) cover them, so this PR keeps to the one spot that was
still stale in the build script itself. No test is added: this is a documentation string, which the repository's
rules let stand without one. The sentence keeps the file's width and three-line shape.
AI-assisted.