Move update of the final optional ODE total frame stat inside the OdeLock rather than outside to avoid a very occasional race condition with the stat collection thread

0.7.3-extended
Justin Clark-Casey (justincc) 2012-06-29 01:02:35 +01:00
parent 6b87873aa7
commit e1d6929e61
1 changed files with 3 additions and 3 deletions

View File

@ -3227,10 +3227,10 @@ namespace OpenSim.Region.Physics.OdePlugin
} }
tickCountFrameRun = Util.EnvironmentTickCount(); tickCountFrameRun = Util.EnvironmentTickCount();
}
if (CollectStats) if (CollectStats)
m_stats[ODETotalFrameMsStatName] += Util.EnvironmentTickCountSubtract(startFrameTick); m_stats[ODETotalFrameMsStatName] += Util.EnvironmentTickCountSubtract(startFrameTick);
}
return fps; return fps;
} }