Fixed: Time difference when threads are on different cores

hg/feature/sound
kervala 14 years ago
parent 4cf6b46cc2
commit e1c3041ba6

@ -312,13 +312,13 @@ void updateClientTime()
if (ClientCfg.ForceDeltaTime == 0) if (ClientCfg.ForceDeltaTime == 0)
{ {
T1 = ryzomGetLocalTime(); T1 = ryzomGetLocalTime();
if (T1 == T0) if (T1 <= T0)
{ {
// This case is known to occurs if the framerate is very fast (e.g. during the // 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) // loading stage) or if the machine has got a heavy load (e.g. lots of AGP data)
// delaying the timer updates. // delaying the timer updates.
//nlwarning ("getLocalTime has returned the same time! START"); //nlwarning ("getLocalTime has returned the same time! START");
while (T1 == T0) while (T1 <= T0)
{ {
T1 = ryzomGetLocalTime(); T1 = ryzomGetLocalTime();
// give up the time slice to let time to other process // give up the time slice to let time to other process

Loading…
Cancel
Save