Browse Source

Relax GC if it's not in High Priority mode

texture_cache
MaranBr 2 weeks ago
committed by crueter
parent
commit
2a1721fc66
  1. 3
      src/video_core/texture_cache/texture_cache.h

3
src/video_core/texture_cache/texture_cache.h

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

Loading…
Cancel
Save