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/gui/socialwindow.cpp | |
parent | 258f968327f6e790e11e809070c5ea5dc21a299c (diff) | |
download | mv-12e311bd5261078e02bffe63e125f89ae1a57209.tar.gz mv-12e311bd5261078e02bffe63e125f89ae1a57209.tar.bz2 mv-12e311bd5261078e02bffe63e125f89ae1a57209.tar.xz mv-12e311bd5261078e02bffe63e125f89ae1a57209.zip |
Move some code from logic queue to separate calls.
It can improve perfomance in slow systems.
Diffstat (limited to 'src/gui/socialwindow.cpp')
-rw-r--r-- | src/gui/socialwindow.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp index a2aa36ed4..f0e332529 100644 --- a/src/gui/socialwindow.cpp +++ b/src/gui/socialwindow.cpp @@ -1599,7 +1599,7 @@ void SocialWindow::updateActiveList() mNeedUpdate = true; } -void SocialWindow::logic() +void SocialWindow::slowLogic() { unsigned int nowTime = cur_time; if (mNeedUpdate && nowTime - mLastUpdateTime > 1) @@ -1615,8 +1615,6 @@ void SocialWindow::logic() mNeedUpdate = false; mLastUpdateTime = nowTime; } - - Window::logic(); } void SocialWindow::updateAvatar(std::string name) |