From c30b761c651b4e61ca0ff920525fb851d5bddf31 Mon Sep 17 00:00:00 2001 From: LNDF Date: Sun, 7 Jun 2026 18:15:18 +0200 Subject: [PATCH] Disable buffer gc for now --- src/video_core/buffer_cache/buffer_cache.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/video_core/buffer_cache/buffer_cache.cpp b/src/video_core/buffer_cache/buffer_cache.cpp index 8d9e72419..455720d05 100644 --- a/src/video_core/buffer_cache/buffer_cache.cpp +++ b/src/video_core/buffer_cache/buffer_cache.cpp @@ -933,11 +933,12 @@ void BufferCache::RunGarbageCollector() { DeleteBuffer(buffer_id); downloads_done = true; }; - lru_cache.ForEachItemBelow(gc_tick - ticks_to_destroy, clean_up); - if (downloads_done) { - // For now we can do this to avoid re-uploading the buffer that is being downloaded, potentially losing GPU modifications. - scheduler.Finish(); - } + // This is still not figured out... + // lru_cache.ForEachItemBelow(gc_tick - ticks_to_destroy, clean_up); + // if (downloads_done) { + // scheduler.Finish(); + // scheduler.PopPendingOperations(); + // } } void BufferCache::TouchBuffer(const Buffer& buffer) {