LAND_ECHO off by default under Wine: faces lose their skin there with it (#59) #201

Open
github-bot wants to merge 2 commits from github-bot/gh-201 into main AGit
Owner

@⁠amine23012004 on GitHub · 2026-11-26 11:23 UTC · original
amine23012004:fix/wine-land-echo-off → main · +39 −0 · 1 files · 2 commits · open

VICTORY_LAND_ECHO off by default under Wine: faces lose their skin there with it (#59)

Problem. On Proton (RX 9070 XT, RADV) two main characters of the boat cutscene had no facial skin. Bisected over play.ps1's switches in #59: VICTORY_LAND_ECHO=0 alone made every face right, at the same frame rate. -Safe already turns it off.

Change. Under Wine (ntdll exports wine_get_version, the same test victory_hle::modules::xmem uses) LAND_ECHO is off unless VICTORY_LAND_ECHO is set explicitly (=1 turns it back on). Windows is unchanged. One file, crates/victory-gpu/src/shadow.rs.

This changes a default on Wine only; if you'd rather keep defaults identical everywhere and have play.ps1 / the Linux docs set VICTORY_LAND_ECHO=0 instead, I can switch the PR to that.

Verification. Windows CI on my fork: clippy -D warnings + default and diagnostics test suites green (fork PR #3). Not run under Wine by me: the bisection is from #59.

🤖 Generated with Claude Code

**@⁠amine23012004** on GitHub · 2026-11-26 11:23 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/201) `amine23012004:fix/wine-land-echo-off` → `main` · +39 −0 · 1 files · 2 commits · open ## `VICTORY_LAND_ECHO` off by default under Wine: faces lose their skin there with it (#59) **Problem.** On Proton (RX 9070 XT, RADV) two main characters of the boat cutscene had no facial skin. Bisected over `play.ps1`'s switches in #59: `VICTORY_LAND_ECHO=0` alone made every face right, at the same frame rate. `-Safe` already turns it off. **Change.** Under Wine (ntdll exports `wine_get_version`, the same test `victory_hle::modules::xmem` uses) LAND_ECHO is off unless `VICTORY_LAND_ECHO` is set explicitly (`=1` turns it back on). Windows is unchanged. One file, `crates/victory-gpu/src/shadow.rs`. This changes a default on Wine only; if you'd rather keep defaults identical everywhere and have `play.ps1` / the Linux docs set `VICTORY_LAND_ECHO=0` instead, I can switch the PR to that. **Verification.** Windows CI on my fork: clippy `-D warnings` + default and diagnostics test suites green ([fork PR #3](https://github.com/amine23012004/VIctory-7900XTX/pull/3)). Not run under Wine by me: the bisection is from #59. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On Proton (RX 9070 XT, RADV) two main characters of the boat cutscene had
no facial skin; bisected over play.ps1's switches, VICTORY_LAND_ECHO=0
alone made every face right at the same frame rate (#59). Under Wine
(ntdll exports wine_get_version) it is now off unless VICTORY_LAND_ECHO
is set; Windows is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:30:48 +00:00
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-26 12:47 UTC · original

I tried VICTORY_LAND_ECHO=0 on the RX 7900 XT Linux branch with a new story and empty graphics caches. The skin was still missing during the diner exchange. The head blend-shape dispatch timed out at 59.31 s, and its pipeline became ready at 86.27 s. This particular case appears to need a separate scheduling fix. With a 1 KiB limit on compute pipelines built at creation, that pipeline was ready before its first bind and both faces rendered. Cold 720p measurements

**@⁠UwUCammie** on GitHub · 2026-11-26 12:47 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/201#issuecomment-7192455833) I tried `VICTORY_LAND_ECHO=0` on the RX 7900 XT Linux branch with a new story and empty graphics caches. The skin was still missing during the diner exchange. The head blend-shape dispatch timed out at 59.31 s, and its pipeline became ready at 86.27 s. This particular case appears to need a separate scheduling fix. With a 1 KiB limit on compute pipelines built at creation, that pipeline was ready before its first bind and both faces rendered. [Cold 720p measurements](https://github.com/UwUCammie/victory-amd/tree/6606f6d7/benchmarks#cold-control-and-compute-at-creation-comparison)
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-26 12:52 UTC · original

Independent Wine qualification of the default and the diagnostic selector

Tested the direct parent 9576c45f1d551be0cfde154da027707658ce031e against this head 5567c8b5a5ebaf3d3534ba47187909b305c80037. Both actual Windows-target victory-gpu crates were compiled with Rust 1.98.1, LLVM MinGW (x86_64-pc-windows-gnullvm), locked dependencies, profile diag and diagnostics, then executed under GE-Proton 11-14 (Wine 11.0 Staging) in separate fresh prefixes. No title or GPU devices were exposed to these tests. The same authored fixture required the actual Wine export and exercised the actual land_echo() selector, note_landing, Shadow::take, send_up and joined using six 4 KiB pages with independently expected bytes, including later title writes.

Setting Parent PR head
VICTORY_LAND_ECHO unset On: 16 KiB in 3 ranges Off: 24 KiB in 1 range
Explicit =0 Off Off
Explicit =1 On On
VICTORY_AB=1.1,VICTORY_LAND_ECHO, variable unset Actual off → on Actual off → off
Same A/B, explicit VICTORY_LAND_ECHO=1 Not separately needed Actual off → on

For the enabled path, the ECHO counters were 8 KiB left and 4 KiB changed; the disabled path reported zero for both. Both paths preserved the title, side and simulated card bytes. The existing landing test and the concurrent landing/title-write/refresh test (120 rounds) also passed in both policy states. Across the 15 separate Wine invocations, 13 passed and 2 failed at the deliberately selected policy assertions: the parent did not have the proposed Wine default, and the head's unset-variable A/B did not follow the advertised phase. Both builds succeeded, all test scopes retired, and the host OOM counter did not advance.

So the proposed Wine default and explicit overrides do work in the tested path. One small diagnostics caveat: the Wine-default early return currently precedes the shared A/B selector, so the logged off-to-on phase is not the actual switch transition unless the variable is explicitly set to 1. For measurements intended to toggle the setting on this head, set that variable as well, or have the Wine default flow through the A/B selector.

This is a byte-preservation and selection test, not reproduction of #59's visual result or proof that switching LAND_ECHO off fixes all missing skin. The separate late blend-shape pipeline result from @⁠UwUCammie is a useful reason to keep readiness/scheduling and landing refresh as distinct investigations.

AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).

**@⁠ArturoWolff** on GitHub · 2026-11-26 12:52 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/201#issuecomment-7192578704) ### Independent Wine qualification of the default and the diagnostic selector Tested the direct parent `9576c45f1d551be0cfde154da027707658ce031e` against this head `5567c8b5a5ebaf3d3534ba47187909b305c80037`. Both actual Windows-target `victory-gpu` crates were compiled with Rust 1.98.1, LLVM MinGW (`x86_64-pc-windows-gnullvm`), locked dependencies, profile `diag` and `diagnostics`, then executed under GE-Proton 11-14 (Wine 11.0 Staging) in separate fresh prefixes. No title or GPU devices were exposed to these tests. The same authored fixture required the actual Wine export and exercised the actual `land_echo()` selector, `note_landing`, `Shadow::take`, `send_up` and `joined` using six 4 KiB pages with independently expected bytes, including later title writes. | Setting | Parent | PR head | |---|---|---| | `VICTORY_LAND_ECHO` unset | On: 16 KiB in 3 ranges | Off: 24 KiB in 1 range | | Explicit `=0` | Off | Off | | Explicit `=1` | On | On | | `VICTORY_AB=1.1,VICTORY_LAND_ECHO`, variable unset | Actual off → on | Actual off → off | | Same A/B, explicit `VICTORY_LAND_ECHO=1` | Not separately needed | Actual off → on | For the enabled path, the ECHO counters were 8 KiB left and 4 KiB changed; the disabled path reported zero for both. Both paths preserved the title, side and simulated card bytes. The existing landing test and the concurrent landing/title-write/refresh test (120 rounds) also passed in both policy states. Across the 15 separate Wine invocations, 13 passed and 2 failed at the deliberately selected policy assertions: the parent did not have the proposed Wine default, and the head's unset-variable A/B did not follow the advertised phase. Both builds succeeded, all test scopes retired, and the host OOM counter did not advance. So the proposed Wine default and explicit overrides do work in the tested path. One small diagnostics caveat: the Wine-default early return currently precedes the shared A/B selector, so the logged off-to-on phase is not the actual switch transition unless the variable is explicitly set to `1`. For measurements intended to toggle the setting on this head, set that variable as well, or have the Wine default flow through the A/B selector. This is a byte-preservation and selection test, **not** reproduction of #59's visual result or proof that switching LAND_ECHO off fixes all missing skin. The separate late blend-shape pipeline result from @⁠UwUCammie is a useful reason to keep readiness/scheduling and landing refresh as distinct investigations. AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
The Wine default returned before `toggled!`, so a run with
`VICTORY_AB=<s>,VICTORY_LAND_ECHO` and the variable unset logged off/on
phases while LAND_ECHO stayed off in both (found by ArturoWolff's Wine
test on this PR). The default now stands aside when `VICTORY_AB` names
the switch; in builds without diagnostics nothing changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠amine23012004 on GitHub · 2026-11-26 14:43 UTC · original

Thanks @⁠ArturoWolff, good catch: the Wine default returned before toggled!, so the A/B phases were logged but LAND_ECHO stayed off. 2409ea7 lets the default stand aside when VICTORY_AB names the switch (diagnostics builds only; nothing changes without them).

@⁠UwUCammie thanks, agreed: this PR only changes the landing default for the boat-cutscene case in #59; the late blend-shape pipeline is a separate readiness/scheduling issue and shouldn't be read as fixed by this.

**@⁠amine23012004** on GitHub · 2026-11-26 14:43 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/201#issuecomment-7195223609) Thanks @⁠ArturoWolff, good catch: the Wine default returned before `toggled!`, so the A/B phases were logged but LAND_ECHO stayed off. 2409ea7 lets the default stand aside when `VICTORY_AB` names the switch (diagnostics builds only; nothing changes without them). @⁠UwUCammie thanks, agreed: this PR only changes the landing default for the boat-cutscene case in #59; the late blend-shape pipeline is a separate readiness/scheduling issue and shouldn't be read as fixed by this.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/201/head:github-bot/gh-201'
git switch 'github-bot/gh-201'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-201'
git switch 'github-bot/gh-201'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-201'
git switch 'github-bot/gh-201'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-201'
git switch 'main'
git merge --squash 'github-bot/gh-201'
git switch 'main'
git merge --ff-only 'github-bot/gh-201'
git switch 'main'
git merge 'github-bot/gh-201'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.