diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index c8d14c78c..d32f228e2 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -114,7 +114,7 @@ void BufferCache
::RunGarbageCollector() {
base_iterations = 32;
break;
case Settings::GCAggressiveness::Heavy:
- base_ticks = std::max(1ULL, eviction_frames / 2);
+ base_ticks = std::max(1ULL, static_cast ::RunGarbageCollector() {
LOG_WARNING(Render_Vulkan, "Buffer cache emergency GC: usage={}MB, limit={}MB",
total_used_memory / 1_MiB, vram_limit_bytes / 1_MiB);
} else if (aggressive_gc) {
- ticks_to_destroy = std::max(1ULL, base_ticks / 2);
+ ticks_to_destroy = std::max(1ULL, static_cast