mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-20 04:21:00 +01:00
texture_cache: tweak iteration tracking change
This commit is contained in:
parent
de8a623932
commit
368bf2211f
1 changed files with 1 additions and 1 deletions
|
@ -81,6 +81,7 @@ void TextureCache<P>::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<P>::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);
|
||||
|
|
Loading…
Reference in a new issue