Make ray-tracing missions use the same lighting settings as the launcher toggle #426

Open
HandshakeHackin wants to merge 1 commit from upstream-pr/426 into v21
HandshakeHackin commented 2026-12-01 13:31:34 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-12-01T13:31:34Z.


Three revision 49 missions turn on the game’s ray tracing with VICTORY_BVH_BUILDER=1: RTX 40, RTX 50 and RDNA 4. On v26.12.1 the launcher applied that option after deriving the lighting switches. Run B kept VICTORY_PROBE_RAYS=1. If the player had selected “Skip unused ray tracing passes” or an indoor light, it also kept those RT-off settings. Turning on ray tracing in Graphics quality already omits them.

This change resolves the mission’s RT choice before deriving the switches. An explicit companion launch option still wins. The saved settings stay available for the next run.

Reproduction and tests

  • In the Test lab regression, the unmodified launcher fails both directions: mission RT on over a saved off setting, and mission RT off over a saved on setting. With the fix all 117 Test lab checks and all 122 mission checks passed locally in PowerShell 7.4.19.
  • On a fresh cache, the unmodified mission produced shader fingerprint 737ade6b88ac8104, while the settings toggle and -RayTracing both produced 516b727e453a3a66. With this change all three produced 516b727e453a3a66 during fingerprinting, translation, warm-up and run startup. I used the real launcher and a Linux probe built from the v26.12.1 fingerprint routine and CLI defaults. Its translator source hash matches the one embedded in the published Windows executable. This measures configuration and shader identity only.
<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:5586744379 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/426). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-12-01T13:31:34Z. --- Three revision 49 missions turn on the game’s ray tracing with `VICTORY_BVH_BUILDER=1`: RTX 40, RTX 50 and RDNA 4. On v26.12.1 the launcher applied that option after deriving the lighting switches. Run B kept `VICTORY_PROBE_RAYS=1`. If the player had selected “Skip unused ray tracing passes” or an indoor light, it also kept those RT-off settings. Turning on ray tracing in Graphics quality already omits them. This change resolves the mission’s RT choice before deriving the switches. An explicit companion launch option still wins. The saved settings stay available for the next run. **Reproduction and tests** - In the [Test lab regression](https://github.com/HandshakeHackin/klbf-lab/blob/a5ab08e95c47298a86280971314aefa707c56fa4/tests/test-lab.ps1), the unmodified launcher fails both directions: mission RT on over a saved off setting, and mission RT off over a saved on setting. With the fix all 117 Test lab checks and all 122 mission checks passed locally in PowerShell 7.4.19. - On a fresh cache, the unmodified mission produced shader fingerprint `737ade6b88ac8104`, while the settings toggle and `-RayTracing` both produced `516b727e453a3a66`. With this change all three produced `516b727e453a3a66` during fingerprinting, translation, warm-up and run startup. I used the real launcher and a Linux probe built from the v26.12.1 fingerprint routine and CLI defaults. Its translator source hash matches the one embedded in the published Windows executable. This measures configuration and shader identity only.
HandshakeHackin commented 2026-12-01 13:52:49 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-12-01T13:52:49Z.


Checked this change together with #383 on the released v26.12.2 source (692ebbd). The tagged launcher introduces the live panel and updated mission controls. All 132 mission checks and 117 Test lab checks passed locally with PowerShell 7.4.19 on Linux. The 16 synthetic card-ownership cases also passed across manual missions, Run all (A/B/A) and Test lab, including interrupted children and a newer unrelated card.

Exact integration commit · Card reproduction. The upstream Windows job passed both Clippy steps and stopped at the WARP depth-bounds assertion tracked in #27.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7313330467 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/426#issuecomment-7313330467). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-12-01T13:52:49Z. --- Checked this change together with #383 on the released v26.12.2 source (`692ebbd`). The tagged launcher introduces the live panel and updated mission controls. All 132 mission checks and 117 Test lab checks passed locally with PowerShell 7.4.19 on Linux. The 16 synthetic card-ownership cases also passed across manual missions, Run all (A/B/A) and Test lab, including interrupted children and a newer unrelated card. [Exact integration commit](https://github.com/HandshakeHackin/klbf-lab/commit/6cd461e00eb3b3b3e61d21fcf8305485343339c7) · [Card reproduction](https://github.com/HandshakeHackin/klbf-lab/blob/d3b61b23fc508010425351d89c498129cf918c3b/tests/verify_mission_cards.py). The [upstream Windows job](https://github.com/PastiiJay/klbf-lab/actions/runs/46657275575/job/142677008301) passed both Clippy steps and stopped at the WARP depth-bounds assertion tracked in #27.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/426:upstream-pr/426'
git switch 'upstream-pr/426'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'v21'
git merge --no-ff 'upstream-pr/426'
git switch 'upstream-pr/426'
git rebase 'v21'
git switch 'v21'
git merge --ff-only 'upstream-pr/426'
git switch 'upstream-pr/426'
git rebase 'v21'
git switch 'v21'
git merge --no-ff 'upstream-pr/426'
git switch 'v21'
git merge --squash 'upstream-pr/426'
git switch 'v21'
git merge --ff-only 'upstream-pr/426'
git switch 'v21'
git merge 'upstream-pr/426'
git push origin 'v21'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
PastiiJay/klbf-lab!426
No description provided.