mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-13 14:44:23 -04:00
romfs/ams.mitm/pm: refactor to dynamically steal heap for certain games. (#2122)
* fs.mitm: skeleton the use of special allocation in romfs build * pm: add api for ams.mitm to steal application memory * pm/mitm: okay, that api won't work, try a different one * romfs: revert memory usage increases; we'll handle torture games case-by-case. * pm/romfs: first (broken?) pass at dynamic heap. I cannot wait to figure out all the ways this is wrong. * Release the dynamic heap a little more eagerly * romfs: animal crossing is also not a nice game * romfs: fix issues in close-during-build * romfs: zelda is a blight upon this earth
This commit is contained in:
parent
85c23b5781
commit
f2ee44da74
31 changed files with 871 additions and 111 deletions
|
@ -69,7 +69,7 @@ namespace ams::fatal::srv {
|
|||
/* Neither heap nor insecure is available, so we're going to have to try to raid the unsafe pool. */
|
||||
{
|
||||
/* First, increase the limit to an extremely high value. */
|
||||
size_t large_size = std::max(64_MB, FrameBufferRequiredSizeHeapAligned);
|
||||
size_t large_size = std::max(128_MB, FrameBufferRequiredSizeHeapAligned);
|
||||
while (svc::ResultLimitReached::Includes(svc::SetUnsafeLimit(large_size))) {
|
||||
large_size *= 2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue