From 78119c6a499e7f4a7fdbc112458fd098452fd875 Mon Sep 17 00:00:00 2001 From: kervala Date: Fri, 12 Nov 2010 13:40:34 +0100 Subject: [PATCH] Fixed: Time difference when threads are on different cores --- code/ryzom/client/src/time_client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/client/src/time_client.cpp b/code/ryzom/client/src/time_client.cpp index 94bbca554..5476a914c 100644 --- a/code/ryzom/client/src/time_client.cpp +++ b/code/ryzom/client/src/time_client.cpp @@ -312,13 +312,13 @@ void updateClientTime() if (ClientCfg.ForceDeltaTime == 0) { T1 = ryzomGetLocalTime(); - if (T1 == T0) + if (T1 <= T0) { // This case is known to occurs if the framerate is very fast (e.g. during the // loading stage) or if the machine has got a heavy load (e.g. lots of AGP data) // delaying the timer updates. //nlwarning ("getLocalTime has returned the same time! START"); - while (T1 == T0) + while (T1 <= T0) { T1 = ryzomGetLocalTime(); // give up the time slice to let time to other process