feat: boats float (ocean copy-back on in the launcher), and what main needs under Proton #263

Manually merged
github merged 2 commits from gh-pr/263/head into gh-pr/263/base 2026-11-26 05:40:58 +00:00
Owner

@⁠Exorion1er on GitHub · 2026-11-25 22:29 UTC · original
Exorion1er:feat/launcher-ocean-readback → main · +46 −1 · 4 files · 2 commits · merged 2026-11-25 22:44 UTC

What

  1. tools/lancer_victory.ps1 sets VICTORY_OCEAN_READBACK=1, next to VICTORY_DISCORD, so it stays on with -NoTunedSettings too.
  2. docs/running-gta6.md (and docs/fr/lancer-gta6.md): a paragraph on that switch, and an "On Linux (Proton, AMD)" section for the Neptune base.

Why

Boats. The title's wave passes write the ocean's height map (256x256 R32_FLOAT) and displacement map (R32G32_FLOAT) on the GPU, and its CPU code samples them to float boats. On the console both share memory; under VIctory the texels stay in the host copy unless they are copied back. Our copy already has that copy-back (crates/victory-gpu/src/texback.rs, Neptune's port of Geckomacabre/vx-layer and MiamiGame/XTP), but it is off unless VICTORY_OCEAN_READBACK=1, and the launcher did not set it, so boats sat on the sea bed. VICTORY_TEXTURE_BACK_MODES stays unset (linear layouts only): the height maps are linear, and texback.rs notes that copying back XOR modes 2 and 27 turned the water to foam with black patches.

Linux. #243 moved third_party/victory to Neptune and the 57 Proton/AMD commits of the previous base did not come along. On the Neptune base, main under Proton needs:

  • Microsoft's d3dcompiler_47.dll (d3dcompiler_47=n): Wine's builtin refuses VIctory's helper shaders ('InterlockedMax' is not defined on type 'RWByteAddressBuffer'), the indirect argument clamp is missing, every indirect draw is dropped, and only the UI shows over a black world. Neptune has no DXC fallback.
  • VKD3D_CONFIG=descriptor_heap, as before.
  • VICTORY_LATE_WAIT=0 on RADV: with the relay on (Neptune's set), unset means stage 3, and the device was lost at about 80 s and 105 s (0x887A0005, the kernel reporting a GPU page fault from shader data loads).
  • No warm: victory.exe warm translates everything and makes the compute pipelines, then hangs under Proton.

The new section sits at the end of the Neptune section; #261 (view-tree wineserver) adds its own under the previous base's section, so the two do not touch the same lines.

Measured

Linux only: Fedora 44, RX 9070 XT 16 GB, RADV through vkd3d-proton, GE-Proton11-12 with the view-tree wineserver, release build of main (9a06443's tree) with the launcher's switch set, on my own copy of the game.

  • Boats: with VICTORY_OCEAN_READBACK=1, 8 ocean textures armed (all swizzle_mode=0), about 14 copied back per frame over a 20-minute run; the boat of the first chapter-1 mission floats and the mission goes on. Without it, same save: the boat sits on the sea bed.
  • d3dcompiler_47: with Wine's builtin, the three helper shaders fail to compile at start and the world is black; with Microsoft's, they compile and the world draws.
  • Late waits: two device losses without VICTORY_LATE_WAIT=0 (about 80 s and 105 s); four runs of 2.6 to 20 minutes without a loss with it. Measured, not proven.
  • warm: one hang, after the compute pipelines were made; not diagnosed.

Not measured: Windows (the launcher change applies there too), other AMD drivers, NVIDIA under Proton.

Checks

  • pytest: 1093 passed, 322 skipped (Linux; the PowerShell launcher tests are skipped there). The new test_launcher_copies_the_ocean_height_maps_back_even_without_tuned_settings fails without the launcher change.
  • ruff check --select W605,F,E9 PrototypeScarlett tests tools: clean.

🤖 Generated with Claude Code

**@⁠Exorion1er** on GitHub · 2026-11-25 22:29 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/263) `Exorion1er:feat/launcher-ocean-readback` → `main` · +46 −1 · 4 files · 2 commits · merged 2026-11-25 22:44 UTC ## What 1. `tools/lancer_victory.ps1` sets `VICTORY_OCEAN_READBACK=1`, next to `VICTORY_DISCORD`, so it stays on with `-NoTunedSettings` too. 2. `docs/running-gta6.md` (and `docs/fr/lancer-gta6.md`): a paragraph on that switch, and an "On Linux (Proton, AMD)" section for the Neptune base. ## Why **Boats.** The title's wave passes write the ocean's height map (256x256 R32_FLOAT) and displacement map (R32G32_FLOAT) on the GPU, and its CPU code samples them to float boats. On the console both share memory; under VIctory the texels stay in the host copy unless they are copied back. Our copy already has that copy-back (`crates/victory-gpu/src/texback.rs`, Neptune's port of Geckomacabre/vx-layer and MiamiGame/XTP), but it is off unless `VICTORY_OCEAN_READBACK=1`, and the launcher did not set it, so boats sat on the sea bed. `VICTORY_TEXTURE_BACK_MODES` stays unset (linear layouts only): the height maps are linear, and `texback.rs` notes that copying back XOR modes 2 and 27 turned the water to foam with black patches. **Linux.** #243 moved `third_party/victory` to Neptune and the 57 Proton/AMD commits of the previous base did not come along. On the Neptune base, `main` under Proton needs: - Microsoft's `d3dcompiler_47.dll` (`d3dcompiler_47=n`): Wine's builtin refuses VIctory's helper shaders (`'InterlockedMax' is not defined on type 'RWByteAddressBuffer'`), the indirect argument clamp is missing, every indirect draw is dropped, and only the UI shows over a black world. Neptune has no DXC fallback. - `VKD3D_CONFIG=descriptor_heap`, as before. - `VICTORY_LATE_WAIT=0` on RADV: with the relay on (Neptune's set), unset means stage 3, and the device was lost at about 80 s and 105 s (`0x887A0005`, the kernel reporting a GPU page fault from shader data loads). - No `warm`: `victory.exe warm` translates everything and makes the compute pipelines, then hangs under Proton. The new section sits at the end of the Neptune section; #261 (view-tree wineserver) adds its own under the previous base's section, so the two do not touch the same lines. ## Measured Linux only: Fedora 44, RX 9070 XT 16 GB, RADV through vkd3d-proton, GE-Proton11-12 with the view-tree wineserver, release build of `main` (`9a06443`'s tree) with the launcher's switch set, on my own copy of the game. - Boats: with `VICTORY_OCEAN_READBACK=1`, 8 ocean textures armed (all `swizzle_mode=0`), about 14 copied back per frame over a 20-minute run; the boat of the first chapter-1 mission floats and the mission goes on. Without it, same save: the boat sits on the sea bed. - `d3dcompiler_47`: with Wine's builtin, the three helper shaders fail to compile at start and the world is black; with Microsoft's, they compile and the world draws. - Late waits: two device losses without `VICTORY_LATE_WAIT=0` (about 80 s and 105 s); four runs of 2.6 to 20 minutes without a loss with it. Measured, not proven. - `warm`: one hang, after the compute pipelines were made; not diagnosed. Not measured: Windows (the launcher change applies there too), other AMD drivers, NVIDIA under Proton. ## Checks - `pytest`: 1093 passed, 322 skipped (Linux; the PowerShell launcher tests are skipped there). The new `test_launcher_copies_the_ocean_height_maps_back_even_without_tuned_settings` fails without the launcher change. - `ruff check --select W605,F,E9 PrototypeScarlett tests tools`: clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:40:55 +00:00
github manually merged commit 6297f17a64 into gh-pr/263/base 2026-11-26 05:40:58 +00:00
Author
Owner

@⁠Naturaldragon30 on GitHub · 2026-11-25 22:48 UTC · original

Windows With this fix works in Gone Fising mission using windows 11 RTX 5060ti 16gb ryzen 9 7900x 32gb ram ddr5 6400

**@⁠Naturaldragon30** on GitHub · 2026-11-25 22:48 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/263#issuecomment-7176818208) Windows With this fix works in Gone Fising mission using windows 11 RTX 5060ti 16gb ryzen 9 7900x 32gb ram ddr5 6400
Author
Owner

@⁠Naturaldragon30 on GitHub · 2026-11-25 22:57 UTC · original

The boat physics now work correctly, but the water itself still has rendering issues. There are black rectangular artifacts scattered across the water surface. Buoyancy and boat movement appear to be working normally despite the visual corruption.
Screenshot 2026-11-25 174804

**@⁠Naturaldragon30** on GitHub · 2026-11-25 22:57 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/263#issuecomment-7176972643) The boat physics now work correctly, but the water itself still has rendering issues. There are black rectangular artifacts scattered across the water surface. Buoyancy and boat movement appear to be working normally despite the visual corruption. <img width="1875" height="654" alt="Screenshot 2026-11-25 174804" src="https://github.com/user-attachments/assets/f447765a-9a64-4558-9b95-e0fbd3f47dde" />
This discussion has been locked. Commenting is limited to contributors.
No description provided.