summaryrefslogtreecommitdiff
path: root/src/gui/socialwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-13 17:52:35 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-13 17:52:35 +0300
commit12e311bd5261078e02bffe63e125f89ae1a57209 (patch)
tree9a71f8e4ca78ea6f5eb09ccdb3bd6cd95830c884 /src/gui/socialwindow.cpp
parent258f968327f6e790e11e809070c5ea5dc21a299c (diff)
downloadmanaverse-12e311bd5261078e02bffe63e125f89ae1a57209.tar.gz
manaverse-12e311bd5261078e02bffe63e125f89ae1a57209.tar.bz2
manaverse-12e311bd5261078e02bffe63e125f89ae1a57209.tar.xz
manaverse-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.cpp4
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)