From 811b0152c0e3911a58c357ec84fac9f84dbe911a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 20 Jun 2013 12:18:10 +0300 Subject: Add more profiler labels. --- src/game.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index f90814ccd..177e24464 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1015,8 +1015,9 @@ void Game::handleInput() */ void Game::changeMap(const std::string &mapPath) { - resetAdjustLevel(); + BLOCK_START("Game::changeMap") + resetAdjustLevel(); ResourceManager *const resman = ResourceManager::getInstance(); resman->cleanProtected(); @@ -1105,6 +1106,7 @@ void Game::changeMap(const std::string &mapPath) mumbleManager->setMap(mapPath); #endif Net::getGameHandler()->mapLoadedEvent(); + BLOCK_END("Game::changeMap") } void Game::updateHistory(const SDL_Event &event) -- cgit v1.2.3-70-g09d2