summaryrefslogtreecommitdiff
path: root/src/maplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-28 00:30:41 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-28 00:30:41 +0300
commita53a7ddf1fb503d6158aea6518f9d5f81bee7b5d (patch)
treea518956643988552b58104565b75475507302fae /src/maplayer.cpp
parent0e14d0a92da9ce44811c7b860ef0ea8f896b4f4b (diff)
downloadplus-a53a7ddf1fb503d6158aea6518f9d5f81bee7b5d.tar.gz
plus-a53a7ddf1fb503d6158aea6518f9d5f81bee7b5d.tar.bz2
plus-a53a7ddf1fb503d6158aea6518f9d5f81bee7b5d.tar.xz
plus-a53a7ddf1fb503d6158aea6518f9d5f81bee7b5d.zip
Add some profiler entries,
Diffstat (limited to 'src/maplayer.cpp')
-rw-r--r--src/maplayer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/maplayer.cpp b/src/maplayer.cpp
index dcc9621d2..96633215c 100644
--- a/src/maplayer.cpp
+++ b/src/maplayer.cpp
@@ -378,6 +378,7 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY,
const int y32s = (y + yFix) * 32;
const int yWidth = y * mWidth;
+ BLOCK_START("MapLayer::drawFringe drawmobs")
// If drawing the fringe layer, make sure all actors above this row of
// tiles have been drawn
while (ai != ai_end && (*ai)->getSortPixelY() <= y32s)
@@ -385,6 +386,7 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY,
(*ai)->draw(graphics, -scrollX, -scrollY);
++ ai;
}
+ BLOCK_END("MapLayer::drawFringe drawmobs")
if (debugFlags == Map::MAP_SPECIAL3
|| debugFlags == Map::MAP_BLACKWHITE)
@@ -485,11 +487,13 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY,
// Draw any remaining actors
if (debugFlags != Map::MAP_SPECIAL3)
{
+ BLOCK_START("MapLayer::drawFringe drawmobs")
while (ai != ai_end)
{
(*ai)->draw(graphics, -scrollX, -scrollY);
++ai;
}
+ BLOCK_END("MapLayer::drawFringe drawmobs")
if (mHighlightAttackRange && player_node)
{
const int px = player_node->getPixelX() - scrollX - 16;