Series S: both upscaler choices return the title's own upscaler on the known build #123

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

@⁠Geckomacabre on GitHub · 2026-11-27 03:09 UTC · original
Geckomacabre:pr/series-s-upscaler → main · +242 −9 · 4 files · 2 commits · draft

On a Series S launch the title can choose AMD FidelityFX (type 7) instead of its own upscaler (type 6). FidelityFX's output never reaches the screen here and its DLL is refused by the host policy (a host DLL outside the host policy: refused amd_fidelityfx_upscaler_xbox.dll), so the world stays black. VICTORY_UPSCALER=6 patches the picker (+0x7e93f0), but the title asks a per-frame copy of it (+0x5400190) every frame.

  • KNOWN_BUILDS gets the master build's hash (the BLAKE3 only).
  • With --console series-s on that build, both sites return 6, each compared byte for byte first (the per-frame copy compares 32 bytes). VICTORY_UPSCALER=<kind> still overrides, now at both sites; VICTORY_TITLE_PATCHES=0 leaves the title's choice, =1 applies it on any console.
  • Log: resolution: upscaler picker (the per-frame copy) (returns 6) ... Done.

Tested on an RTX 4090 (Series S): the first launch of 544bff7 here was black with the log line above; with both sites patched the picture has been right in every launch since (several builds on this tree's line). Both sites as in fxceless/victory-fork #798 (KyleS98). This may explain part of #98 / #86 on Series S: their stderr would show the refused FidelityFX DLL.

Checks: cargo check -p victory --features diagnostics --tests passes on this branch. Unit tests (victory-loader, victory-game, victory: the known-build and patch tests) are pending; results will follow as a comment.

🤖 Generated with Claude Code

**@⁠Geckomacabre** on GitHub · 2026-11-27 03:09 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/123) `Geckomacabre:pr/series-s-upscaler` → `main` · +242 −9 · 4 files · 2 commits · draft On a Series S launch the title can choose AMD FidelityFX (type 7) instead of its own upscaler (type 6). FidelityFX's output never reaches the screen here and its DLL is refused by the host policy (`a host DLL outside the host policy: refused amd_fidelityfx_upscaler_xbox.dll`), so the world stays black. `VICTORY_UPSCALER=6` patches the picker (+0x7e93f0), but the title asks a per-frame copy of it (+0x5400190) every frame. - `KNOWN_BUILDS` gets the master build's hash (the BLAKE3 only). - With `--console series-s` on that build, both sites return 6, each compared byte for byte first (the per-frame copy compares 32 bytes). `VICTORY_UPSCALER=<kind>` still overrides, now at both sites; `VICTORY_TITLE_PATCHES=0` leaves the title's choice, `=1` applies it on any console. - Log: `resolution: upscaler picker (the per-frame copy) (returns 6) ... Done`. **Tested** on an RTX 4090 (Series S): the first launch of 544bff7 here was black with the log line above; with both sites patched the picture has been right in every launch since (several builds on this tree's line). Both sites as in fxceless/victory-fork #798 (KyleS98). This may explain part of #98 / #86 on Series S: their stderr would show the refused FidelityFX DLL. **Checks:** `cargo check -p victory --features diagnostics --tests` passes on this branch. Unit tests (`victory-loader`, `victory-game`, `victory`: the known-build and patch tests) are pending; results will follow as a comment. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On a Series S the title can pick AMD FidelityFX (type 7) instead of its own
upscaler (type 6). FidelityFX's output never reaches the screen here and its DLL is
refused by the host policy ("a host DLL outside the host policy: refused
amd_fidelityfx_upscaler_xbox.dll"), so the world stays black. VICTORY_UPSCALER=6
patched only the picker (+0x7e93f0); the title asks a per-frame copy of it
(+0x5400190) again every frame.

- KNOWN_BUILDS gets the master build's hash.
- With --console series-s and that build, the picker and its per-frame copy (now a
  site of its own, 32 bytes compared) return 6. VICTORY_UPSCALER=<kind> still
  overrides, now at both sites; VICTORY_TITLE_PATCHES=0 leaves the title's choice,
  =1 applies it on any console.
- Log: 'resolution: upscaler picker (the per-frame copy) (returns 6) ... Done'.

From fxceless/victory-fork #798 by KyleS98 (both sites).

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

@⁠TaynanGT on GitHub · 2026-11-27 03:13 UTC · original

Thanks, @⁠Geckomacabre. I tested ce8cd00 against current main. All six loader resolution tests, the known-build test and the console switch test passed. The asset and documented-switch checks passed too.

Both of Henry's logs in #98 contain the host-policy warning, followed by a successful mapping of the same DLL through the title loader with zero missing imports. The c00 root-signature errors also persist. That leaves a useful upscaler hypothesis to test separately.

Could you make the default change apply as a pair, as KyleS98's original patch does? The current loop can change the first picker and leave the per-frame picker alone if its signature differs. Please check both signatures before writing either, and cover a mismatched second site in a test. The docs could also clarify that VICTORY_TITLE_PATCHES=0 disables the automatic choice and an explicit VICTORY_UPSCALER still takes precedence.

For the picture check, could you compare two Series S launches from the same cache snapshot with VICTORY_UPSCALER unset, one with VICTORY_TITLE_PATCHES=0 and one with the default? The picker results, the first visible world frame and the HUD size would help. #115 reported a HUD sizing issue with the older single-picker override.

**@⁠TaynanGT** on GitHub · 2026-11-27 03:13 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/123#issuecomment-7208805870) Thanks, @⁠Geckomacabre. I tested `ce8cd00` against current `main`. All six loader resolution tests, the known-build test and the console switch test passed. The asset and documented-switch checks passed too. Both of Henry's logs in #98 contain the host-policy warning, followed by a successful mapping of the same DLL through the title loader with zero missing imports. The `c00` root-signature errors also persist. That leaves a useful upscaler hypothesis to test separately. Could you make the default change apply as a pair, as KyleS98's original patch does? The current loop can change the first picker and leave the per-frame picker alone if its signature differs. Please check both signatures before writing either, and cover a mismatched second site in a test. The docs could also clarify that `VICTORY_TITLE_PATCHES=0` disables the automatic choice and an explicit `VICTORY_UPSCALER` still takes precedence. For the picture check, could you compare two Series S launches from the same cache snapshot with `VICTORY_UPSCALER` unset, one with `VICTORY_TITLE_PATCHES=0` and one with the default? The picker results, the first visible world frame and the HUD size would help. #115 reported a HUD sizing issue with the older single-picker override.
Author
Owner

@⁠Geckomacabre on GitHub · 2026-11-27 03:34 UTC · original

Test results for this branch (Windows 11, RTX 4090, toolchain 1.98.1, --test-threads=1):

  • cargo check -p victory --features diagnostics --tests: clean.
  • cargo test -p victory-loader -p victory-game -p victory -- --test-threads=1 resolution known title_patches: all passed (victory 1, victory-game 1, victory-loader 7; 0 failed), including known_builds_are_well_formed, title_patches_follow_the_console_and_the_switch, series_s_takes_the_titles_own_upscaler_unless_asked, a_site_is_written_only_over_its_bytes and the existing resolution tests.

🤖 Generated with Claude Code

**@⁠Geckomacabre** on GitHub · 2026-11-27 03:34 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/123#issuecomment-7209094180) Test results for this branch (Windows 11, RTX 4090, toolchain 1.98.1, `--test-threads=1`): - `cargo check -p victory --features diagnostics --tests`: clean. - `cargo test -p victory-loader -p victory-game -p victory -- --test-threads=1 resolution known title_patches`: all passed (victory 1, victory-game 1, victory-loader 7; 0 failed), including `known_builds_are_well_formed`, `title_patches_follow_the_console_and_the_switch`, `series_s_takes_the_titles_own_upscaler_unless_asked`, `a_site_is_written_only_over_its_bytes` and the existing resolution tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 04:02 UTC · original

Thanks for the targeted tests, @⁠Geckomacabre. I approved CI for ce8cd00, and the full Windows workflow passed. The remaining case is a mismatch at only the per-frame picker: both sites should be checked before either is changed. A regression test for that case plus the matched Series S launch comparison would cover the open review points. CI run

**@⁠TaynanGT** on GitHub · 2026-11-27 04:02 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/123#issuecomment-7209465543) Thanks for the targeted tests, @⁠Geckomacabre. I approved CI for `ce8cd00`, and the full Windows workflow passed. The remaining case is a mismatch at only the per-frame picker: both sites should be checked before either is changed. A regression test for that case plus the matched Series S launch comparison would cover the open review points. [CI run](https://github.com/TaynanGT/Vice-Tay/actions/runs/45932469464)
write_all() compares every site before writing any and puts the written ones back if a
later site cannot be made writable; the picker and its per-frame copy go through it, so
a build where only one site matches is left with neither changed. Tests: a mismatched
second site writes nothing; a failed write after the first site restores it.
docs/this-fork.md: VICTORY_TITLE_PATCHES=0 turns the automatic choice off; an explicit
VICTORY_UPSCALER takes precedence and goes to both sites.

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

@⁠Geckomacabre on GitHub · 2026-11-27 04:07 UTC · original

Thanks for the review. Pushed 64e9806:

  • Pair: a new write_all() compares both sites before writing either; if a site cannot be made writable after the first was written, the first gets its old bytes back. The picker and its per-frame copy go through it as one pair, so a build where only one site matches is left with neither changed (one warning names the site that stopped it).
  • Tests: the_upscaler_pair_is_written_whole_or_not_at_all (mismatched second site: nothing written) and a_failed_write_after_the_first_site_puts_the_first_back (writer injected, fails on the second write).
  • Docs: docs/this-fork.md now says VICTORY_TITLE_PATCHES=0 turns the automatic choice off and an explicit VICTORY_UPSCALER takes precedence (written to both sites).

Status: cargo check and the unit tests of this revision are not run yet; I will post them here after the next build window.

On #98: agreed, Henry's logs map the DLL through the title loader afterwards, so this is at most a separate hypothesis there.

Matched Series S pair: I don't have it yet and won't guess numbers. What we can record from two launches of the same build, same cache snapshot, same save, VICTORY_UPSCALER unset, one with VICTORY_TITLE_PATCHES=0 and one with the default:

  • the resolution: lines for both picker sites (patched / not patched) and whether refused amd_fidelityfx_upscaler_xbox.dll appears;
  • the frame line at the first world frame (frame number and time since start) and whether that frame is black (frame capture from the diagnostics build);
  • a screenshot of the HUD at the same spot in each launch, with the HUD's width and height measured in pixels against the output size.
    I'll post the results here once that run is done.

🤖 Generated with Claude Code

**@⁠Geckomacabre** on GitHub · 2026-11-27 04:07 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/123#issuecomment-7209533386) Thanks for the review. Pushed 64e9806: - **Pair:** a new `write_all()` compares both sites before writing either; if a site cannot be made writable after the first was written, the first gets its old bytes back. The picker and its per-frame copy go through it as one pair, so a build where only one site matches is left with neither changed (one warning names the site that stopped it). - **Tests:** `the_upscaler_pair_is_written_whole_or_not_at_all` (mismatched second site: nothing written) and `a_failed_write_after_the_first_site_puts_the_first_back` (writer injected, fails on the second write). - **Docs:** `docs/this-fork.md` now says `VICTORY_TITLE_PATCHES=0` turns the automatic choice off and an explicit `VICTORY_UPSCALER` takes precedence (written to both sites). Status: `cargo check` and the unit tests of this revision are not run yet; I will post them here after the next build window. On #98: agreed, Henry's logs map the DLL through the title loader afterwards, so this is at most a separate hypothesis there. **Matched Series S pair:** I don't have it yet and won't guess numbers. What we can record from two launches of the same build, same cache snapshot, same save, `VICTORY_UPSCALER` unset, one with `VICTORY_TITLE_PATCHES=0` and one with the default: - the `resolution:` lines for both picker sites (patched / not patched) and whether `refused amd_fidelityfx_upscaler_xbox.dll` appears; - the frame line at the first world frame (frame number and time since start) and whether that frame is black (frame capture from the diagnostics build); - a screenshot of the HUD at the same spot in each launch, with the HUD's width and height measured in pixels against the output size. I'll post the results here once that run is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠Geckomacabre on GitHub · 2026-11-27 04:13 UTC · original

Results for 64e9806 (Windows 11, RTX 4090, toolchain 1.98.1, --test-threads=1):

  • cargo check -p victory --features diagnostics --tests: clean, no warnings.
  • cargo test -p victory-loader -p victory-game -p victory -- --test-threads=1 resolution known title_patches: 11 passed, 0 failed (victory 1, victory-game 1, victory-loader 9), including the new the_upscaler_pair_is_written_whole_or_not_at_all and a_failed_write_after_the_first_site_puts_the_first_back.

The matched Series S pair is next.

🤖 Generated with Claude Code

**@⁠Geckomacabre** on GitHub · 2026-11-27 04:13 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/123#issuecomment-7209627179) Results for 64e9806 (Windows 11, RTX 4090, toolchain 1.98.1, `--test-threads=1`): - `cargo check -p victory --features diagnostics --tests`: clean, no warnings. - `cargo test -p victory-loader -p victory-game -p victory -- --test-threads=1 resolution known title_patches`: 11 passed, 0 failed (victory 1, victory-game 1, victory-loader 9), including the new `the_upscaler_pair_is_written_whole_or_not_at_all` and `a_failed_write_after_the_first_site_puts_the_first_back`. The matched Series S pair is next. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 04:18 UTC · original

Thanks for adding the two-site checks, @⁠Geckomacabre. I carried your patch into draft #149 with the writable-page preflight completed before either picker is written. The Windows regression test covers a reserved second page and confirms that both the original bytes and page protection are preserved. The matched Series S HUD and first-picture comparison is the remaining validation.

**@⁠TaynanGT** on GitHub · 2026-11-27 04:18 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/123#issuecomment-7209690427) Thanks for adding the two-site checks, @⁠Geckomacabre. I carried your patch into [draft #149](https://git.gtahub.st/github/TaynanGT--Vice-Tay/pulls/149) with the writable-page preflight completed before either picker is written. The Windows regression test covers a reserved second page and confirms that both the original bytes and page protection are preserved. The matched Series S HUD and first-picture comparison is the remaining validation.
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/123/head:github-bot/gh-123'
git switch 'github-bot/gh-123'

Merge

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