Allow opting out of half buffer views #113

Open
github-bot wants to merge 2 commits from github-bot/gh-113 into beta-2 AGit
Owner

@⁠Adiker on GitHub · 2026-11-26 19:56 UTC · original
Adiker:codex/half-views-switch → beta-2 · +58 −5 · 5 files · 2 commits · open

In the Proton/RADV runs reported in #19, the half-view path was associated with severe mouth deformation during dialogue. This adds VICTORY_HALF_VIEWS=0 to restore the older float path; the existing half-view behavior remains the default. The older path may leave facial animation at rest.

The shader source scanner includes the switch in the translation fingerprint, so different values use different shader cache keys. play.ps1 lines 65–67 preserve the override for both pre-build and play. The tests cover both lowering paths, the default setting and the fingerprint entry.

Validation on RX 7800 XT / Proton + vkd3d-proton:

  • After cherry-picking the VALU fixture fix, all 25 VALU tests passed with VICTORY_HALF_VIEWS=0 and again with the variable unset.
  • Focused half-view, fingerprint and GPU shader tests: 19 passed; the fingerprint test also passed in a separate process with VICTORY_HALF_VIEWS=0.
  • cargo xwin clippy -p victory-shader --all-targets --target x86_64-pc-windows-msvc --locked -- -D warnings, and with --all-features: passed.
  • Full shader library suite: 247 passed, 1 failed, 2 ignored. emit::tests::stub_pipeline_is_created also fails on unmodified beta-2 (3a2c4dd) under the same Proton setup because a zero digest is accepted.

The earlier game observations in #19 used a larger local integration; this isolated PR has not been tested in game or on native Windows. PowerShell was unavailable locally, so the launcher change was not run here.

AI-assisted.

**@⁠Adiker** on GitHub · 2026-11-26 19:56 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/113) `Adiker:codex/half-views-switch` → `beta-2` · +58 −5 · 5 files · 2 commits · open In the Proton/RADV runs reported in #19, the half-view path was associated with severe mouth deformation during dialogue. This adds `VICTORY_HALF_VIEWS=0` to restore the older float path; the existing half-view behavior remains the default. The older path may leave facial animation at rest. The shader source scanner includes the switch in the translation fingerprint, so different values use different shader cache keys. [`play.ps1` lines 65–67](https://github.com/PastiiJay/klbf-lab/blob/52388bb6b923cb671498155dbce84f1b5125079d/play.ps1#L65-L67) preserve the override for both pre-build and play. The tests cover both lowering paths, the default setting and the fingerprint entry. Validation on RX 7800 XT / Proton + vkd3d-proton: - After cherry-picking the VALU fixture fix, all 25 VALU tests passed with `VICTORY_HALF_VIEWS=0` and again with the variable unset. - Focused half-view, fingerprint and GPU shader tests: 19 passed; the fingerprint test also passed in a separate process with `VICTORY_HALF_VIEWS=0`. - `cargo xwin clippy -p victory-shader --all-targets --target x86_64-pc-windows-msvc --locked -- -D warnings`, and with `--all-features`: passed. - Full shader library suite: 247 passed, 1 failed, 2 ignored. `emit::tests::stub_pipeline_is_created` also fails on unmodified `beta-2` (`3a2c4dd`) under the same Proton setup because a zero digest is accepted. The earlier game observations in #19 used a larger local integration; this isolated PR has not been tested in game or on native Windows. PowerShell was unavailable locally, so the launcher change was not run here. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:59:38 +00:00
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 20:07 UTC · original

Thanks @⁠Adiker, that's exactly the split we hoped for: small, default unchanged, cache key covered, and honest about what wasn't run. Next step on our side is an in-game run on Windows AMD with VICTORY_HALF_VIEWS=0, and we'll post what we see here. One small thing: can you mention in the PR which play.ps1 line keeps the override, so a Windows tester can check it quickly?

**@⁠PastiiJay** on GitHub · 2026-11-26 20:07 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/113#issuecomment-7202320209) Thanks @⁠Adiker, that's exactly the split we hoped for: small, default unchanged, cache key covered, and honest about what wasn't run. Next step on our side is an in-game run on Windows AMD with `VICTORY_HALF_VIEWS=0`, and we'll post what we see here. One small thing: can you mention in the PR which `play.ps1` line keeps the override, so a Windows tester can check it quickly?
Author
Owner

@⁠HandshakeHackin on GitHub · 2026-11-26 20:07 UTC · original

For the Windows retest, play.ps1 lines 65–67 at 52388bb add VICTORY_HALF_VIEWS to the values preserved before both pre-build and play. I verified all six combinations on Windows PowerShell 5.1 (pre-build/play × unset/0/1). A recording executable received the expected value each time and an unrelated override was cleared. The native shader library passed 248 tests with 2 ignored, including the stub-pipeline test mentioned above. Windows job

There is one test-only issue if Cargo is run from the same shell as the retest. With VICTORY_HALF_VIEWS=0, three VALU fixtures expect nonempty half-view metadata and fail (22 passed, 3 failed). Cherry-pickable test fix selects the intended mode inside each fixture. Afterward the full shader library passed with the override set (248 passed, 2 ignored), and all 25 VALU fixtures passed again with it unset. Before-and-after Windows job

These checks used synthetic shaders and a launcher probe. The in-game Windows AMD comparison is still open.

**@⁠HandshakeHackin** on GitHub · 2026-11-26 20:07 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/113#issuecomment-7202333655) For the Windows retest, [play.ps1 lines 65–67 at 52388bb](https://github.com/Adiker/klbf-lab/blob/52388bb6b923cb671498155dbce84f1b5125079d/play.ps1#L65-L67) add `VICTORY_HALF_VIEWS` to the values preserved before both pre-build and play. I verified all six combinations on Windows PowerShell 5.1 (pre-build/play × unset/0/1). A recording executable received the expected value each time and an unrelated override was cleared. The native shader library passed 248 tests with 2 ignored, including the stub-pipeline test mentioned above. [Windows job](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45887945306/job/140143224741) There is one test-only issue if Cargo is run from the same shell as the retest. With `VICTORY_HALF_VIEWS=0`, three VALU fixtures expect nonempty half-view metadata and fail (22 passed, 3 failed). [Cherry-pickable test fix](https://github.com/HandshakeHackin/klbf-lab/commit/b649205f6bff0f029da4636e0c2e4a4ea435283e) selects the intended mode inside each fixture. Afterward the full shader library passed with the override set (248 passed, 2 ignored), and all 25 VALU fixtures passed again with it unset. [Before-and-after Windows job](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45888279881/job/140144334854) These checks used synthetic shaders and a launcher probe. The in-game Windows AMD comparison is still open.
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 20:16 UTC · original

Thanks @⁠HandshakeHackin, verifying all six launcher combinations on PowerShell 5.1 saves a Windows tester a lot of guesswork. @⁠Adiker, could you cherry-pick b649205 into this PR so the VALU fixtures pick their own mode? Then the suite stays green whatever is set in the shell.

**@⁠PastiiJay** on GitHub · 2026-11-26 20:16 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/113#issuecomment-7202490938) Thanks @⁠HandshakeHackin, verifying all six launcher combinations on PowerShell 5.1 saves a Windows tester a lot of guesswork. @⁠Adiker, could you cherry-pick `b649205` into this PR so the VALU fixtures pick their own mode? Then the suite stays green whatever is set in the shell.
github-bot force-pushed github-bot/gh-113 from 52388bb6b9 to 0baad46e20 2026-11-27 00:34:41 +00:00 Compare
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 22:26 UTC · original

Thanks @⁠Adiker, with 0baad46 the fixtures pick their own mode, so the suite no longer depends on what's set in the shell. That covers the point HandshakeHackin raised. Next step on our side is the in-game Windows AMD run with VICTORY_HALF_VIEWS=0, and we'll report here.

**@⁠PastiiJay** on GitHub · 2026-11-26 22:26 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/113#issuecomment-7204684272) Thanks @⁠Adiker, with `0baad46` the fixtures pick their own mode, so the suite no longer depends on what's set in the shell. That covers the point HandshakeHackin raised. Next step on our side is the in-game Windows AMD run with `VICTORY_HALF_VIEWS=0`, and we'll report here.
This pull request can be merged automatically.
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/113/head:github-bot/gh-113'
git switch 'github-bot/gh-113'

Merge

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