summaryrefslogtreecommitdiff
path: root/src/progs
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs')
-rw-r--r--src/progs/manaplus/client.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp
index 01348db2d..376097a2e 100644
--- a/src/progs/manaplus/client.cpp
+++ b/src/progs/manaplus/client.cpp
@@ -1032,13 +1032,6 @@ int Client::gameExec()
PERF_STAT(9);
- BLOCK_START("~Client::SDL_framerateDelay")
- if (settings.limitFps)
- SDL_framerateDelay(&fpsManager);
- BLOCK_END("~Client::SDL_framerateDelay")
-
- PERF_STAT(10);
-
BLOCK_START("Client::gameExec 6")
if (mState == State::CONNECT_GAME)
{
@@ -1063,7 +1056,7 @@ int Client::gameExec()
}
BLOCK_END("Client::gameExec 6")
- PERF_STAT(11);
+ PERF_STAT(10);
if (mState != mOldState)
{
@@ -1688,6 +1681,14 @@ int Client::gameExec()
}
BLOCK_END("Client::gameExec 8")
}
+
+ PERF_STAT(11);
+
+ BLOCK_START("~Client::SDL_framerateDelay")
+ if (settings.limitFps)
+ SDL_framerateDelay(&fpsManager);
+ BLOCK_END("~Client::SDL_framerateDelay")
+
PERF_STAT(12);
PERF_NEXTFRAME();
PROFILER_END();