From cee6b8dfc8615954645ee0fc6e75110911f9d619 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sat, 7 Aug 2010 05:55:18 +0000 Subject: [PATCH] - attempt to help client wait for network packets better --- source/glest_game/network/client_interface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/glest_game/network/client_interface.cpp b/source/glest_game/network/client_interface.cpp index 4888db329..2588e2876 100755 --- a/source/glest_game/network/client_interface.cpp +++ b/source/glest_game/network/client_interface.cpp @@ -840,6 +840,10 @@ void ClientInterface::waitForMessage() close(); return; } + // Sleep ever second we wait to let other threads work + else if(chrono.getMillis() % 1000 == 0) { + sleep(0); + } //sleep(waitSleepTime); waitLoopCount++;