Raise number of objects to 16384, move all objects at 0.01 speed, to show worst case behaviour (and CUDA benefits)

This commit is contained in:
erwin.coumans
2008-11-15 23:44:40 +00:00
parent 21f03f2aed
commit dcf3f96869
3 changed files with 9 additions and 8 deletions

View File

@@ -429,7 +429,7 @@ BulletSAPCompleteBoxPruningTest::BulletSAPCompleteBoxPruningTest(int numBoxes,in
// m_broadphase = new btCudaBroadphase(aabbMin, aabbMax, 8, 8, 8, 8192, 8192, 64, 16); // m_broadphase = new btCudaBroadphase(aabbMin, aabbMax, 8, 8, 8, 8192, 8192, 64, 16);
// m_broadphase = new btCudaBroadphase(aabbMin, aabbMax, 12, 12, 12, 8192, 8192, 64, 16); // m_broadphase = new btCudaBroadphase(aabbMin, aabbMax, 12, 12, 12, 8192, 8192, 64, 16);
// m_broadphase = new btCudaBroadphase(aabbMin, aabbMax, 16, 16, 16, 8192, 8192, 64, 16); // m_broadphase = new btCudaBroadphase(aabbMin, aabbMax, 16, 16, 16, 8192, 8192, 64, 16);
m_broadphase = new btCudaBroadphase(aabbMin, aabbMax, 24, 24, 24, 8192, 8192, 64, 16); m_broadphase = new btCudaBroadphase(aabbMin, aabbMax, 24, 24, 24,maxNumBoxes , maxNumBoxes, 64, 16);
// m_broadphase = new btCudaBroadphase(aabbMin, aabbMax, 32, 32, 32, 8192, 8192, 64, 16); // m_broadphase = new btCudaBroadphase(aabbMin, aabbMax, 32, 32, 32, 8192, 8192, 64, 16);
methodname = "btCudaBroadphase"; methodname = "btCudaBroadphase";
break; break;

View File

@@ -31,12 +31,13 @@ subject to the following restrictions:
#include "BulletCollision/BroadphaseCollision/btDbvtBroadphase.h" #include "BulletCollision/BroadphaseCollision/btDbvtBroadphase.h"
#include "LinearMath/btQuickprof.h" #include "LinearMath/btQuickprof.h"
#define NUM_SAP_BOXES 8192 //#define NUM_SAP_BOXES 8192
#define NUM_SAP_BOXES 16384
//#define NUM_SAP_BOXES 1024 //#define NUM_SAP_BOXES 1024
int percentUpdate = 10; int percentUpdate = 100;
//float objectSpeed = 0.005f; //float objectSpeed = 0.005f;
float objectSpeed = 0.0005f; float objectSpeed = 0.01f;
bool enableDraw = true; bool enableDraw = true;
//Broadphase comparison //Broadphase comparison

View File

@@ -17,10 +17,10 @@ subject to the following restrictions:
#include "Camera.h" #include "Camera.h"
static const float gCamSpeed = 1.0f; static const float gCamSpeed = 1.0f;
static Point gEye(3.0616338f, 1.1985892f, 2.5769043f); //static Point gEye(3.0616338f, 1.1985892f, 2.5769043f);
static Point gDir(-0.66853905,-0.14004262,-0.73037237); //static Point gDir(-0.66853905,-0.14004262,-0.73037237);
//static Point gEye(140, 105, 105); static Point gEye(240, 205, 205);
//static Point gDir(-1,-1,-1); static Point gDir(-1,-1,-1);
static Point gN; static Point gN;
static float gFOV = 60.0f; static float gFOV = 60.0f;