mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
BulletSim: normalize physics FPS to 45 (for real this time).
This commit is contained in:
@@ -582,8 +582,8 @@ public class BSScene : PhysicsScene, IPhysicsParameters
|
||||
// The physics engine returns the number of milliseconds it simulated this call.
|
||||
// These are summed and normalized to one second and divided by 1000 to give the reported physics FPS.
|
||||
// We multiply by 45 to give a recognizable running rate (45 or less).
|
||||
return numSubSteps * m_fixedTimeStep * 1000 * 45;
|
||||
// return timeStep * 1000 * 45;
|
||||
return numSubSteps * m_fixedTimeStep * 1000 * 45;
|
||||
// return timeStep * 1000 * 45;
|
||||
}
|
||||
|
||||
// Something has collided
|
||||
|
||||
Reference in New Issue
Block a user