Bullet Collision Detection & Physics Library
|
SimulationIslandManagerMt – Multithread capable version of SimulationIslandManager Splits the world up into islands which can be solved in parallel. More...
#include <btSimulationIslandManagerMt.h>
Classes | |
struct | Island |
struct | IslandCallback |
Public Types | |
typedef void(* | IslandDispatchFunc) (btAlignedObjectArray< Island * > *islands, IslandCallback *callback) |
Static Public Member Functions | |
static void | serialIslandDispatch (btAlignedObjectArray< Island * > *islandsPtr, IslandCallback *callback) |
static void | parallelIslandDispatch (btAlignedObjectArray< Island * > *islandsPtr, IslandCallback *callback) |
Protected Member Functions | |
Island * | getIsland (int id) |
virtual Island * | allocateIsland (int id, int numBodies) |
virtual void | initIslandPools () |
virtual void | addBodiesToIslands (btCollisionWorld *collisionWorld) |
virtual void | addManifoldsToIslands (btDispatcher *dispatcher) |
virtual void | addConstraintsToIslands (btAlignedObjectArray< btTypedConstraint * > &constraints) |
virtual void | mergeIslands () |
Protected Attributes | |
btAlignedObjectArray< Island * > | m_allocatedIslands |
btAlignedObjectArray< Island * > | m_activeIslands |
btAlignedObjectArray< Island * > | m_freeIslands |
btAlignedObjectArray< Island * > | m_lookupIslandFromId |
Island * | m_batchIsland |
int | m_minimumSolverBatchSize |
int | m_batchIslandMinBodyCount |
IslandDispatchFunc | m_islandDispatch |
SimulationIslandManagerMt – Multithread capable version of SimulationIslandManager Splits the world up into islands which can be solved in parallel.
In order to solve islands in parallel, an IslandDispatch function must be provided which will dispatch calls to multiple threads. The amount of parallelism that can be achieved depends on the number of islands. If only a single island exists, then no parallelism is possible.
Definition at line 33 of file btSimulationIslandManagerMt.h.
typedef void( * btSimulationIslandManagerMt::IslandDispatchFunc) (btAlignedObjectArray< Island * > *islands, IslandCallback *callback) |
Definition at line 61 of file btSimulationIslandManagerMt.h.
btSimulationIslandManagerMt::btSimulationIslandManagerMt | ( | ) |
Definition at line 44 of file btSimulationIslandManagerMt.cpp.
|
virtual |
Definition at line 53 of file btSimulationIslandManagerMt.cpp.
|
protectedvirtual |
Definition at line 377 of file btSimulationIslandManagerMt.cpp.
|
protectedvirtual |
Definition at line 467 of file btSimulationIslandManagerMt.cpp.
|
protectedvirtual |
Definition at line 424 of file btSimulationIslandManagerMt.cpp.
|
protectedvirtual |
Definition at line 203 of file btSimulationIslandManagerMt.cpp.
|
virtual |
Definition at line 606 of file btSimulationIslandManagerMt.cpp.
|
virtual |
Definition at line 275 of file btSimulationIslandManagerMt.cpp.
|
protected |
Definition at line 183 of file btSimulationIslandManagerMt.cpp.
|
inline |
Definition at line 98 of file btSimulationIslandManagerMt.h.
|
inline |
Definition at line 90 of file btSimulationIslandManagerMt.h.
|
protectedvirtual |
Definition at line 138 of file btSimulationIslandManagerMt.cpp.
|
protectedvirtual |
Definition at line 487 of file btSimulationIslandManagerMt.cpp.
|
static |
Definition at line 594 of file btSimulationIslandManagerMt.cpp.
|
static |
Definition at line 549 of file btSimulationIslandManagerMt.cpp.
|
inline |
Definition at line 103 of file btSimulationIslandManagerMt.h.
|
inline |
Definition at line 94 of file btSimulationIslandManagerMt.h.
|
protected |
Definition at line 66 of file btSimulationIslandManagerMt.h.
|
protected |
Definition at line 65 of file btSimulationIslandManagerMt.h.
|
protected |
Definition at line 69 of file btSimulationIslandManagerMt.h.
|
protected |
Definition at line 71 of file btSimulationIslandManagerMt.h.
|
protected |
Definition at line 67 of file btSimulationIslandManagerMt.h.
|
protected |
Definition at line 72 of file btSimulationIslandManagerMt.h.
|
protected |
Definition at line 68 of file btSimulationIslandManagerMt.h.
|
protected |
Definition at line 70 of file btSimulationIslandManagerMt.h.