From a0c7a0e2d34a13f2c3e86f662e352977ebe2ae73 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Apr 2013 00:33:27 +0300 Subject: Add option to left all per map sprites in memory if once was loaded. This can prevent random lags and also can use more memory. --- src/resources/resourcemanager.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/resources/resourcemanager.h') diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h index 72efe8693..e2352136e 100644 --- a/src/resources/resourcemanager.h +++ b/src/resources/resourcemanager.h @@ -317,6 +317,8 @@ class ResourceManager final bool cleanOrphans(const bool always = false); + void cleanProtected(); + bool isInCache(const std::string &idPath) const A_WARN_UNUSED; Resource *getTempResource(const std::string &idPath) A_WARN_UNUSED; @@ -346,6 +348,7 @@ class ResourceManager final std::string mSelectedSkin; std::string mSkinName; bool mDestruction; + bool mUseLongLiveSprites; static DelayedAnim mDelayedAnimations; }; -- cgit v1.2.3-70-g09d2