From b3ed7d35fa6828a86171d48b655a52409b7d7c66 Mon Sep 17 00:00:00 2001 From: MaranBr Date: Thu, 5 Mar 2026 14:09:58 -0400 Subject: [PATCH] Remove recently allocated logic --- src/video_core/texture_cache/texture_cache.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 8ba63e2c7a..b4b1433d00 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -136,10 +136,6 @@ void TextureCache

::RunGarbageCollector() { } const bool is_costly_load = True(image.flags & ImageFlagBits::CostlyLoad); const bool is_large_sparse = image.info.is_sparse && image.guest_size_bytes >= 256_MiB; - const bool is_recently_allocated = image.allocation_tick >= frame_tick - 5; - if (is_recently_allocated && (is_costly_load || is_large_sparse) && total_used_memory < critical_memory) { - return false; - } const bool must_download = image.IsSafeDownload() && False(image.flags & ImageFlagBits::BadOverlap); if (must_download && !is_large_sparse) { auto map = runtime.DownloadStagingBuffer(image.unswizzled_size_bytes);