revert last change
parent
fbe4ec8ee0
commit
db7f4074b5
|
@ -1689,10 +1689,10 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public override float Simulate(float timeStep)
|
public override float Simulate(float timeStep)
|
||||||
{
|
{
|
||||||
|
|
||||||
DateTime now = DateTime.UtcNow;
|
DateTime now = DateTime.UtcNow;
|
||||||
TimeSpan timedif = now - m_lastframe;
|
TimeSpan timedif = now - m_lastframe;
|
||||||
timeStep = (float)timedif.TotalSeconds;
|
timeStep = (float)timedif.TotalSeconds;
|
||||||
|
m_lastframe = now;
|
||||||
|
|
||||||
// acumulate time so we can reduce error
|
// acumulate time so we can reduce error
|
||||||
step_time += timeStep;
|
step_time += timeStep;
|
||||||
|
@ -1703,7 +1703,6 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
if (framecount < 0)
|
if (framecount < 0)
|
||||||
framecount = 0;
|
framecount = 0;
|
||||||
|
|
||||||
m_lastframe = now;
|
|
||||||
|
|
||||||
framecount++;
|
framecount++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue