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:
@@ -318,6 +318,8 @@ void initBullet(void)
|
||||
|
||||
#ifdef USE_GPU_SOLVER
|
||||
g_openCLSolver = new btOpenCLSoftBodySolver( g_cqCommandQue, g_cxMainContext);
|
||||
//g_openCLSolver->setDefaultWorkgroupSize(32);
|
||||
|
||||
g_solver = g_openCLSolver;
|
||||
#else
|
||||
g_cpuSolver = new btCPUSoftBodySolver;
|
||||
|
||||
Reference in New Issue
Block a user