Skip to content

Commit

Permalink
stress testing paralle solver.
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioJerez committed Dec 20, 2018
1 parent 867d435 commit d82689d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
10 changes: 10 additions & 0 deletions applications/demosSandbox/Win32/imgui.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Debug]
Pos=60,60
Size=400,400
Collapsed=0

[statistics]
Pos=60,60
Size=254,168
Collapsed=0

8 changes: 4 additions & 4 deletions applications/demosSandbox/sdkDemos/DemoEntityManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
//#define DEFAULT_SCENE 5 // primitive collision
//#define DEFAULT_SCENE 6 // kinematic bodies
//#define DEFAULT_SCENE 7 // primitive convex cast
#define DEFAULT_SCENE 8 // box stacks
//#define DEFAULT_SCENE 8 // box stacks
//#define DEFAULT_SCENE 9 // simple level mesh collision
//#define DEFAULT_SCENE 10 // optimized level mesh collision
#define DEFAULT_SCENE 10 // optimized level mesh collision
//#define DEFAULT_SCENE 11 // height field Collision
//#define DEFAULT_SCENE 12 // infinite user plane collision
//#define DEFAULT_SCENE 13 // user height field Collision
Expand Down Expand Up @@ -337,11 +337,11 @@ DemoEntityManager::DemoEntityManager ()
// m_autoSleepMode = false;
// m_broadPhaseType = 1;
m_solverPasses = 4;
// m_workerThreads = 4;
m_workerThreads = 4;
// m_showNormalForces = true;
// m_showCenterOfMass = false;
// m_showJointDebugInfo = true;
m_collisionDisplayMode = 2;
// m_collisionDisplayMode = 2;
// m_asynchronousPhysicsUpdate = true;
m_solveLargeIslandInParallel = true;

Expand Down
4 changes: 2 additions & 2 deletions applications/demosSandbox/sdkDemos/demos/MeshCollision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ static void SimpleMeshLevel (DemoEntityManager* const scene, bool optimization)
dVector size (0.25f, 0.25f, 0.5f, 0.0f);
size = size.Scale (2.0f);

int count = 6;
int count = 5;
dMatrix shapeOffsetMatrix (dGetIdentityMatrix());
for (int i = 0; i < 3; i ++) {
for (int i = 0; i < 20; i ++) {
AddPrimitiveArray(scene, 10.0f, location, size, count, count, 3.0f, _SPHERE_PRIMITIVE, defaultMaterialID, shapeOffsetMatrix);
AddPrimitiveArray(scene, 10.0f, location, size, count, count, 3.0f, _BOX_PRIMITIVE, defaultMaterialID, shapeOffsetMatrix);
AddPrimitiveArray(scene, 10.0f, location, size, count, count, 3.0f, _CAPSULE_PRIMITIVE, defaultMaterialID, shapeOffsetMatrix);
Expand Down

0 comments on commit d82689d

Please sign in to comment.