|
|
@ -81,6 +81,7 @@ void TextureCache<P>::RunGarbageCollector() { |
|
|
if (num_iterations == 0) { |
|
|
if (num_iterations == 0) { |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
|
|
|
--num_iterations; |
|
|
auto& image = slot_images[image_id]; |
|
|
auto& image = slot_images[image_id]; |
|
|
if (True(image.flags & ImageFlagBits::IsDecoding)) { |
|
|
if (True(image.flags & ImageFlagBits::IsDecoding)) { |
|
|
// This image is still being decoded, deleting it will invalidate the slot |
|
|
// This image is still being decoded, deleting it will invalidate the slot |
|
|
@ -95,7 +96,6 @@ void TextureCache<P>::RunGarbageCollector() { |
|
|
if (!high_priority_mode && must_download) { |
|
|
if (!high_priority_mode && must_download) { |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
--num_iterations; |
|
|
|
|
|
if (must_download) { |
|
|
if (must_download) { |
|
|
auto map = runtime.DownloadStagingBuffer(image.unswizzled_size_bytes); |
|
|
auto map = runtime.DownloadStagingBuffer(image.unswizzled_size_bytes); |
|
|
const auto copies = FullDownloadCopies(image.info); |
|
|
const auto copies = FullDownloadCopies(image.info); |
|
|
|