How to limit prediction and speed up calculations

AxeD
Posts: 36
Joined: Tue Jun 17, 2008 8:28 pm

How to limit prediction and speed up calculations

Post by AxeD »

Hi,
Is there any way to limit prediction? Currently I have very slow CPU with low memory. I'm using sphere (from enigine) and 11 meshes - 96 triangles each. Ball is rolling on a floor and hits objects. Currently I have very big drop of frame rate and simulations looks like slow motion. I have noticed, that it drop occures when almost all object will be hit. Any idea ?


EDIT
I have found something like this

Code: Select all

int	btDiscreteDynamicsWorld::stepSimulation( btScalar timeStep,int maxSubSteps, btScalar fixedTimeStep)
{
//	startProfiling(timeStep);
//
//	BT_PROFILE("stepSimulation");
As You can see i have removed two lines. Now i have better performance. Is this something important or can stay removed?