Skip to content
Snippets Groups Projects
Commit c4511ee7 authored by themarex's avatar themarex
Browse files

Silence CointQtViewer warnings

git-svn-id: http://svn.code.sf.net/p/simox/code/trunk@605 042f3d55-54a8-47e9-b7fb-15903f145c44
parent b675971e
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ namespace SimDynamics
BulletCoinQtViewer::BulletCoinQtViewer(DynamicsWorldPtr world)
: warned_norealtime(false)
{
bulletTimeStepMsec = 16; // 60FPS
bulletMaxSubSteps = 1;
......@@ -164,7 +165,15 @@ void BulletCoinQtViewer::stepPhysics()
} */
if ((ms / 1000.0f) > bulletMaxSubSteps * bulletTimeStepMsec) {
VR_INFO << "Elapsed time (" << (ms / 1000.0f) << "ms) too long: Simulation is not running in realtime." << endl;
if (!warned_norealtime)
{
VR_INFO << "Elapsed time (" << (ms / 1000.0f) << "ms) too long: Simulation is not running in realtime." << endl;
warned_norealtime = true;
}
}
else
{
warned_norealtime = false;
}
btScalar dt1 = btScalar(ms / 1000000.0f);
......
......@@ -169,6 +169,8 @@ protected:
int bulletTimeStepMsec;
int bulletMaxSubSteps;
bool warned_norealtime;
bool enablePhysicsUpdates;
boost::recursive_mutex engineMutex;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment