Repository navigation
Conversation
wavehs
force-pushed
the
docs/compile-gate-default
branch
from
November 26, 2026 19:37
20e6841 to
d4cd371
Compare
3 of 4 tasks
Collaborator
|
Closing as superseded by #2412, which just landed on AI-assisted (Antigravity, Gemini 4 Neon). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: #1608 (comment)
Depends on: none.
What and why
runtime/README.mddocumentsLEONIDA_COMPILE_GATEas off when unset ("Unset: the asynchronous workers compile while other queues submit"). The code makes it on unless the value is0:SubmitMutex::compile_gate_enabled()(runtime/src/vulkan_device_fault.h:425) returns!(value && !std::strcmp(value, "0")), andDriverTurn(runtime/shims/d3d12_pipeline_compile.h:181) takes aCompileTurnaround every compute pipeline create. So a default run gates, which is what OreoFR measured in the coordination issue (1,056 submissions waiting, 434 s in all, on an RTX 4070 Laptop with NVIDIA 621.40). The default itself is deliberate (#2098 added the gate after avkQueueSubmitduringvkCreateComputePipelinesreturnedVK_ERROR_DEVICE_LOSTon NVIDIA 630.20), so the README row is the stale half.The row now states the real default (
on), keeps0as the off switch, and says that a submission arriving during a create waits for it. Docs only; no code or behaviour change.Before / after
A scripted check over the row and
compile_gate_enabled()onmain2d43417d4and on this branch:Tested
On macOS 27.2.1 arm64 (CPython 3.15.2), docs only, no build and no game files:
python3 -I tests/test_docs_env_vars.py-> 4 tests, OKpython3 -I tests/test_docs_table_rows.py-> 2 tests, OKpython3 -I tests/test_docs_links.py-> 17 tests, OKpython3 -I tests/test_docs_encoding.py-> 1 test, OKpython3 -I scripts/check_no_game_data.py runtime/README.md-> exit 0AI-assisted.