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

Closed
Smoodie7 wants to merge 531 commits from upstream-pr/224 into main
Smoodie7 commented 2026-11-27 11:00:41 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by Smoodie7 on 2026-11-27T11:00:41Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5525502209 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/224). Originally posted by [Smoodie7](https://github.com/Smoodie7) on 2026-11-27T11:00:41Z. --- 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.
TaynanGT commented 2026-11-27 11:08:27 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T11:08:27Z.


@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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7216725998 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/224#issuecomment-7216725998). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T11:08:27Z. --- @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 commented 2026-11-30 17:15:35 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:15:35Z.


main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7285976628 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/224#issuecomment-7285976628). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-30T17:15:35Z. --- `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
TaynanGT/Vice-Tay!224
No description provided.