mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
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
This commit is contained in:
@@ -3227,10 +3227,10 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
}
|
||||
|
||||
tickCountFrameRun = Util.EnvironmentTickCount();
|
||||
}
|
||||
|
||||
if (CollectStats)
|
||||
m_stats[ODETotalFrameMsStatName] += Util.EnvironmentTickCountSubtract(startFrameTick);
|
||||
if (CollectStats)
|
||||
m_stats[ODETotalFrameMsStatName] += Util.EnvironmentTickCountSubtract(startFrameTick);
|
||||
}
|
||||
|
||||
return fps;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user