feat: boats float (ocean copy-back on in the launcher), and what main needs under Proton #263
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!263
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/263/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCWhat
tools/lancer_victory.ps1setsVICTORY_OCEAN_READBACK=1, next toVICTORY_DISCORD, so it stays on with-NoTunedSettingstoo.docs/running-gta6.md(anddocs/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 unlessVICTORY_OCEAN_READBACK=1, and the launcher did not set it, so boats sat on the sea bed.VICTORY_TEXTURE_BACK_MODESstays unset (linear layouts only): the height maps are linear, andtexback.rsnotes that copying back XOR modes 2 and 27 turned the water to foam with black patches.Linux. #243 moved
third_party/victoryto Neptune and the 57 Proton/AMD commits of the previous base did not come along. On the Neptune base,mainunder Proton needs: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=0on 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).warm:victory.exe warmtranslates 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.VICTORY_OCEAN_READBACK=1, 8 ocean textures armed (allswizzle_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.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 newtest_launcher_copies_the_ocean_height_maps_back_even_without_tuned_settingsfails without the launcher change.ruff check --select W605,F,E9 PrototypeScarlett tests tools: clean.🤖 Generated with Claude Code
@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: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.
