btSoftBodySolver_OpenCL::setDefaultWorkgroupSize to customize the work group size.

Thanks to Simon Green for the feedback, see also Issue 419

Added BT_PROFILE for "predictUnconstraintMotionSoftBody"

Added a few missing destructors.
Added AllMemoryBarrier
Thanks to Lee Howes for the commit in the branch.
This commit is contained in:
erwin.coumans
2010-09-08 22:21:59 +00:00
parent c296122e4e
commit cb2de12243
6 changed files with 65 additions and 27 deletions

View File

@@ -65,8 +65,10 @@ btSoftRigidDynamicsWorld::~btSoftRigidDynamicsWorld()
void btSoftRigidDynamicsWorld::predictUnconstraintMotion(btScalar timeStep)
{
btDiscreteDynamicsWorld::predictUnconstraintMotion( timeStep );
m_softBodySolver->predictMotion( timeStep );
{
BT_PROFILE("predictUnconstraintMotionSoftBody");
m_softBodySolver->predictMotion( timeStep );
}
}
void btSoftRigidDynamicsWorld::internalSingleStepSimulation( btScalar timeStep )