Fixed: Time difference when threads are on different cores

This commit is contained in:
kervala 2010-11-12 13:40:34 +01:00
parent 1196cd19df
commit 4588f0b8c6

View file

@ -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