Garbage Collection: enable as default, eliminate option.

This commit is contained in:
Fernando Sahmkow 2021-08-08 12:32:09 +02:00
parent d540d284b5
commit ba82bb359b
9 changed files with 2 additions and 26 deletions

View file

@ -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;