expose some sleep timeout pybullet.setPhysicsEngineParameter(maxNumCmdPer1ms=100) or b3PhysicsParamSetMaxNumCommandsPer1ms,
if more commands than those are processed per millisecond, a 1ms sleep will follow, to avoid other threads being stalled.
This commit is contained in:
@@ -659,9 +659,11 @@ void CMainApplication::Shutdown()
|
||||
}
|
||||
}
|
||||
|
||||
sExample->exitPhysics();
|
||||
delete sExample;
|
||||
|
||||
if (sExample)
|
||||
{
|
||||
sExample->exitPhysics();
|
||||
delete sExample;
|
||||
}
|
||||
delete m_app;
|
||||
m_app=0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user