From 7c1cdd0c08aedcd69948c675de7e5b29cd0ea93a Mon Sep 17 00:00:00 2001 From: Pirulax Date: Fri, 18 Jun 2021 00:17:15 +0200 Subject: [PATCH 1/2] Increase streaming memory setting limit Add new steps (System RAM => min/max streaming memory limit): - 4096 => 128/512 - 6144 => 128/768 - 8192 => 128/1024 - Questionable if this is necessary, 1 GiB seems a like a lot... --- Client/core/CCore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/core/CCore.cpp b/Client/core/CCore.cpp index 726cc0e039..1edf9ada6b 100644 --- a/Client/core/CCore.cpp +++ b/Client/core/CCore.cpp @@ -1933,8 +1933,8 @@ void CCore::CalculateStreamingMemoryRange() int iVideoMemoryMB = g_pDeviceState->AdapterState.InstalledMemoryKB / 1024; // Calc min and max from lookup table - SSamplePoint minPoints[] = {{512, 64}, {1024, 96}, {2048, 128}}; - SSamplePoint maxPoints[] = {{512, 96}, {1024, 128}, {2048, 256}}; + SSamplePoint minPoints[] = {{512, 64}, {1024, 96}, {2048, 128}, {4096, 128}, {6144, 128}, {8192, 128}}; + SSamplePoint maxPoints[] = {{512, 96}, {1024, 128}, {2048, 256}, {4096, 512}, {6144, 768}, {8192, 1024}}; float fMinAmount = EvalSamplePosition(minPoints, NUMELMS(minPoints), iSystemRamMB); float fMaxAmount = EvalSamplePosition(maxPoints, NUMELMS(maxPoints), iSystemRamMB); From 0c653dd125caacf8353f5e18934233eb512a8c78 Mon Sep 17 00:00:00 2001 From: Pirulax Date: Sat, 19 Jun 2021 00:52:06 +0200 Subject: [PATCH 2/2] Update limits --- Client/core/CCore.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Client/core/CCore.cpp b/Client/core/CCore.cpp index 1edf9ada6b..ea2d042366 100644 --- a/Client/core/CCore.cpp +++ b/Client/core/CCore.cpp @@ -1911,10 +1911,12 @@ void CCore::OnPreHUDRender() // // Streaming memory range based on system installed memory: // -// System RAM MB min max -// 512 = 64 96 -// 1024 = 96 128 -// 2048 = 128 256 +// System RAM MB min max +// 512 = 64 96 +// 1024 = 96 128 +// 2048 = 128 256 +// 4096 = 128 384 +// 6146 = 128 512 // // Also: // Max should be no more than 2 * installed video memory @@ -1933,8 +1935,8 @@ void CCore::CalculateStreamingMemoryRange() int iVideoMemoryMB = g_pDeviceState->AdapterState.InstalledMemoryKB / 1024; // Calc min and max from lookup table - SSamplePoint minPoints[] = {{512, 64}, {1024, 96}, {2048, 128}, {4096, 128}, {6144, 128}, {8192, 128}}; - SSamplePoint maxPoints[] = {{512, 96}, {1024, 128}, {2048, 256}, {4096, 512}, {6144, 768}, {8192, 1024}}; + SSamplePoint minPoints[] = {{512, 64}, {1024, 96}, {2048, 128}, {4096, 128}, {6144, 128}}; + SSamplePoint maxPoints[] = {{512, 96}, {1024, 128}, {2048, 256}, {4096, 384}, {6144, 512}}; float fMinAmount = EvalSamplePosition(minPoints, NUMELMS(minPoints), iSystemRamMB); float fMaxAmount = EvalSamplePosition(maxPoints, NUMELMS(maxPoints), iSystemRamMB);