mirror of
https://github.com/glest/glest-source.git
synced 2025-08-24 17:02:49 +02:00
- attempt another network speed improvement
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user