diff options
| author | 2022-01-16 06:34:43 +0100 | |
|---|---|---|
| committer | 2022-03-25 01:51:52 +0100 | |
| commit | 9edbbf2af401f821c0be6a266e65975e3de25fb3 (patch) | |
| tree | 16bc11bc0097e80e8b39e7cc990a81448f7bf059 /src/video_core/buffer_cache | |
| parent | Buffer Cache: Tune to the levels of the new GC. (diff) | |
| download | yuzu-9edbbf2af401f821c0be6a266e65975e3de25fb3.tar.gz yuzu-9edbbf2af401f821c0be6a266e65975e3de25fb3.tar.xz yuzu-9edbbf2af401f821c0be6a266e65975e3de25fb3.zip | |
Garbage Collection: Final tuning.
Diffstat (limited to 'src/video_core/buffer_cache')
| -rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index 644c6e57e..21bfb76a4 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h | |||
| @@ -464,9 +464,9 @@ BufferCache<P>::BufferCache(VideoCore::RasterizerInterface& rasterizer_, | |||
| 464 | const s64 device_memory = static_cast<s64>(runtime.GetDeviceLocalMemory()); | 464 | const s64 device_memory = static_cast<s64>(runtime.GetDeviceLocalMemory()); |
| 465 | const s64 min_spacing_expected = device_memory - 1_GiB - 512_MiB; | 465 | const s64 min_spacing_expected = device_memory - 1_GiB - 512_MiB; |
| 466 | const s64 min_spacing_critical = device_memory - 1_GiB; | 466 | const s64 min_spacing_critical = device_memory - 1_GiB; |
| 467 | const s64 mem_tresshold = std::min(device_memory, TARGET_THRESHOLD); | 467 | const s64 mem_threshold = std::min(device_memory, TARGET_THRESHOLD); |
| 468 | const s64 min_vacancy_expected = (6 * mem_tresshold) / 10; | 468 | const s64 min_vacancy_expected = (6 * mem_threshold) / 10; |
| 469 | const s64 min_vacancy_critical = (3 * mem_tresshold) / 10; | 469 | const s64 min_vacancy_critical = (3 * mem_threshold) / 10; |
| 470 | minimum_memory = static_cast<u64>( | 470 | minimum_memory = static_cast<u64>( |
| 471 | std::max(std::min(device_memory - min_vacancy_expected, min_spacing_expected), | 471 | std::max(std::min(device_memory - min_vacancy_expected, min_spacing_expected), |
| 472 | DEFAULT_EXPECTED_MEMORY)); | 472 | DEFAULT_EXPECTED_MEMORY)); |