rename MinFrameTime as FrameTime, since it is not a minimum but a target value; retune its value a bit so reported FPS is closer to integer value; change ode step size acording to reduce jitter in phys FPS; Make Statistics Scaling factor (fludge factor) configurable. (legacy default of 5.0 in code)

This commit is contained in:
UbitUmarov
2015-11-08 04:28:46 +00:00
parent 185d3bd39e
commit 097c56330a
3 changed files with 29 additions and 22 deletions

View File

@@ -495,7 +495,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
}
}
float heartbeat = 1/m_frameWorkScene.MinFrameTime;
float heartbeat = 1/m_frameWorkScene.FrameTime;
maximumAngularVelocity = 0.49f * heartbeat *(float)Math.PI;
maxAngVelocitySQ = maximumAngularVelocity * maximumAngularVelocity;