mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 14:08:42 +00:00
Fixed: Time difference when threads are on different cores
This commit is contained in:
parent
1196cd19df
commit
4588f0b8c6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue