diff options
| author | MatÃas Locatti <42481638+goldenx86@users.noreply.github.com> | 2024-02-20 23:19:27 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-20 23:19:27 -0300 |
| commit | e0c17a21138ba4379a5c77b40a7d3fd7414ca605 (patch) | |
| tree | 798f8678677cabd7c9048ed06022997a804a1aa5 /src/video_core/buffer_cache | |
| parent | 4e1fcd4a63219ea2ce6dd962e0ee040b7d50e051 (diff) | |
| parent | 368bf2211fdc58014e479db84dab5a152ebbe459 (diff) | |
Merge pull request #10529 from liamwhite/critical-spacing
caches: make critical reclamation less eager and possible in more cases
Diffstat (limited to 'src/video_core/buffer_cache')
| -rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index 296c90e85..ed7a5b27e 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -35,7 +35,7 @@ BufferCache<P>::BufferCache(Tegra::MaxwellDeviceMemoryManager& device_memory_, R const s64 min_spacing_critical = device_local_memory - 512_MiB; const s64 mem_threshold = std::min(device_local_memory, TARGET_THRESHOLD); const s64 min_vacancy_expected = (6 * mem_threshold) / 10; - const s64 min_vacancy_critical = (3 * mem_threshold) / 10; + const s64 min_vacancy_critical = (2 * mem_threshold) / 10; minimum_memory = static_cast<u64>( std::max(std::min(device_local_memory - min_vacancy_expected, min_spacing_expected), DEFAULT_EXPECTED_MEMORY)); |
