fix ode timing
parent
dd0323d89e
commit
fbe4ec8ee0
|
@ -1692,7 +1692,6 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
|
|
||||||
DateTime now = DateTime.UtcNow;
|
DateTime now = DateTime.UtcNow;
|
||||||
TimeSpan timedif = now - m_lastframe;
|
TimeSpan timedif = now - m_lastframe;
|
||||||
m_lastframe = now;
|
|
||||||
timeStep = (float)timedif.TotalSeconds;
|
timeStep = (float)timedif.TotalSeconds;
|
||||||
|
|
||||||
// acumulate time so we can reduce error
|
// acumulate time so we can reduce error
|
||||||
|
@ -1704,6 +1703,8 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
if (framecount < 0)
|
if (framecount < 0)
|
||||||
framecount = 0;
|
framecount = 0;
|
||||||
|
|
||||||
|
m_lastframe = now;
|
||||||
|
|
||||||
framecount++;
|
framecount++;
|
||||||
|
|
||||||
int curphysiteractions;
|
int curphysiteractions;
|
||||||
|
|
Loading…
Reference in New Issue