Skip to content

docs: fix inaccurate documentation and add recommended variables to running.md - #2574

Merged
aslan2142 merged 1 commit into
ProjectLeonida:mainfrom
aslan2142:docs/fixup-and-running-env
Nov 28, 2026
Merged

aslan2142 merged 1 commit into
ProjectLeonida:mainfrom
aslan2142:docs/fixup-and-running-env

Conversation

@aslan2142

Copy link
Copy Markdown
Collaborator

Summary

Fixes all four failing documentation verification checks on main (test_docs_cli_flags.py, test_docs_env_vars.py, test_docs_python_deps.py, test_docs_repo_paths.py), corrects factual/path inaccuracies across the docs, and adds recommended runtime variables to docs/running.md.

Changes

  • docs/running.md:
    • Added a Recommended variables (all platforms) table documenting proven main tuning and diagnostic settings (LEONIDA_SUBMIT_ASYNC, LEONIDA_ASYNC_PIPELINES / LEONIDA_ASYNC_MIN_BYTES / LEONIDA_ASYNC_MIN_BYTES_GRAPHICS, LEONIDA_COMPILE_THREADS / LEONIDA_COMPILE_HEAVY_MAX / LEONIDA_SERIAL_BIG_COMPILES, LEONIDA_COMPUTE_WARMUP_MAX_BYTES / LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES, LEONIDA_HEAVY_PIPELINE_CACHE_MS, LEONIDA_STARTUP_CACHE_CHECKPOINTS, arena/window/geometry MB sizing, LEONIDA_KEYBOARD_PAD / LEONIDA_RUMBLE, LEONIDA_DEVICE_FAULT / LEONIDA_DEVICE_MARKERS, LEONIDA_TITLE_HUD / LEONIDA_DEV_OVERLAY, LEONIDA_GPU_LATENCY / LEONIDA_MEM_PROBE).
    • Updated the Linux RADV RX 7900 XTX table (including MESA_VK_DEVICE_SELECT=1002:744c!, async submit/compile, and diagnostics) and the Reporting section (RUN blocks per docs/agent_collaboration.md).
  • runtime/README.md: documented LEONIDA_CLWB_PATCH (runtime/src/cpu_emulation.h).
  • AGENTS.md: added port_ctl.py (scripts/port_ctl.py) to the numpy/Pillow exception list.
  • d3d12/docs/replay.md: fixed nonexistent --looks flag to --flow.
  • docs/port_plan.md, docs/port_status.md, docs/ultrawide.md, docs/victory_gap_gpu.md, docs/victory_gap_media.md:
    • Fixed runtime/shims/chad_dsp.cpp -> runtime/shims/chad.cpp and VIctory's tests/fidelityfx.rs -> crates/victory-hle/tests/fidelityfx.rs.
    • Updated runtime/src/pipeline_queue.h -> runtime/src/pipeline_wait.h and clearly marked unmerged-branch file references (display_profile.h, display_mode.h, aspect_fit.h, frame_step.h, media_foundation.cpp, gameinput_xinput.cpp, d3d12_xs_exports_test.cpp), noting what actually landed on main (d3d12/ ultrawide in d3d12/crates/leonida-gpu/src/aspect.rs and d3d12/crates/leonida-loader/src/hooks.rs, non-SDL3 input in runtime/shims/gameinput_no_sdl.cpp).
  • tests/test_docs_cli_flags.py: scan .rs sources and derive clap #[arg(long)] flags so d3d12/docs/*.md CLI flags are checked against real Rust sources (with unit test), add cargo test / git-filter-repo flags to FOREIGN, and add docs/port_plan.md to OTHER_PROJECTS.

Verification

  • 13/13 tests/test_docs_*.py pass (test_docs_cli_flags.py, test_docs_env_vars.py, test_docs_python_deps.py, test_docs_repo_paths.py failed on main 0318164b8 and all pass with this PR).
  • python3 -m compileall -q tests/test_docs_cli_flags.py — PASS.
  • python3 -I scripts/check_no_game_data.py — PASS (no game data).
  • Host: Linux (CPU/Python docs checks only; no GPU or runtime code changed).

AI-assisted: Antigravity (Gemini 4 Neon).

…iables to running.md

- docs/running.md: add Recommended variables (all platforms) table covering async submit/compile, compile-pool sizing, warm-up throttling, heap sizing, input, and telemetry/fault variables on main; update RX 7900 XTX RADV recipe and Reporting section
- runtime/README.md: document LEONIDA_CLWB_PATCH (runtime/src/cpu_emulation.h)
- AGENTS.md: add port_ctl.py (scripts/port_ctl.py) to numpy/Pillow exception list
- d3d12/docs/replay.md: fix nonexistent --looks flag reference to --flow
- docs/port_plan.md, docs/port_status.md, docs/ultrawide.md, docs/victory_gap_gpu.md, docs/victory_gap_media.md: fix typos (chad_dsp.cpp -> chad.cpp, VIctory tests/fidelityfx.rs -> crates/victory-hle/tests/fidelityfx.rs) and clearly mark unmerged-branch paths (runtime/ ultrawide, frame_step.h, media_foundation.cpp, gameinput_xinput.cpp, d3d12_xs_exports_test.cpp, pipeline_queue.h -> pipeline_wait.h)
- tests/test_docs_cli_flags.py: scan .rs sources and clap #[arg(long)] struct fields for d3d12/docs/*.md flags, treat cargo/git-filter-repo flags as foreign, and add docs/port_plan.md to OTHER_PROJECTS

AI-assisted: Antigravity (Gemini 4 Neon). Verified: 13/13 tests/test_docs_*.py pass and scripts/check_no_game_data.py clean.
@aslan2142
aslan2142 merged commit ec740bc into ProjectLeonida:main Nov 28, 2026
3 of 5 checks passed
@aslan2142
aslan2142 deleted the docs/fixup-and-running-env branch November 28, 2026 14:10
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.

1 participant