Simulation very slow...

sandeep_slash
Posts: 48
Joined: Thu Jul 10, 2008 6:36 pm

Simulation very slow...

Post by sandeep_slash »

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.