summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-10 00:33:27 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-10 00:33:27 +0300
commita0c7a0e2d34a13f2c3e86f662e352977ebe2ae73 (patch)
tree15996308da765b18751048c6bdaeb81926959328 /src/resources/resourcemanager.h
parentc5ff42706d5ff540b5f557fa1a2b1924a6cdf07b (diff)
downloadmanaverse-a0c7a0e2d34a13f2c3e86f662e352977ebe2ae73.tar.gz
manaverse-a0c7a0e2d34a13f2c3e86f662e352977ebe2ae73.tar.bz2
manaverse-a0c7a0e2d34a13f2c3e86f662e352977ebe2ae73.tar.xz
manaverse-a0c7a0e2d34a13f2c3e86f662e352977ebe2ae73.zip
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.
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r--src/resources/resourcemanager.h3
1 files changed, 3 insertions, 0 deletions
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;
};