Skip to content

NVIDIA launcher: the water's transmission on by default again - #2617

Closed
kurrutako wants to merge 6 commits into
ProjectLeonida:mainfrom
kurrutako:fix/d3d12-water-tiles-paired
Closed

kurrutako wants to merge 6 commits into
ProjectLeonida:mainfrom
kurrutako:fix/d3d12-water-tiles-paired

Conversation

@kurrutako

@kurrutako kurrutako commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: D3D12-WATER-TILES-PAIRED (#2570 (comment))

What and why

On NVIDIA, d3d12/scripts/play-nvidia.ps1 drops the water's CS_TransmissionVolumetrics family (five programs). It was dropped for a dark band with blocky fringes near water. With the family dropped:

  • seen from above, the water is a dark, opaque sheet;
  • under the water the scene's light is lost: black, or white in one frame, with only particles and light shafts showing.

The black blocks the family left came from the water's tile list, CS_TransmissionVolumetrics_GenerateTiles (1aa247ed3653b616), losing tiles on 32-lane hosts. The first version of this PR named that list in LEONIDA_PAIRED_FOR. #2662 has since fixed it in the translator (loop convergence on 32-lane hosts, on by default). Played on current main with the list not named, there are no blocks. So this PR no longer touches LEONIDA_PAIRED_FOR.

This PR:

  • runs the family by default again. LEONIDA_WATER_TRANSMISSION=0 drops it as before;
  • keeps LEONIDA_HAIR_SHADOW_MASKS=0 dropping the two hair shadow masks. That used to work only while the water was dropped; now it works on its own;
  • keeps both opt-outs across the F1 menu's Save and Restart (found by @merzleckeier in review);
  • updates the water line in docs/findings.md.

Tested

Played on Windows 11, RTX 5070 12 GB, NVIDIA 621.01. D3D12 runtime, diag build, Series X profile, -Resolution 1440, frame generation 2x.

Build Run Water from above Under the water Black 8 x 8 blocks
main 2026-11-29 (eb4773b34) Family dropped (launcher default) Dark and opaque Black or white, particles only None
main 2026-11-29 LEONIDA_WATER_TRANSMISSION=1 Clear Seagrass and the player visible, seabed not drawn Several per frame, moving
main 2026-11-29 Same, plus the tile list in LEONIDA_PAIRED_FOR Clear Seagrass and the player visible, seabed not drawn None
main 2026-11-30 (e236b19c6, with #2662) + this PR, the tile list not named Family on by default Clear Seabed and seagrass drawn None
  • @ItsYusei99 saw the same result on an RTX 4070 (Series S, DLSS, frame generation 3x), with the tile list named.
  • play-nvidia.ps1 -DryRun on this branch, by case:
    • by default, only the motion blur's four programs are skipped;
    • with LEONIDA_WATER_TRANSMISSION=0, the five water programs are skipped too;
    • with LEONIDA_HAIR_SHADOW_MASKS=0, the two hair masks are skipped too;
    • with both opt-outs at 0, both sets are skipped;
    • in every case LEONIDA_PAIRED_FOR is main's.
  • python -I scripts/check_no_game_data.py on both files: clean.
  • Not measured: the frame time with the family on (docs/findings.md has it under 0.3 ms a frame on an RTX 4060 Ti). Not tried here: Series S, other render scales, or other NVIDIA cards.

GPUs tested: NVIDIA GeForce RTX 5070 12 GB, driver 621.01, Windows 11

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: launcher settings only, no translator change)

🤖 Generated with Claude Code

…ission on again

CS_TransmissionVolumetrics_GenerateTiles (1aa247ed3653b616) in its own form left 8 x 8 groups
of the volumetrics' output unwritten at random: black blocks that moved over the water. Named in
LEONIDA_PAIRED_FOR, none on an RTX 5070. With that, the CS_TransmissionVolumetrics family runs by
default again (dropped, the water is opaque from above and the scene is lost under it);
LEONIDA_WATER_TRANSMISSION=0 drops it as before, LEONIDA_HAIR_SHADOW_MASKS=0 still drops the
hair shadow masks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@merzleckeier

Copy link
Copy Markdown
Contributor

Independent launcher check of 3cc03f816 against 4364a4fa using PowerShell 7.4.21 on CachyOS, with synthetic Windows CIM responses and no game data. All 32 first-launch checks passed across both revisions, including the Series S 1080p and Series X 1440p wrappers, concurrent water and hair overrides, the legacy RT skip list, and -More. The default paired list retains all 39 existing entries and adds just the water tile list. Both tested configurations also worked with #2612 merged in.

The new water opt-out is lost on F1 Save and Restart. I ran the unmodified launcher with LEONIDA_WATER_TRANSMISSION=0, -NoPrecompile and a stub leonida.exe. The stub inspected the environment it actually inherited from the launcher and replayed the menu's generated LEONIDA_MENU_PLAY and LEONIDA_MENU_ARGS with -DryRun appended.

Water programs on the skip list First start Menu restart replay
Main 5 5
This PR 5 0

The launcher consumes the flag but clears it from the child environment when it applies $settings in play-nvidia.ps1 (lines 538–541 on this head). The child PowerShell inherits that environment and recomputes the skip list with water on by default. The two hair skips are also lost on restart, which already happens on main.

In a throwaway copy I added $settings.LEONIDA_WATER_TRANSMISSION = '0' inside the existing water-off branch and did the same for the hair-off flag. The initial and replayed skip lists then matched for defaults, water off, and water plus hair off. This may be enough to preserve the opt-outs across the menu restart.

No visual water result or native Windows 5.1 result from this run. AI-assisted with OpenAI Codex (GPT-6).

@fiestorra

Copy link
Copy Markdown
Contributor

Verification of what can be checked without the game, plus one thing I could not check and should not pretend to.

Verified here:

  • the script parses as PowerShell (Parser::ParseInput, no errors);
  • the LEONIDA_PAIRED_FOR list is well formed: 40 keys, no duplicates, every one exactly 16 lowercase hex digits, and the key this change adds
    (1aa247ed3653b616) is first;
  • the branch is 0 commits behind origin/main (4364a4fa6), which is unusual enough among the open pull requests to be worth saying - it applies to today's
    tree without a rebase.

Not verified: that the key names a program that exists. I tried to confirm it against the translated corpus here
(work/shaders/spirv/index.json, 55.8 MB) and it is absent - but so are three keys that were already in the list before this change
(02384a60fda6f2d0, 339d476c267c03c7, c85cb6bc1cd8e2ad), so my index does not carry these pairing keys at all and the test tells me nothing about yours.
The pairing key is evidently not what my index.json is keyed by.

So: the mechanical parts are sound, and the claim that this is the water tile list is the author's measurement (RTX 5070, 2026-11-29) and not something I can
re-derive here. Worth having someone with the runtime check that the new key is the program docs/findings.md names, so a typo in a hex string does not travel
silently.

Written with an AI assistant.

The launcher clears the window's LEONIDA_* before the start and the F1 restart
runs it again in that environment, so LEONIDA_WATER_TRANSMISSION=0 (and
LEONIDA_HAIR_SHADOW_MASKS=0) were lost on Save and Restart. Both are kept in
$settings now. Found by merzleckeier in review.

AI-assisted (Claude Code)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kurrutako

Copy link
Copy Markdown
Contributor Author

@merzleckeier thanks, confirmed and fixed in 17eb12bb5. The water-off branch now also sets $settings.LEONIDA_WATER_TRANSMISSION = '0', and the hair-off branch sets $settings.LEONIDA_HAIR_SHADOW_MASKS = '0', so both reach the environment the F1 restart runs in. This also fixes the hair opt-out loss that was already on main.

Checked on Windows PowerShell 5.1 with -DryRun -NoPrecompile:

  • defaults: only the four motion blur programs are skipped;
  • water off: the five water programs are skipped too;
  • hair off: the two hair masks are skipped too;
  • both off: water and hair are both skipped.

To simulate the restart, I cleared every LEONIDA_* variable and set only what the first dry run printed, then ran the launcher again. With both opt-outs set, the restart's skip list matches the first start's (11 programs). This was a dry-run check only; I have not done a real F1 Save and Restart in the game.

@fiestorra on the key: leonida translate --list over shaders.rpf (wave 32) lists 1aa247ed3653b616 as CS_TransmissionVolumetrics_GenerateTiles in the water shading container. That is the name in docs/findings.md. The list is keyed by the translator's program hash, not by the SPIR-V index of the Vulkan runtime, which probably explains the other three missing keys too.

AI-assisted (Claude Code)

@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Nov 29, 2026
@enlight3d

Copy link
Copy Markdown
Contributor

RUN (independent run, #2617 head 17eb12b, head only: it does not merge with main 060c471. The conflict is in d3d12/scripts/play-nvidia.ps1, where main added two entries to the start of the same LEONIDA_PAIRED_FOR line; d3d12/docs/findings.md merges cleanly. No conflict with #2566 head eade956 per git merge-tree --write-tree).

There is no Rust in this PR (a launcher script and a doc line), so no cargo step applies. The PR adds no test.

Commands (Windows PowerShell 5.1), on the PR head and on its base 4364a4f. -Exe points at an empty placeholder file. -DryRun prints the settings and returns before anything is built or started:

  • play-nvidia.ps1 -Exe <placeholder> -DryRun with nothing set, with LEONIDA_WATER_TRANSMISSION=0, with LEONIDA_WATER_TRANSMISSION=1, with LEONIDA_HAIR_SHADOW_MASKS=0, and with both at 0. All exit 0.

Entries in LEONIDA_SKIP_PIPELINES, head vs base:

  • Default: 4 vs 9. The 5 no longer skipped are exactly the water family (the 5 that LEONIDA_WATER_TRANSMISSION=0 adds back on the head). The 4 left are the same set base skips with LEONIDA_WATER_TRANSMISSION=1.
  • LEONIDA_WATER_TRANSMISSION=0: 9 vs 9, the same set as base's default.
  • LEONIDA_HAIR_SHADOW_MASKS=0: 6 vs 11. Base also drops the water family here; the head adds only the 2 hair shadow masks to the 4.
  • Both at 0: 11 vs 11, the same set.
  • LEONIDA_WATER_TRANSMISSION=1: 4 vs 4, the same set.
  • LEONIDA_PAIRED_FOR has one more entry on the head in every case (40 vs 39). Nothing else in it changes.
  • On the head, an opt-out set to 0 is also written into the settings passed on (LEONIDA_WATER_TRANSMISSION=0, LEONIDA_HAIR_SHADOW_MASKS=0), so a restart from F1 keeps it. Base passes on neither.
  • In no case does the head skip a program that base does not skip.

This matches the three -DryRun cases in the PR body. No test can fail here off-game; the base/head comparison above is the check of the behaviour change.

Not checked: the picture (the black blocks gone, the water clear) and the frame-time cost of running the family by default. The PR measures neither on this card; findings.md cites under 0.3 ms a frame on an RTX 4060 Ti. Both need the game, which this run did not start; an in-game A/B on an RTX 3090 would cover them.
It needs a rebase on main: a one-line conflict, because both sides add to the start of the same list.

Machine: Windows 11 Pro 26300, i9-13900K, 64 GB, RTX 3090 24 GB, NVIDIA 621.40.

@ItsYusei99

Copy link
Copy Markdown
Contributor

RUN: an independent in-game test on a different card, with this PR's two changes applied by hand to a main that already had the conflicting LEONIDA_PAIRED_FOR entries. 1aa247ed3653b616 went first in the list, and LEONIDA_WATER_TRANSMISSION=1 ran the whole family.

Setup:

  • RTX 4070 12 GB, driver 621.40, Ryzen 7 9800X3D, 32 GB RAM, Windows 11.
  • main at dd87aa405, diag build.
  • Series S, DLSS, frame generation 3x, no ray tracing.
  • Same save at a dock, on the surface and then diving.

Log: the tile list takes the named form and gets its host pipeline:

INFO leonida_gpu::shader_cache: these programs are translated in a form asked for by name switch="LEONIDA_PAIRED_FOR" programs=["1aa247ed3653b616", ...
INFO leonida_gpu::pipeline::host: host pipeline shaders=[compute 1aa247ed3653b616]

Only 21 pipelines were rebuilt by the warm-up after the change, out of 93,699.

Run Water from above Under the water Black 8 x 8 blocks
Family dropped (main default) dark and opaque white field of flares, scene not drawn (#2659) none
LEONIDA_WATER_TRANSMISSION=1 alone the same transmission scene drawn many, on the sea seen from the dock
Only 926c46bab3b86bd6 run (the variant bound under water; 5dc3b25986622949 and 6f225b641c5b0708 still dropped) dark, no blocks scene drawn, dim none
This PR (tile list paired + family on) clear: seagrass and seabed seen through it seabed sand, seagrass and pilings drawn, lit none

Speed with this PR: 26-34 fps rendered, 78-102 shown with frame generation 3x, both on the surface and under water.

Not seen here: the missing seabed noted in the description. In these dives the sand was drawn everywhere I looked, but that was only around one dock.

AI-assisted (Claude).

Conflict in d3d12/scripts/play-nvidia.ps1: main added five programs to the start
of LEONIDA_PAIRED_FOR. Both kept: the water's tile list first, then main's list
(45 entries, no duplicates). Both sides' comments kept.

AI-assisted (Claude Code)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kurrutako

Copy link
Copy Markdown
Contributor Author

Merged main (e236b19) in 350eaa7. This resolves the one-line conflict @enlight3d found: main's five new entries keep their place, and the water tile list is still first. LEONIDA_PAIRED_FOR now has 45 entries. The -DryRun skip lists are unchanged: 4 by default, 9 with LEONIDA_WATER_TRANSMISSION=0, and 11 with both opt-outs at 0.

@ItsYusei99 thanks for the in-game run on the RTX 4070. On the seabed, our runs differ:

  • here the sand was not drawn under the water (RTX 5070, Series X, 1440 lines, frame generation 2x);
  • in your run it was drawn (Series S, DLSS, frame generation 3x).

So the missing seabed may depend on the profile or on the output path, not on this change. I haven't tried Series S here. The seabed note in #2570 stays open until someone narrows it down.

AI-assisted (Claude Code)

@github-actions github-actions Bot removed the needs rebase Conflicts with the base branch: rebase it on main label Nov 30, 2026
kurrutako and others added 2 commits November 30, 2026 10:11
… form

ProjectLeonida#2662 (loop convergence on 32-lane hosts, on by default) fixes the tile list in
its own form: played with it unnamed (RTX 5070, Series X, 1440 lines), no black
blocks under the water or seen from above, and the seabed drawn. The launcher
keeps running the water's transmission family by default; the paired list is
main's again.

AI-assisted (Claude Code)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kurrutako kurrutako changed the title NVIDIA launcher: the water's tile list in the paired form, its transmission on again NVIDIA launcher: the water's transmission on by default again Nov 30, 2026
@kurrutako

Copy link
Copy Markdown
Contributor Author

Updated in ced112c, merged with main 1bb726b. I dropped the tile list from LEONIDA_PAIRED_FOR: #2662 fixes it in the translator. To check, I played on main of this morning (with #2662) plus this branch, with the tile list not named (RTX 5070, Series X, 1440 lines, frame generation 2x). There were no black blocks under the water or seen from above.

The seabed is drawn now too. It was missing under the water on yesterday's main, so the open seabed note on #2570 no longer reproduces here.

What's left in this PR: the water's transmission family runs by default again, and both opt-outs (LEONIDA_WATER_TRANSMISSION=0 and LEONIDA_HAIR_SHADOW_MASKS=0) survive the F1 restart. The title and the description are updated.

AI-assisted (Claude Code)

@merzleckeier

Copy link
Copy Markdown
Contributor

The F1 restart issue I reported earlier is fixed in ced112c10. I ran a four-arm launcher comparison on main 4014af7fe: main, #2617, #2626 (fcc044cdc), and both PRs together. All four merged cleanly; the combined tree is 6207453ac.

PowerShell 7.4.21 on CachyOS, synthetic Windows hardware responses and an executable stub. The unmodified launcher started the stub. The stub recorded its inherited environment, wrote an unrelated render-scale setting to the menu file, then replayed the exact LEONIDA_MENU_PLAY and LEONIDA_MENU_ARGS with -DryRun. The 120 first-start/restart pairs covered Series S at 1080p and Series X at 1440p, five water/hair settings, and Motion Blur omitted, explicitly off and explicitly on.

  • The tested NVIDIA launcher: the water's transmission on by default again #2617 head preserved both opt-outs separately and together, including hair off with water explicitly on. All 44 entries in LEONIDA_PAIRED_FOR stayed byte-identical to main across every arm and restart, with the water tile entry absent.

  • With both opt-outs set and -MotionBlur enabled, NVIDIA launcher: the water's transmission on by default again #2617 alone changed from 7 skipped pipelines to 11 on restart. The combined tree stayed at exactly the same 7 on both starts. With default water/hair and Motion Blur enabled it stayed at 0; with hair alone off and Motion Blur omitted it stayed at 6. The saved render-scale setting was read back in all 120 replays.

The two portable launcher tests in the combined tree passed. This was synthetic launcher coverage under PowerShell 7.

AI-assisted: yes (OpenAI Codex).

fowntain pushed a commit that referenced this pull request Dec 1, 2026
From #2617. Confirmed in Boat on the RX 6800.
@MoonEyes

MoonEyes commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

The launcher change of this pull request is in main since 93e65d9 ("launcher: enable water transmission, From #2617", by ubiquitarianism, 14:11 today): all the lines of d3d12/scripts/play-nvidia.ps1 are there. So I am closing it. What main does not have: the 5 lines of d3d12/docs/findings.md. A small docs pull request with them would be welcome. Thank you @kurrutako.

Commit: 93e65d91c

AI-assisted (Claude Code).

@MoonEyes MoonEyes closed this Dec 1, 2026
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.

6 participants