- try to improve network performance

This commit is contained in:
Mark Vejvoda
2013-03-23 23:13:33 +00:00
parent 97aadb6a44
commit 01b757a743
2 changed files with 6 additions and 6 deletions

View File

@@ -1782,8 +1782,8 @@ NetworkMessageType ClientInterface::waitForMessage(int waitMicroseconds)
return msg;
}
// Sleep every x milli-seconds we wait to let other threads work
else if(chrono.getMillis() % 5 == 0) {
sleep(1);
else if(chrono.getMillis() % 50 == 0) {
sleep(5);
}
//sleep(waitSleepTime);