mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-18 05:11:42 +00:00
Fixed: Time difference when threads are on different cores
This commit is contained in:
parent
0e736b4902
commit
78119c6a49
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