diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-13 17:52:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-13 17:52:35 +0300 |
commit | 12e311bd5261078e02bffe63e125f89ae1a57209 (patch) | |
tree | 9a71f8e4ca78ea6f5eb09ccdb3bd6cd95830c884 /src/client.cpp | |
parent | 258f968327f6e790e11e809070c5ea5dc21a299c (diff) | |
download | manaplus-12e311bd5261078e02bffe63e125f89ae1a57209.tar.gz manaplus-12e311bd5261078e02bffe63e125f89ae1a57209.tar.bz2 manaplus-12e311bd5261078e02bffe63e125f89ae1a57209.tar.xz manaplus-12e311bd5261078e02bffe63e125f89ae1a57209.zip |
Move some code from logic queue to separate calls.
It can improve perfomance in slow systems.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 677a4c193..53fc071f9 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -867,6 +867,10 @@ int Client::gameExec() k ++; } logic_count += k; + if (gui) + gui->slowLogic(); + if (mGame) + mGame->slowLogic(); // This is done because at some point tick_time will wrap. lastTickTime = tick_time; |