diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-10 00:33:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-10 00:33:27 +0300 |
commit | a0c7a0e2d34a13f2c3e86f662e352977ebe2ae73 (patch) | |
tree | 15996308da765b18751048c6bdaeb81926959328 /src/commands.cpp | |
parent | c5ff42706d5ff540b5f557fa1a2b1924a6cdf07b (diff) | |
download | plus-a0c7a0e2d34a13f2c3e86f662e352977ebe2ae73.tar.gz plus-a0c7a0e2d34a13f2c3e86f662e352977ebe2ae73.tar.bz2 plus-a0c7a0e2d34a13f2c3e86f662e352977ebe2ae73.tar.xz plus-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/commands.cpp')
-rw-r--r-- | src/commands.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index 8ddd0f0bf..9b3a776d4 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -349,6 +349,7 @@ impHandler0(clear) impHandler0(cleanGraphics) { ResourceManager *const resman = ResourceManager::getInstance(); + resman->cleanProtected(); while (resman->cleanOrphans(true)); if (debugChatTab) |