- attempt another network speed improvement

This commit is contained in:
SoftCoder 2015-12-30 03:07:37 -08:00
parent 99289e8fe5
commit 3814b9317f
1 changed files with 5 additions and 2 deletions

View File

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