mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:30:53 +01:00
[PR #2400] runtime/README: LEONIDA_COMPILE_GATE is on by default (DOC-COMPILE-GATE-DEFAULT) #2400
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2400
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2400
Author: @wavehs
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:docs/compile-gate-default📝 Commits (1)
d4cd371runtime/README: LEONIDA_COMPILE_GATE is on by default (DOC-COMPILE-GATE-DEFAULT)📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
runtime/README.md(+1 -1)📄 Description
Claimed in the coordination issue as: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7201716102
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.