diff options
| author | 2023-06-02 20:10:41 -0400 | |
|---|---|---|
| committer | 2024-02-11 13:41:13 -0500 | |
| commit | 368bf2211fdc58014e479db84dab5a152ebbe459 (patch) | |
| tree | 9465c1050dee79d708448827f0f3103cdd3127b6 | |
| parent | texture_cache: avoid overestimation of ASTC texture sizes (diff) | |
| download | yuzu-368bf2211fdc58014e479db84dab5a152ebbe459.tar.gz yuzu-368bf2211fdc58014e479db84dab5a152ebbe459.tar.xz yuzu-368bf2211fdc58014e479db84dab5a152ebbe459.zip | |
texture_cache: tweak iteration tracking change
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<P>::RunGarbageCollector() { | |||
| 81 | if (num_iterations == 0) { | 81 | if (num_iterations == 0) { |
| 82 | return true; | 82 | return true; |
| 83 | } | 83 | } |
| 84 | --num_iterations; | ||
| 84 | auto& image = slot_images[image_id]; | 85 | auto& image = slot_images[image_id]; |
| 85 | if (True(image.flags & ImageFlagBits::IsDecoding)) { | 86 | if (True(image.flags & ImageFlagBits::IsDecoding)) { |
| 86 | // This image is still being decoded, deleting it will invalidate the slot | 87 | // This image is still being decoded, deleting it will invalidate the slot |
| @@ -95,7 +96,6 @@ void TextureCache<P>::RunGarbageCollector() { | |||
| 95 | if (!high_priority_mode && must_download) { | 96 | if (!high_priority_mode && must_download) { |
| 96 | return false; | 97 | return false; |
| 97 | } | 98 | } |
| 98 | --num_iterations; | ||
| 99 | if (must_download) { | 99 | if (must_download) { |
| 100 | auto map = runtime.DownloadStagingBuffer(image.unswizzled_size_bytes); | 100 | auto map = runtime.DownloadStagingBuffer(image.unswizzled_size_bytes); |
| 101 | const auto copies = FullDownloadCopies(image.info); | 101 | const auto copies = FullDownloadCopies(image.info); |