diff options
| author | 2021-08-29 18:24:19 +0200 | |
|---|---|---|
| committer | 2021-08-29 18:57:17 +0200 | |
| commit | fe0acec53924fd05829901e43b4783324a733b13 (patch) | |
| tree | 94843f353c45f130d36c58719089d1256cec1eba /src/video_core/texture_cache | |
| parent | Garbage Collection: Adress Feedback. (diff) | |
| download | yuzu-fe0acec53924fd05829901e43b4783324a733b13.tar.gz yuzu-fe0acec53924fd05829901e43b4783324a733b13.tar.xz yuzu-fe0acec53924fd05829901e43b4783324a733b13.zip | |
Garbage Collection: Make it more agressive on high priority mode.
Diffstat (limited to 'src/video_core/texture_cache')
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 4 |
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> | |||
| 61 | void TextureCache<P>::RunGarbageCollector() { | 61 | void TextureCache<P>::RunGarbageCollector() { |
| 62 | const bool high_priority_mode = total_used_memory >= expected_memory; | 62 | const bool high_priority_mode = total_used_memory >= expected_memory; |
| 63 | const bool aggressive_mode = total_used_memory >= critical_memory; | 63 | const bool aggressive_mode = total_used_memory >= critical_memory; |
| 64 | const u64 ticks_to_destroy = aggressive_mode ? 10ULL : high_priority_mode ? 50ULL : 100ULL; | 64 | const u64 ticks_to_destroy = aggressive_mode ? 10ULL : high_priority_mode ? 25ULL : 100ULL; |
| 65 | size_t num_iterations = aggressive_mode ? 10000 : (high_priority_mode ? 50 : 5); | 65 | size_t num_iterations = aggressive_mode ? 10000 : (high_priority_mode ? 100 : 5); |
| 66 | const auto clean_up = [this, &num_iterations, high_priority_mode](ImageId image_id) { | 66 | const auto clean_up = [this, &num_iterations, high_priority_mode](ImageId image_id) { |
| 67 | if (num_iterations == 0) { | 67 | if (num_iterations == 0) { |
| 68 | return true; | 68 | return true; |