diff options
| author | Fernando S <fsahmkow27@gmail.com> | 2023-05-24 03:58:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-24 03:58:49 +0200 |
| commit | 72a14a68177a7ecab4d36fbaf8533cf4e0d70566 (patch) | |
| tree | e18073ddf2049fb08d86a23db7445b6baacc2554 /src/video_core/buffer_cache | |
| parent | 4ee4fdf78cdf1fb112567e527896c832364342af (diff) | |
| parent | 3b1172c10f9312c9a6f49f61872c75bfbe701e1b (diff) | |
Merge pull request #10422 from liamwhite/gc
video_core: tune garbage collection aggressiveness
Diffstat (limited to 'src/video_core/buffer_cache')
| -rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index f2508fbf0..65494097b 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -30,8 +30,8 @@ BufferCache<P>::BufferCache(VideoCore::RasterizerInterface& rasterizer_, } const s64 device_memory = static_cast<s64>(runtime.GetDeviceLocalMemory()); - const s64 min_spacing_expected = device_memory - 1_GiB - 512_MiB; - const s64 min_spacing_critical = device_memory - 1_GiB; + const s64 min_spacing_expected = device_memory - 1_GiB; + const s64 min_spacing_critical = device_memory - 512_MiB; const s64 mem_threshold = std::min(device_memory, TARGET_THRESHOLD); const s64 min_vacancy_expected = (6 * mem_threshold) / 10; const s64 min_vacancy_critical = (3 * mem_threshold) / 10; |
