From 896d41e4b073046c59933ea8829474bd82b9c506 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 Dec 2016 22:53:42 +0300 Subject: Improve special layers draw speed in same way like fringe layer. --- src/resources/map/speciallayer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/resources/map/speciallayer.h') 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; }; -- cgit v1.2.3-70-g09d2