Size the Series S back buffer pool for outputs above 1080p (first step toward 1440p) #224

Open
github-bot wants to merge 1 commit from github-bot/gh-224 into main AGit
Owner

@⁠Smoodie7 on GitHub · 2026-11-27 11:00 UTC · original
Smoodie7:loader/series-s-pool-above-1080p → main · +62 −1 · 1 files · 1 commits · draft

Split out of #217, and opened as a draft: this is a step toward Series S above 1080p, and 1440p is not playable with it yet.

What it fixes: VICTORY_OUTPUT=2560x1440 on Series S stopped before the first frame. The 82 MiB back-buffer pool (mov eax, 82 MiB at +0x247ad45, cmovne against Series X's 64 MiB) runs out in its allocator (int3 at +0x56a2afd, from +0x247aeb6). Above 1920x1080, the Series S size grows by 16 B a pixel past 1080p, rounded to 2 MiB: 108 MiB at 1440p, 178 MiB at 4K. The left-over check at +0x247af25 goes with it. VICTORY_SERIES_S_POOL_MB sets the size by hand. 720p and 1080p are untouched.

Pool at 2560x1440 Result
82 MiB (main) int3 at +0x56a2afd, pool exhausted
90 MiB same
96 / 108 MiB gets past the back buffers and the DLSS context (render 1706x960, output 2560x1440), then the next stop below

The next stop: a 2 MiB, 64 KiB-aligned request fails in +0x4fac3c0: its first try (+0x104070) returns null, and the failure report +0x2219620 ends in int3 at +0x2219650. The allocator object is at +0x71c2808 (rbx), with +0x71be5d8 beside it. The request comes from +0x193e243 (call +0x2474690, a fixed heap). Just before it, that function can take a direct path (+0x193e212: call +0x5f3fcc0 with 0x20003000 / protect 0x283, the XMem-style allocation), but only when bpl & 0x40 and [rsi+0x45] & 4 are both set. So this is the next arena whose size depends on the console. It is the next thing to size, or to route to the direct path, for outputs above 1080p.

cargo test -p victory-loader --locked passes, including the_series_s_pool_grows_only_past_its_own_output. Clippy is clean.

**@⁠Smoodie7** on GitHub · 2026-11-27 11:00 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/224) `Smoodie7:loader/series-s-pool-above-1080p` → `main` · +62 −1 · 1 files · 1 commits · draft Split out of #217, and opened as a draft: this is a step toward Series S above 1080p, and 1440p is **not** playable with it yet. **What it fixes:** `VICTORY_OUTPUT=2560x1440` on Series S stopped before the first frame. The 82 MiB back-buffer pool (`mov eax, 82 MiB` at `+0x247ad45`, `cmovne` against Series X's 64 MiB) runs out in its allocator (`int3` at `+0x56a2afd`, from `+0x247aeb6`). Above 1920x1080, the Series S size grows by 16 B a pixel past 1080p, rounded to 2 MiB: 108 MiB at 1440p, 178 MiB at 4K. The left-over check at `+0x247af25` goes with it. `VICTORY_SERIES_S_POOL_MB` sets the size by hand. 720p and 1080p are untouched. | Pool at 2560x1440 | Result | |---|---| | 82 MiB (main) | `int3` at `+0x56a2afd`, pool exhausted | | 90 MiB | same | | 96 / 108 MiB | gets past the back buffers and the DLSS context (render 1706x960, output 2560x1440), then the next stop below | **The next stop:** a 2 MiB, 64 KiB-aligned request fails in `+0x4fac3c0`: its first try (`+0x104070`) returns null, and the failure report `+0x2219620` ends in `int3` at `+0x2219650`. The allocator object is at `+0x71c2808` (rbx), with `+0x71be5d8` beside it. The request comes from `+0x193e243` (`call +0x2474690`, a fixed heap). Just before it, that function can take a direct path (`+0x193e212`: `call +0x5f3fcc0` with `0x20003000` / protect `0x283`, the XMem-style allocation), but only when `bpl & 0x40` and `[rsi+0x45] & 4` are both set. So this is the next arena whose size depends on the console. It is the next thing to size, or to route to the direct path, for outputs above 1080p. `cargo test -p victory-loader --locked` passes, including `the_series_s_pool_grows_only_past_its_own_output`. Clippy is clean.
VICTORY_OUTPUT=2560x1440 on Series S stopped before the first frame
(#212). The back buffers' pool is 82 MiB on Series S: `mov eax, 82 MiB`
at +0x247ad45, then `cmovne` against the Series X's 64 MiB. The pool's
allocator (+0x56a2ae0) ran past its end and hit its int3 (+0x56a2afd,
from +0x247aeb6). Jumping over the left-over check at +0x247af25 was
not enough there.

For an output larger than 1920x1080, the Series S size grows by 16
bytes for every pixel past 1920x1080, rounded to 2 MiB. That is twice
the 7.5 bytes a pixel the Series X pool's left-over shows between
3840x2160 and 1920x1080, giving 108 MiB at 2560x1440 and 178 MiB at
3840x2160. With a larger pool the left-over check goes too, at
3840x2160 as well. VICTORY_SERIES_S_POOL_MB=<n> (82 to 1024) sets the
size by hand. The 64 MiB Series X size is left as it is.

At 2560x1440 with -Dlss quality -FrameGen: 90 MiB still runs out in
the pool's allocator. 96 and 108 MiB get past the back buffers and the
DLSS context (render 1706x960), and then stop on the next fixed
allocation: a 2 MiB, 64 KiB-aligned request whose failure ends in the
int3 at +0x2219650 (called from +0x4fac413). That is the next thing to
find for Series S above 1080p. 1280x720 and 1920x1080 are unchanged.

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

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

@⁠Smoodie7 The larger pool gets 1440p past back-buffer setup and into DLSS context creation. Keep this draft while we identify the owner of the later 2 MiB request. The useful comparison is the same Series S startup at 1080p and 1440p, with the request size and allocator recorded at that point. That separates the next allocation from the pool change.

**@⁠TaynanGT** on GitHub · 2026-11-27 11:08 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/224#issuecomment-7216725998) @⁠Smoodie7 The larger pool gets 1440p past back-buffer setup and into DLSS context creation. Keep this draft while we identify the owner of the later 2 MiB request. The useful comparison is the same Series S startup at 1080p and 1440p, with the request size and allocator recorded at that point. That separates the next allocation from the pool change.
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/224/head:github-bot/gh-224'
git switch 'github-bot/gh-224'

Merge

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