This commit is contained in:
MaranBr 2026-03-13 22:23:00 +01:00 committed by crueter
parent 8f14f01e49
commit 67ba7301f8

View file

@ -133,10 +133,11 @@ void TextureCache<P>::RunGarbageCollector() {
if (True(image.flags & ImageFlagBits::IsDecoding)) {
return false;
}
if (!high_priority_mode && True(image.flags & ImageFlagBits::CostlyLoad)) {
const bool must_download = image.IsSafeDownload() && False(image.flags & ImageFlagBits::BadOverlap);
if (!high_priority_mode && must_download) {
return false;
}
if (image.IsSafeDownload() && False(image.flags & ImageFlagBits::BadOverlap)) {
if (must_download) {
auto map = runtime.DownloadStagingBuffer(image.unswizzled_size_bytes);
const auto copies = FixSmallVectorADL(FullDownloadCopies(image.info));
image.DownloadMemory(map, copies);