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/buffer_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/buffer_cache')
| -rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 2 |
1 files changed, 1 insertions, 1 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() { | |||
| 486 | const bool skip_preferred = hits * 256 < shots * 251; | 486 | const bool skip_preferred = hits * 256 < shots * 251; |
| 487 | uniform_buffer_skip_cache_size = skip_preferred ? DEFAULT_SKIP_CACHE_SIZE : 0; | 487 | uniform_buffer_skip_cache_size = skip_preferred ? DEFAULT_SKIP_CACHE_SIZE : 0; |
| 488 | 488 | ||
| 489 | if (Settings::values.use_caches_gc.GetValue() && total_used_memory >= EXPECTED_MEMORY) { | 489 | if (total_used_memory >= EXPECTED_MEMORY) { |
| 490 | RunGarbageCollector(); | 490 | RunGarbageCollector(); |
| 491 | } | 491 | } |
| 492 | ++frame_tick; | 492 | ++frame_tick; |