Add EPA penetration depth solver support to bullet multithreaded.

Update SubSimplexConvexCast algorithm used in bullet multithreaded.
This commit is contained in:
john.mccutchan
2008-05-06 00:44:18 +00:00
parent 25c5d0d57a
commit 3268cab6d7
15 changed files with 1079 additions and 51 deletions

View File

@@ -71,7 +71,7 @@ SpuCollisionTaskProcess::~SpuCollisionTaskProcess()
void SpuCollisionTaskProcess::initialize2()
void SpuCollisionTaskProcess::initialize2(bool useEpa)
{
#ifdef DEBUG_SPU_TASK_SCHEDULING
@@ -82,6 +82,7 @@ void SpuCollisionTaskProcess::initialize2()
m_workUnitTaskBuffers = (unsigned char *)btAlignedAlloc(MIDPHASE_WORKUNIT_TASK_SIZE*m_maxNumOutstandingTasks, 128);
}
for (int i = 0; i < m_maxNumOutstandingTasks; i++)
{
m_taskBusy[i] = false;
@@ -90,6 +91,7 @@ void SpuCollisionTaskProcess::initialize2()
m_currentTask = 0;
m_currentPage = 0;
m_currentPageEntry = 0;
m_useEpa = useEpa;
#ifdef DEBUG_SpuCollisionTaskProcess
m_initialized = true;
@@ -110,6 +112,8 @@ void SpuCollisionTaskProcess::issueTask2()
SpuGatherAndProcessPairsTaskDesc& taskDesc = m_spuGatherTaskDesc[m_currentTask];
taskDesc.m_useEpa = m_useEpa;
{
// send task description in event message
// no error checking here...