Relax GC if it's not in High Priority mode

This commit is contained in:
MaranBr 2026-03-13 15:51:07 -04:00 committed by crueter
parent 6c7949ce4f
commit 17db5b0b8d
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6

View file

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