Commit Graph

3 Commits

Author SHA1 Message Date
7a4d1f7721 runtime: record the order of first pipeline requests behind LEONIDA_PIPELINE_ORDER_LOG=1
RT-PIPELINE-PREWARM-ORDER phase 1. With the variable set to 1 the D3D12 device
appends, per compute, graphics and mesh pipeline and variant that the title
uses for the first time, one line to pipeline_order.log beside
pipeline_cache.session.bin: the description key, the variant, creation and
first-use times since the process started, the build time and whether the
handle was ready. One line of counts at exit. Off by default: nothing reads the
file yet, and a run without the variable carries no hook. It touches no cache
file, the memory gate or the compile queue.

The mesh pipeline's key folds in the MS hash (the graphics key does not cover
it). Documented in runtime/README.md and docs/d3d12_vulkan.md, and the doc test
checks the variable is read and named in both.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 23:47:38 +01:00
db7f1e3043 gitignore, tests: ignore .pytest_cache from git and document scanners 2026-11-23 23:14:12 +02:00
b37028eb9c runtime/README.md: document the five xgameruntime environment overrides, with a docs test
LEONIDA_DEVICE_TYPE, LEONIDA_ANALYTICS_FORM, LEONIDA_PACKAGE_ID,
LEONIDA_CONTENT_PACKAGES and LEONIDA_PACKAGED are read by
runtime/shims/xgameruntime.cpp and were named in no document, while the
README documents the runtime's other variables one by one.

Adds a table read from the code (default, accepted values, which call each
one changes) and tests/test_docs_env_vars.py: every LEONIDA_*/GTA6RT_*
variable that appears as a string literal in runtime/src, runtime/shims
or make_game.py is named in some tracked Markdown file, except the two the
runtime sets for itself.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 21:13:11 +00:00