Skip to content

docs/i18n fr+ru: the runtime does load the pipeline cache the build writes - #5742

Open
evilclanker9000 wants to merge 1 commit into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/1-i18n-pipeline-cache
Open

evilclanker9000 wants to merge 1 commit into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/1-i18n-pipeline-cache

Conversation

@evilclanker9000

Copy link
Copy Markdown
Contributor

What and why

Both quickstarts that describe the pipelines stage told readers the runtime never loads the
pipeline_cache.bin the stage writes, so it does not speed up the first boot. That is no longer true:

runtime/shims/d3d12_vulkan_device.cpp:88   pipeline_cache_path()      // pipeline_cache.bin beside the executable
runtime/shims/d3d12_vulkan_device.cpp:143  create_seeded_pipeline_cache(...)
runtime/shims/d3d12_vulkan_device.cpp:567  pipeline_cache_handle = create_seeded_pipeline_cache(vk.vkCreatePipelineCache, info.device, pso_identity);

The runtime seeds its VkPipelineCache from that file when the file's header matches the Vulkan device
(pipeline_cache.bin does not match this Vulkan device is the other branch), so a later boot does not compile the
shaders again.

Task: EGEN-I18N-PIPELINE-CACHE

Change

  • docs/i18n/fr/quickstart.md: the pipelines-stage note says the cache is written next to gta6rt.exe and that the
    runtime seeds its VkPipelineCache from it when the header matches, so the next boot does not recompile the
    shaders.
  • docs/i18n/ru/quickstart.md: the same in Russian.

Two files, 6 insertions / 4 deletions, documentation only.

Test

No game files, no GPU, no build tools.

$ git grep -n "ne charge pas encore\|пока не загружает" docs/i18n    # before
docs/i18n/fr/quickstart.md:120: ... (dans `--out`) ; le runtime ne charge pas
docs/i18n/ru/quickstart.md:116: ... в `--out`. Runtime этот кеш пока не загружает, так что первую

$ python -I tests/test_docs_links.py; python -I tests/test_docs_repo_paths.py
$ python -I tests/test_docs_cli_flags.py; python -I tests/test_docs_repeated_lines.py
test_docs_links exit=0
test_docs_repo_paths exit=0
test_docs_cli_flags exit=0
test_docs_repeated_lines exit=0

The same four checks pass before and after the change (the pages' links, repo paths, flags and repeated lines are
unaffected), and the two edited paragraphs read back correctly with their accents and Cyrillic intact.

Notes

AI-assisted.

…es stage writes

Both quickstarts said the runtime never loads pipeline_cache.bin, so the cache does not speed up the first boot. runtime/shims/d3d12_vulkan_device.cpp:143 create_seeded_pipeline_cache seeds the VkPipelineCache from that file beside gta6rt.exe when its Vulkan header matches the device, so a later boot does not compile the shaders again.

@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.

Head 7edf8c9b1, base 561b65a.

Commands: python -I -m pytest tests/test_docs_links.py tests/test_docs_repo_paths.py tests/test_docs_cli_flags.py tests/test_docs_repeated_lines.py -q -> 14 passed; git diff --check clean.

Checked against the runtime at 561b65a: pipeline_cache_path() (d3d12_vulkan_device.cpp:88), create_seeded_pipeline_cache (:143, called :567), and the header/vendor/device/UUID check (:127-148). The fr/ru text matches, including "beside gta6rt.exe" and the next boot not recompiling.

Verdict: approve. This is one part of the docs family: #5828 covers de/es/zh-CN, #5720/#5774 the README/docstring; #4679 duplicates #5720. No duplicate of this PR.

@kapitche

Copy link
Copy Markdown
Contributor

Tested 7edf8c9 merged with main 561b65a (merge was a no-op) on Linux (WSL2) with Python 3.12.16: pass

Docs-only change (fr and ru quickstart). tests/test_docs_*.py: 11 files run, 11 passed, 0 failed; tests/test_i18n_index.py: OK.

Checked the new text against runtime/shims/d3d12_vulkan_device.cpp: pipeline_cache_path() is pipeline_cache.bin next to the executable (GetModuleFileNameW parent), and create_seeded_pipeline_cache seeds VkPipelineCache only when the header's vendor, device and cache UUID match, otherwise it logs a mismatch and starts empty. That is what both translations now say ("beside gta6rt.exe", "when its header matches the Vulkan device"). docs/d3d12_vulkan.md line 2020 agrees.

Observation, not a defect in this PR: at this head the English README.md (line 188-189) and the de, es quickstarts still say the runtime does not load the cache yet, so they now disagree with fr and ru.

Negative control: not applicable (no code or test change).

@timbot103

Copy link
Copy Markdown

Checked 7edf8c9b1eea (docs read + docs tests, Windows 11, Python 3.14.7): git diff --check clean; test_docs_links.py (6), test_docs_list_items.py (2), test_docs_table_rows.py (2), test_docs_repeated_lines.py (2), test_docs_repo_paths.py (3), test_docs_cli_flags.py (3), test_docs_table_ids.py (2), test_docs_env_vars.py (4), test_text_encoding.py (2), test_i18n_index.py (9), and check_no_game_data.py all pass. Verified all code references against main (runtime/shims/d3d12_vulkan_device.cpp:88, 143, 148, 567, 3508, 3614; make_game.py:1825, 1897) and both French (docs/i18n/fr/quickstart.md:120-122) and Russian (docs/i18n/ru/quickstart.md:116-118) paragraphs against #5720. No issues in the diff. Two coordination notes: #5736 (fr) and #5739 (ru) are open sync PRs (opened right before this PR), though git merge-tree confirms clean merges with both; and English #5720 is still open, so merging this first leaves fr/ru ahead of README.md until #5720 lands. AI-assisted (Gemini).

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