summaryrefslogtreecommitdiff
path: root/src/resources/map/speciallayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-31 22:53:42 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-31 22:53:42 +0300
commit896d41e4b073046c59933ea8829474bd82b9c506 (patch)
tree737bbfa3381f9d0ddd8629faf29dd6dce0ca4be3 /src/resources/map/speciallayer.h
parent1962d62c1e209af7d61e85a4ed3675f0a16e5924 (diff)
downloadplus-896d41e4b073046c59933ea8829474bd82b9c506.tar.gz
plus-896d41e4b073046c59933ea8829474bd82b9c506.tar.bz2
plus-896d41e4b073046c59933ea8829474bd82b9c506.tar.xz
plus-896d41e4b073046c59933ea8829474bd82b9c506.zip
Improve special layers draw speed in same way like fringe layer.
Diffstat (limited to 'src/resources/map/speciallayer.h')
-rw-r--r--src/resources/map/speciallayer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resources/map/speciallayer.h b/src/resources/map/speciallayer.h
index 1c69ab4be..ba9470bff 100644
--- a/src/resources/map/speciallayer.h
+++ b/src/resources/map/speciallayer.h
@@ -57,16 +57,19 @@ class SpecialLayer final : public MemoryCounter
void addRoad(const Path &road);
- void clean() const;
+ void clean();
int calcMemoryLocal() const override final;
std::string getCounterName() const override final
{ return mName; }
+ void updateCache();
+
private:
const std::string mName;
MapItem **mTiles;
+ int *mCache;
int mWidth;
int mHeight;
};