diff options
| author | 2023-05-20 18:07:31 -0400 | |
|---|---|---|
| committer | 2023-05-23 12:55:14 -0400 | |
| commit | 3b1172c10f9312c9a6f49f61872c75bfbe701e1b (patch) | |
| tree | 913f3b014816aa983045235477df16d96eec1caf /src/video_core/buffer_cache | |
| parent | Merge pull request #10386 from german77/high (diff) | |
| download | yuzu-3b1172c10f9312c9a6f49f61872c75bfbe701e1b.tar.gz yuzu-3b1172c10f9312c9a6f49f61872c75bfbe701e1b.tar.xz yuzu-3b1172c10f9312c9a6f49f61872c75bfbe701e1b.zip | |
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 98756e4da..f3a6d5069 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_, | |||
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | const s64 device_memory = static_cast<s64>(runtime.GetDeviceLocalMemory()); | 32 | const s64 device_memory = static_cast<s64>(runtime.GetDeviceLocalMemory()); |
| 33 | const s64 min_spacing_expected = device_memory - 1_GiB - 512_MiB; | 33 | const s64 min_spacing_expected = device_memory - 1_GiB; |
| 34 | const s64 min_spacing_critical = device_memory - 1_GiB; | 34 | const s64 min_spacing_critical = device_memory - 512_MiB; |
| 35 | const s64 mem_threshold = std::min(device_memory, TARGET_THRESHOLD); | 35 | const s64 mem_threshold = std::min(device_memory, TARGET_THRESHOLD); |
| 36 | const s64 min_vacancy_expected = (6 * mem_threshold) / 10; | 36 | const s64 min_vacancy_expected = (6 * mem_threshold) / 10; |
| 37 | const s64 min_vacancy_critical = (3 * mem_threshold) / 10; | 37 | const s64 min_vacancy_critical = (3 * mem_threshold) / 10; |