Garbage Collection: enable as default, eliminate option.
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Fernando Sahmkow
					Fernando Sahmkow