diff options
| author | 2021-08-08 12:32:09 +0200 | |
|---|---|---|
| committer | 2021-08-28 17:55:37 +0200 | |
| commit | ba82bb359bac918bf0d048fcd21d13c426bcd336 (patch) | |
| tree | 268d388c954b97e1b8234df62540d133d85cfc8d /src/video_core/texture_cache | |
| parent | VideoCore: Rework Garbage Collection. (diff) | |
| download | yuzu-ba82bb359bac918bf0d048fcd21d13c426bcd336.tar.gz yuzu-ba82bb359bac918bf0d048fcd21d13c426bcd336.tar.xz yuzu-ba82bb359bac918bf0d048fcd21d13c426bcd336.zip | |
Garbage Collection: enable as default, eliminate option.
Diffstat (limited to 'src/video_core/texture_cache')
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 3 |
1 files changed, 1 insertions, 2 deletions
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 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include "common/alignment.h" | 7 | #include "common/alignment.h" |
| 8 | #include "common/settings.h" | ||
| 9 | #include "video_core/dirty_flags.h" | 8 | #include "video_core/dirty_flags.h" |
| 10 | #include "video_core/texture_cache/samples_helper.h" | 9 | #include "video_core/texture_cache/samples_helper.h" |
| 11 | #include "video_core/texture_cache/texture_cache_base.h" | 10 | #include "video_core/texture_cache/texture_cache_base.h" |
| @@ -93,7 +92,7 @@ void TextureCache<P>::RunGarbageCollector() { | |||
| 93 | 92 | ||
| 94 | template <class P> | 93 | template <class P> |
| 95 | void TextureCache<P>::TickFrame() { | 94 | void TextureCache<P>::TickFrame() { |
| 96 | if (Settings::values.use_caches_gc.GetValue() && total_used_memory > minimum_memory) { | 95 | if (total_used_memory > minimum_memory) { |
| 97 | RunGarbageCollector(); | 96 | RunGarbageCollector(); |
| 98 | } | 97 | } |
| 99 | sentenced_images.Tick(); | 98 | sentenced_images.Tick(); |