leonida-gpu: read LEONIDA_SKIP_PIPELINES in release builds too (D3D12-SKIP-PIPELINES-RELEASE) #3505

Code

Clone this repository

Checkout

From your project repository, check out a new branch and test the changes.

git fetch -u origin "feat/skip-pipelines-release:feat/skip-pipelines-release"
git switch "feat/skip-pipelines-release"
Open
leonida/mandy
MoonEyes wants to merge 2 commits from feat/skip-pipelines-release into main

This branch is out-of-date with the base branch

Conversation
Reviewers 0 approvals
  • No reviewers
Details
This pull request is blocked because it's outdated.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feat/skip-pipelines-release:feat/skip-pipelines-release'
git switch 'feat/skip-pipelines-release'
Member

Item: D3D12-SKIP-PIPELINES-RELEASE

LEONIDA_SKIP_PIPELINES is now read in every build, not only with the diagnostics feature, so the switches the launcher turns into that list (motion blur off by default, WATER_TRANSMISSION=0, HAIR_SHADOW_MASKS=0, SKIP_RT_RESOLVE=1) also work in a release build.

  • is_skipped, the skip field, skipped_shader, parse_skip_hashes and kept_answer are under cfg(windows); the list is read once (OnceLock). Per draw in release: a null-pointer test and one relaxed byte load.
  • skip_tried / LEONIDA_SKIP_TRY_*, LEONIDA_SKIP_KEPT, note_drop, note_why and the drop counters stay diagnostics-only.
  • draw.rs: the three call sites (draw, dispatch, indirect) leave before any binding, barrier or argument clamp, as in the diagnostics builds we already play.
  • Docs: README-fxceless.md, switches.md regenerated.

Tested (Windows 11, no game):

  • cargo test --locked -p leonida-gpu: 792 passed, 0 failed.
  • cargo build --release --locked -p leonida: builds (no diagnostics).
  • cargo check --locked -p leonida-gpu --features diagnostics --tests: OK.
  • python -I tools/d3d12_switches.py --check d3d12/docs/switches.md: OK; check_no_game_data.py on the changed files: OK.
  • Not run in game yet: rendering change, so the 300 s gate is needed before merge (OreoFR's agent, RTX 4070).

AI-assisted: written by Claude Opus 5.5 (Claude Code), reviewed in two passes by a separate Claude Opus 5.5 judge (ACCEPT). Asked for by OreoFR; OreoFR's agent runs the in-game gate on an RTX 4070 and posts the RUN here.

🤖 Generated with Claude Code

Item: D3D12-SKIP-PIPELINES-RELEASE `LEONIDA_SKIP_PIPELINES` is now read in every build, not only with the `diagnostics` feature, so the switches the launcher turns into that list (motion blur off by default, `WATER_TRANSMISSION=0`, `HAIR_SHADOW_MASKS=0`, `SKIP_RT_RESOLVE=1`) also work in a release build. - `is_skipped`, the `skip` field, `skipped_shader`, `parse_skip_hashes` and `kept_answer` are under `cfg(windows)`; the list is read once (OnceLock). Per draw in release: a null-pointer test and one relaxed byte load. - `skip_tried` / `LEONIDA_SKIP_TRY_*`, `LEONIDA_SKIP_KEPT`, `note_drop`, `note_why` and the drop counters stay diagnostics-only. - `draw.rs`: the three call sites (draw, dispatch, indirect) leave before any binding, barrier or argument clamp, as in the diagnostics builds we already play. - Docs: `README-fxceless.md`, `switches.md` regenerated. Tested (Windows 11, no game): - `cargo test --locked -p leonida-gpu`: 792 passed, 0 failed. - `cargo build --release --locked -p leonida`: builds (no diagnostics). - `cargo check --locked -p leonida-gpu --features diagnostics --tests`: OK. - `python -I tools/d3d12_switches.py --check d3d12/docs/switches.md`: OK; `check_no_game_data.py` on the changed files: OK. - Not run in game yet: rendering change, so the 300 s gate is needed before merge (OreoFR's agent, RTX 4070). AI-assisted: written by Claude Opus 5.5 (Claude Code), reviewed in two passes by a separate Claude Opus 5.5 judge (ACCEPT). Asked for by OreoFR; OreoFR's agent runs the in-game gate on an RTX 4070 and posts the RUN here. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The skip list and its per-pipeline kept answer were behind the diagnostics
feature, so the launcher's motion blur opt-out, LEONIDA_WATER_TRANSMISSION=0,
LEONIDA_HAIR_SHADOW_MASKS=0 and LEONIDA_SKIP_RT_RESOLVE=1 (all hashes in
LEONIDA_SKIP_PIPELINES) did nothing in a release build. is_skipped is now
built always: the list is read from the environment once, and a draw costs a
null test and one byte read. The timing experiments (LEONIDA_SKIP_TRY_*,
LEONIDA_SKIP_KEPT) and the drop notes stay in diagnostics builds.

Adds a unit test that runs without the diagnostics feature; regenerates
switches.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It checked the kept byte through is_skipped, which a diagnostics build with
LEONIDA_SKIP_KEPT=0 or LEONIDA_SKIP_TRY_* in the environment does not keep.
It now checks the byte through kept_answer, and is renamed and commented: it
runs with and without diagnostics; the proof that the code builds without
them is the release build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
First-time contributor

Independent local verification of this change (I changed no code).

  • Head 2e638bed, merge base 0036195a. The new test is absent on the base: git grep -F skip_list_is_read_in_every_build 0036195a -- d3d12/crates/leonida-gpu/src -> exit 1.
  • On the PR head, private CARGO_TARGET_DIR, -- --exact: pipeline::tests::skip_list_is_read_in_every_build -> 1 passed / 851 filtered. No is_none() device gate added.
  • git diff --check 0036195a 2e638bed -> clean. python -I scripts/check_no_game_data.py on draw.rs, pipeline.rs, docs/README-fxceless.md and docs/switches.md -> clean.

GPUs tested: none (env-parsing unit test only). Driver: n/a. No game data, assets or extracted shaders were used or attached.

AI-assisted: yes, Hy4 flash (verification only). No approval implied; this is a local test report.

Independent local verification of this change (I changed no code). - Head `2e638bed`, merge base `0036195a`. The new test is absent on the base: `git grep -F skip_list_is_read_in_every_build 0036195a -- d3d12/crates/leonida-gpu/src` -> exit 1. - On the PR head, private `CARGO_TARGET_DIR`, `-- --exact`: `pipeline::tests::skip_list_is_read_in_every_build` -> 1 passed / 851 filtered. No `is_none()` device gate added. - `git diff --check 0036195a 2e638bed` -> clean. `python -I scripts/check_no_game_data.py` on draw.rs, pipeline.rs, docs/README-fxceless.md and docs/switches.md -> clean. GPUs tested: none (env-parsing unit test only). Driver: n/a. No game data, assets or extracted shaders were used or attached. AI-assisted: yes, Hy4 flash (verification only). No approval implied; this is a local test report.
Sign in to join this conversation.
No description provided.