diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2020-06-10 06:49:00 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2020-06-10 06:49:00 +0200 |
commit | 74ff1db758a67601b2fa02ea1668ec05f1c5e2ff (patch) | |
tree | 698a8d438dfdcff995ce4938b07107c73d833079 | |
parent | Merge pull request #4027 from ReinUsesLisp/3d-slices (diff) | |
download | yuzu-74ff1db758a67601b2fa02ea1668ec05f1c5e2ff.tar yuzu-74ff1db758a67601b2fa02ea1668ec05f1c5e2ff.tar.gz yuzu-74ff1db758a67601b2fa02ea1668ec05f1c5e2ff.tar.bz2 yuzu-74ff1db758a67601b2fa02ea1668ec05f1c5e2ff.tar.lz yuzu-74ff1db758a67601b2fa02ea1668ec05f1c5e2ff.tar.xz yuzu-74ff1db758a67601b2fa02ea1668ec05f1c5e2ff.tar.zst yuzu-74ff1db758a67601b2fa02ea1668ec05f1c5e2ff.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/process.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 36724569f..c4c5199b1 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp @@ -132,7 +132,8 @@ std::shared_ptr<ResourceLimit> Process::GetResourceLimit() const { u64 Process::GetTotalPhysicalMemoryAvailable() const { const u64 capacity{resource_limit->GetCurrentResourceValue(ResourceType::PhysicalMemory) + - page_table->GetTotalHeapSize() + image_size + main_thread_stack_size}; + page_table->GetTotalHeapSize() + GetSystemResourceSize() + image_size + + main_thread_stack_size}; if (capacity < memory_usage_capacity) { return capacity; @@ -146,7 +147,8 @@ u64 Process::GetTotalPhysicalMemoryAvailableWithoutSystemResource() const { } u64 Process::GetTotalPhysicalMemoryUsed() const { - return image_size + main_thread_stack_size + page_table->GetTotalHeapSize(); + return image_size + main_thread_stack_size + page_table->GetTotalHeapSize() + + GetSystemResourceSize(); } u64 Process::GetTotalPhysicalMemoryUsedWithoutSystemResource() const { |