Parallel solver and conveyor

sjeps
Posts: 6
Joined: Fri Jun 03, 2011 10:09 am

Parallel solver and conveyor

Post by sjeps »

Hi, i'm experimenting with multithreaded bullet, and the parallel solver:

Code: Select all

	m_threadSupportSolver = createSolverThreadSupport(maxNumOutstandingTasks);
	m_solver = new btParallelConstraintSolver(m_threadSupportSolver);
	//this solver requires the contacts to be in a contiguous pool, so avoid dynamic allocation
	m_dispatcher->setDispatcherFlags(btCollisionDispatcher::CD_DISABLE_CONTACTPOOL_DYNAMIC_ALLOCATION);
Now, my demo is using a box that should be carried by another box with linear velocity.

Let's say a box on a conveyor belt.

With default solver:

Code: Select all

	btSequentialImpulseConstraintSolver* solver = new btSequentialImpulseConstraintSolver();
	m_solver = solver;
this works.

With the parallel solver that don't work..

The box stands still.

Why? Any workaround?
sjeps
Posts: 6
Joined: Fri Jun 03, 2011 10:09 am

Re: Parallel solver and conveyor

Post by sjeps »

anybody?