From: Mikko Rasa Date: Sat, 13 Feb 2021 11:57:23 +0000 (+0200) Subject: Use min_retain_frames to decide when to clear the resource load queue X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=cc7454c7f32ee8a8ff5d67c7a530d843bb68448c Use min_retain_frames to decide when to clear the resource load queue --- diff --git a/source/resourcemanager.cpp b/source/resourcemanager.cpp index 0e2d939f..30f75013 100644 --- a/source/resourcemanager.cpp +++ b/source/resourcemanager.cpp @@ -217,7 +217,7 @@ void ResourceManager::dispatch_work() { queue.sort(age_order); - if(queue.front()->last_used+10last_used+min_retain_framesstate = ManagedResource::NOT_LOADED;