From 430f472b0e358ebb2cc7f2113c606f2ea03f7739 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 15 May 2015 18:02:40 +0300 Subject: Improve a bit map draw performance. --- src/resources/map/map.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/resources/map/map.h') diff --git a/src/resources/map/map.h b/src/resources/map/map.h index dc8c880b1..3afd6d8ef 100644 --- a/src/resources/map/map.h +++ b/src/resources/map/map.h @@ -216,8 +216,7 @@ class Map final : public Properties, public ConfigListener */ void addAnimation(const int gid, TileAnimation *const animation); - void setDrawLayersFlags(const MapType::MapType &n) - { mDrawLayersFlags = n; } + void setDrawLayersFlags(const MapType::MapType &n); MapType::MapType getDrawLayersFlags() const A_WARN_UNUSED { return mDrawLayersFlags; } @@ -327,6 +326,8 @@ class Map final : public Properties, public ConfigListener void setMask(const int mask); + void updateDrawLayersList(); + protected: friend class Actor; friend class Minimap; @@ -377,6 +378,8 @@ class Map final : public Properties, public ConfigListener MetaTile *const mMetaTiles; WalkLayer *mWalkLayer; Layers mLayers; + Layers mDrawUnderLayers; + Layers mDrawOverLayers; Tilesets mTilesets; Actors mActors; bool mHasWarps; @@ -452,7 +455,9 @@ class Map final : public Properties, public ConfigListener const MapHeights *mHeights; bool mRedrawMap; bool mBeingOpacity; + bool mCachedDraw; bool mCustom; + bool mDrawOnlyFringe; }; #endif // RESOURCES_MAP_MAP_H -- cgit v1.2.3-70-g09d2