diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-08-08 12:32:09 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-08-28 17:55:37 +0200 |
commit | ba82bb359bac918bf0d048fcd21d13c426bcd336 (patch) | |
tree | 268d388c954b97e1b8234df62540d133d85cfc8d /src/video_core | |
parent | VideoCore: Rework Garbage Collection. (diff) | |
download | yuzu-ba82bb359bac918bf0d048fcd21d13c426bcd336.tar yuzu-ba82bb359bac918bf0d048fcd21d13c426bcd336.tar.gz yuzu-ba82bb359bac918bf0d048fcd21d13c426bcd336.tar.bz2 yuzu-ba82bb359bac918bf0d048fcd21d13c426bcd336.tar.lz yuzu-ba82bb359bac918bf0d048fcd21d13c426bcd336.tar.xz yuzu-ba82bb359bac918bf0d048fcd21d13c426bcd336.tar.zst yuzu-ba82bb359bac918bf0d048fcd21d13c426bcd336.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 2 | ||||
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index a0217908a..e40aa7fe6 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -486,7 +486,7 @@ void BufferCache<P>::TickFrame() { const bool skip_preferred = hits * 256 < shots * 251; uniform_buffer_skip_cache_size = skip_preferred ? DEFAULT_SKIP_CACHE_SIZE : 0; - if (Settings::values.use_caches_gc.GetValue() && total_used_memory >= EXPECTED_MEMORY) { + if (total_used_memory >= EXPECTED_MEMORY) { RunGarbageCollector(); } ++frame_tick; diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index c16cc0838..caf1949f2 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -5,7 +5,6 @@ #pragma once #include "common/alignment.h" -#include "common/settings.h" #include "video_core/dirty_flags.h" #include "video_core/texture_cache/samples_helper.h" #include "video_core/texture_cache/texture_cache_base.h" @@ -93,7 +92,7 @@ void TextureCache<P>::RunGarbageCollector() { template <class P> void TextureCache<P>::TickFrame() { - if (Settings::values.use_caches_gc.GetValue() && total_used_memory > minimum_memory) { + if (total_used_memory > minimum_memory) { RunGarbageCollector(); } sentenced_images.Tick(); |