mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 13:08:37 +00:00
d3d12-loader: say where the pool's size sits in its row, and the thousandth above 2/3
Review of de550f7cb (imShangLi):
- The comment called the pool "the third" of the row at 0x6186250, while the patch is 0x18 further on, which reads as
the fourth. Each row is an 8-byte header followed by its nine sizes from +8 (the copy reads [row + 0x8]), so
0x6186268 is the third size. The comment says so now.
- The README said "above 2/3"; the code wants more than 2/3 + 0.001, so that Series S' own 2/3 (0.6667) keeps the
console's budgets. The README says that now.
No code change. cargo test -p leonida-loader --lib hooks: 15 passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -530,7 +530,8 @@ What to expect:
|
||||
64 KiB pages (297 MiB, 710 on the others). At 1080p the first allocation that
|
||||
does not fit stops the title at its own breakpoint as soon as it starts, on a
|
||||
12 GB card too: it is not video memory. Whenever Series S can render above
|
||||
2/3 (a held scale above it with `-Resolution`, or the title's own upscaler
|
||||
its own 2/3 by more than a thousandth, so that 2/3 itself (0.6667) keeps the
|
||||
console's budgets (a held scale above it with `-Resolution`, or the title's own upscaler
|
||||
without a held scale, as `-Lowest` uses it, since that one rises up to 1.0
|
||||
on Series S whatever the lowest), the loader gives both the other consoles'
|
||||
sizes, both or neither
|
||||
|
||||
@ -174,8 +174,9 @@ impl OwnedPatch {
|
||||
}
|
||||
|
||||
/// Leonida: the title's memory pools come from a table of nine sizes per console (`.rdata`, the row at 0x6186250 for
|
||||
/// Series S and the one 0x50 on for the other consoles, copied at start by the function at 0x1e1ced0). The third
|
||||
/// is the pool whose allocator (`.data` 0x71c2808, made at 0x1e1d418) the render targets come from: 1277 MiB on
|
||||
/// Series S and the one 0x50 on for the other consoles, copied at start by the function at 0x1e1ced0). Each row is
|
||||
/// 8 bytes, then its nine sizes of 8 bytes each from +8 (the copy reads `[row + 0x8]`), so the third size, at
|
||||
/// 0x6186268 for Series S, is the pool whose allocator (`.data` 0x71c2808, made at 0x1e1d418) the render targets come from: 1277 MiB on
|
||||
/// Series S, 2199 MiB on the others. A Series S render scale above its own 2/3 does not fit it: at 1.0 an
|
||||
/// allocation of 1 MiB (64 KiB aligned) fails at the first pipelines and the allocator, which treats a failure as
|
||||
/// fatal, stops the title at its breakpoint (0x2219650, called from 0x4fac40e). Given the other consoles' size, it
|
||||
|
||||
Reference in New Issue
Block a user