From c62976f2907a54f8b0429bcf67f5e253d8ed38f8 Mon Sep 17 00:00:00 2001 From: KeatonTheBot Date: Sat, 19 Sep 2026 23:56:11 -0500 Subject: [PATCH] Heap adjustments - Increase heap limit to 8 GiB for games that crash with > 8 GiB heap. This was inadvertently limited to 6 GiB for 10 & 12 GiB DRAM sizes. --- src/Ryujinx.HLE/HOS/Kernel/Memory/KPageTableBase.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Ryujinx.HLE/HOS/Kernel/Memory/KPageTableBase.cs b/src/Ryujinx.HLE/HOS/Kernel/Memory/KPageTableBase.cs index 65b3ace6e..7aa21c047 100644 --- a/src/Ryujinx.HLE/HOS/Kernel/Memory/KPageTableBase.cs +++ b/src/Ryujinx.HLE/HOS/Kernel/Memory/KPageTableBase.cs @@ -203,7 +203,9 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory heapRegion.Size = memConfig switch { MemoryConfiguration.MemoryConfiguration8GiB => 0x200000000u, MemoryConfiguration.MemoryConfiguration10GiB when !isHeapLimited => 0x280000000u, + MemoryConfiguration.MemoryConfiguration10GiB => 0x200000000u, MemoryConfiguration.MemoryConfiguration12GiB when !isHeapLimited => 0x300000000u, + MemoryConfiguration.MemoryConfiguration12GiB => 0x200000000u, _ => 0x180000000u }; stackRegion.Size = 0; @@ -238,7 +240,9 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory heapRegion.Size = memConfig switch { MemoryConfiguration.MemoryConfiguration8GiB => 0x200000000u, MemoryConfiguration.MemoryConfiguration10GiB when !isHeapLimited => 0x280000000u, + MemoryConfiguration.MemoryConfiguration10GiB => 0x200000000u, MemoryConfiguration.MemoryConfiguration12GiB when !isHeapLimited => 0x300000000u, + MemoryConfiguration.MemoryConfiguration12GiB => 0x200000000u, _ => 0x180000000u }; stackRegion.Size = 1UL << (addressSpaceWidth - 8); @@ -257,7 +261,9 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory heapRegion.Size = memConfig switch { MemoryConfiguration.MemoryConfiguration8GiB => 0x200000000u, MemoryConfiguration.MemoryConfiguration10GiB when !isHeapLimited => 0x280000000u, + MemoryConfiguration.MemoryConfiguration10GiB => 0x200000000u, MemoryConfiguration.MemoryConfiguration12GiB when !isHeapLimited => 0x300000000u, + MemoryConfiguration.MemoryConfiguration12GiB => 0x200000000u, _ => 0x180000000u }; stackRegion.Size = 0x80000000;