From 368bf2211fdc58014e479db84dab5a152ebbe459 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 2 Jun 2023 20:10:41 -0400 Subject: texture_cache: tweak iteration tracking change --- src/video_core/texture_cache/texture_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 5986a7680..ca0794214 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -81,6 +81,7 @@ void TextureCache

::RunGarbageCollector() { if (num_iterations == 0) { return true; } + --num_iterations; auto& image = slot_images[image_id]; if (True(image.flags & ImageFlagBits::IsDecoding)) { // This image is still being decoded, deleting it will invalidate the slot @@ -95,7 +96,6 @@ void TextureCache

::RunGarbageCollector() { if (!high_priority_mode && must_download) { return false; } - --num_iterations; if (must_download) { auto map = runtime.DownloadStagingBuffer(image.unswizzled_size_bytes); const auto copies = FullDownloadCopies(image.info); -- cgit v1.2.3