From 32b9e2070b3cf44b6b38ab0c0383b85e87852d50 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 7 Sep 2018 20:58:59 +0300 Subject: Add basic performance counters. Add in debug window new tab with this counters. --- src/game.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index bfbaba353..eadfda7f6 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -125,6 +125,7 @@ #include "utils/delete2.h" #include "utils/foreach.h" #include "utils/gettext.h" +#include "utils/perfstat.h" #include "utils/pnglib.h" #include "utils/sdlcheckutils.h" #include "utils/timer.h" @@ -1092,6 +1093,7 @@ void Game::changeMap(const std::string &mapPath) { BLOCK_START("Game::changeMap") + skipPerfFrames = 3; resetAdjustLevel(); ResourceManager::cleanProtected(); @@ -1182,6 +1184,7 @@ void Game::changeMap(const std::string &mapPath) localPlayer->recreateItemParticles(); gameHandler->mapLoadedEvent(); + Perf::init(); BLOCK_END("Game::changeMap") } -- cgit v1.2.3-60-g2f50