Fixed: Time difference when threads are on different cores
This commit is contained in:
parent
4cf6b46cc2
commit
e1c3041ba6
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue