Skip to content

fix(gpu): copy the ocean maps back by default so boats float (LEONIDA_TEXTURE_BACK) - #61

Merged
ShinniUwU merged 1 commit into
ProjectLeonidaL:mainfrom
ShinniUwU:fix/texture-back-default
Nov 26, 2026
Merged

ShinniUwU merged 1 commit into
ProjectLeonidaL:mainfrom
ShinniUwU:fix/texture-back-default

Conversation

@ShinniUwU

Copy link
Copy Markdown
Contributor

What changed

LEONIDA_TEXTURE_BACK (texback.rs) copies the ocean's height and displacement maps, which compute passes write, back into title memory, where the title's boat physics reads them. It was off unless set; now it is on unless set to 0 (a list of kinds still picks others). Without it the boat at the start of the first fishing mission falls through the water and the mission fails. Belobug/VIctory-Belobug-AMD has it on by default for the same reason ("sank in every one" without it, its docs/findings.md). No TODO row; a fix with no ID.

How it was tested

  • Played: I ran the game with LEONIDA_TEXTURE_BACK=1 and played the start of the first fishing mission (fill in Playtest below).

Checks run on this branch:

  • cargo test --workspace --locked: no failure
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
  • cargo xtask policy

Playtest

GPU and driver RTX 3080 12 GB, driver 621.24
CPU, RAM Ryzen 7 7800X3D, 32 GB
Windows or Wine/Proton version Windows 11 Pro 25H2 (26200)
Console profile Series X
Where in the game start of the first fishing mission (the boat)
How long until the boat was under way
Frame rate or frame time before (main) not measured
Frame rate or frame time after (this branch) not measured
  • Before and after were measured in the same place: not measured; the switch existed already, this only changes its default
  • No crash report was written and the device was not lost
  • The picture looks the same or better: the boat stays on the water instead of falling through it, and the mission goes on

Cost, from the code: about a megabyte copied back per list that writes one of the four kinds (the shortcut: in texback.rs). Tested with the switch set to 1 on a build before this change, which is the path this branch now takes by default.

AI

  • AI-assisted: the change, the notes and this description were done with Claude Code; I played the mission.

🤖 Generated with Claude Code

@ShinniUwU
ShinniUwU merged commit b827b9e into ProjectLeonidaL:main Nov 26, 2026
1 check passed
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.

1 participant