Hello,
I'm running a small application with Multi-Thread support on X360, but the simulation is extremely slow....
After debugging I found that, it spends around 5 secs every frame in,
SpuGatheringCollisionDispatcher::dispatchAllCollisionPairs() function, in this loop
for (i=0;i<numTotalPairs;)
{
//Performance Hint: tweak this number during benchmarking
static const int pairRange = SPU_BATCHSIZE_BROADPHASE_PAIRS;
int endIndex = (i+pairRange) < numTotalPairs ? i+pairRange : numTotalPairs;
m_spuCollisionTaskProcess->addWorkToTask(pairPtr,i,endIndex);
i = endIndex;
}
numTotalPairs is around 1000...
Anybody knows whatz happening here?
Thanks,
Sandeep.