mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-04 18:01:03 +02:00
Snapdragon 8 Elite (& Adreno 8xx) Fixes
See merge request kenji-nx/ryujinx!20
This commit is contained in:
@@ -334,8 +334,11 @@ namespace Ryujinx.HLE.Loaders.Processes
|
||||
KResourceLimit resourceLimit = new(context);
|
||||
|
||||
long applicationRgSize = (long)context.MemoryManager.MemoryRegions[(int)MemoryRegion.Application].Size;
|
||||
long memoryLimit = applicationRgSize + 12288 * 1024 * 1024L; // Add 12GB slack for System Resource and MapPhysicalMemory
|
||||
|
||||
result = resourceLimit.SetLimitValue(LimitableResource.Memory, applicationRgSize);
|
||||
Logger.Info?.Print(LogClass.Loader, $"Initializing process resource limit: ApplicationRegion={applicationRgSize / 1024 / 1024}MB, Total={memoryLimit / 1024 / 1024}MB");
|
||||
|
||||
result = resourceLimit.SetLimitValue(LimitableResource.Memory, memoryLimit);
|
||||
|
||||
if (result.IsSuccess)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user