summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-08-08 12:32:09 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-08-28 17:55:37 +0200
commitba82bb359bac918bf0d048fcd21d13c426bcd336 (patch)
tree268d388c954b97e1b8234df62540d133d85cfc8d /src/video_core
parentVideoCore: Rework Garbage Collection. (diff)
downloadyuzu-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.h2
-rw-r--r--src/video_core/texture_cache/texture_cache.h3
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();