Reset sparsesdf to free memory.
This commit is contained in:
1 parent
982453abc6
commit
21418934e0
1 file changed
+1
-1
@@ -9693,7 +9693,7 @@ void PhysicsServerCommandProcessor::stepSimulationRealTime(double dtInSec,const
|
|||||||
void PhysicsServerCommandProcessor::resetSimulation()
|
void PhysicsServerCommandProcessor::resetSimulation()
|
||||||
{
|
{
|
||||||
//clean up all data
|
//clean up all data
|
||||||
|
m_data->m_dynamicsWorld->getWorldInfo().m_sparsesdf.Reset();
|
||||||
if (m_data && m_data->m_guiHelper)
|
if (m_data && m_data->m_guiHelper)
|
||||||
{
|
{
|
||||||
m_data->m_guiHelper->removeAllGraphicsInstances();
|
m_data->m_guiHelper->removeAllGraphicsInstances();
|
||||||
|
|||||||
Reference in new issue
Block a user