summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-08-29 18:24:19 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-08-29 18:57:17 +0200
commitfe0acec53924fd05829901e43b4783324a733b13 (patch)
tree94843f353c45f130d36c58719089d1256cec1eba /src/video_core/texture_cache
parentGarbage Collection: Adress Feedback. (diff)
downloadyuzu-fe0acec53924fd05829901e43b4783324a733b13.tar
yuzu-fe0acec53924fd05829901e43b4783324a733b13.tar.gz
yuzu-fe0acec53924fd05829901e43b4783324a733b13.tar.bz2
yuzu-fe0acec53924fd05829901e43b4783324a733b13.tar.lz
yuzu-fe0acec53924fd05829901e43b4783324a733b13.tar.xz
yuzu-fe0acec53924fd05829901e43b4783324a733b13.tar.zst
yuzu-fe0acec53924fd05829901e43b4783324a733b13.zip
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/texture_cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index caf1949f2..24b809242 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -61,8 +61,8 @@ template <class P>
void TextureCache<P>::RunGarbageCollector() {
const bool high_priority_mode = total_used_memory >= expected_memory;
const bool aggressive_mode = total_used_memory >= critical_memory;
- const u64 ticks_to_destroy = aggressive_mode ? 10ULL : high_priority_mode ? 50ULL : 100ULL;
- size_t num_iterations = aggressive_mode ? 10000 : (high_priority_mode ? 50 : 5);
+ const u64 ticks_to_destroy = aggressive_mode ? 10ULL : high_priority_mode ? 25ULL : 100ULL;
+ size_t num_iterations = aggressive_mode ? 10000 : (high_priority_mode ? 100 : 5);
const auto clean_up = [this, &num_iterations, high_priority_mode](ImageId image_id) {
if (num_iterations == 0) {
return true;