diff options
author | Liam <byteslice@airmail.cc> | 2023-05-25 18:03:12 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-05-25 18:03:12 +0200 |
commit | 904dc1a5676998225de9a2c0979c026006843ad5 (patch) | |
tree | 4879901833859011f43f9ba378e849d88c67ddeb /src/video_core/texture_cache/texture_cache.h | |
parent | Merge pull request #10415 from german77/amiibo-no-key (diff) | |
download | yuzu-904dc1a5676998225de9a2c0979c026006843ad5.tar yuzu-904dc1a5676998225de9a2c0979c026006843ad5.tar.gz yuzu-904dc1a5676998225de9a2c0979c026006843ad5.tar.bz2 yuzu-904dc1a5676998225de9a2c0979c026006843ad5.tar.lz yuzu-904dc1a5676998225de9a2c0979c026006843ad5.tar.xz yuzu-904dc1a5676998225de9a2c0979c026006843ad5.tar.zst yuzu-904dc1a5676998225de9a2c0979c026006843ad5.zip |
Diffstat (limited to 'src/video_core/texture_cache/texture_cache.h')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 31d754550..fe13cac93 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -139,7 +139,6 @@ void TextureCache<P>::TickFrame() { TickAsyncDecode(); runtime.TickFrame(); - critical_gc = 0; ++frame_tick; if constexpr (IMPLEMENTS_ASYNC_DOWNLOADS) { @@ -1885,10 +1884,6 @@ void TextureCache<P>::RegisterImage(ImageId image_id) { tentative_size = EstimatedDecompressedSize(tentative_size, image.info.format); } total_used_memory += Common::AlignUp(tentative_size, 1024); - if (total_used_memory > critical_memory && critical_gc < GC_EMERGENCY_COUNTS) { - RunGarbageCollector(); - critical_gc++; - } image.lru_index = lru_cache.Insert(image_id, frame_tick); ForEachGPUPage(image.gpu_addr, image.guest_size_bytes, [this, image_id](u64 page) { |