From 055c82ce082d8d910998bee550770e0cae3473d6 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Wed, 12 Nov 2008 22:59:26 +0000 Subject: [PATCH] disable raycast accelerator in Bullet, for better sweep and prune performance comparison (Bullet SAP) --- .../CDTestFramework/BulletSAPCompleteBoxPruningTest.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Extras/CDTestFramework/BulletSAPCompleteBoxPruningTest.cpp b/Extras/CDTestFramework/BulletSAPCompleteBoxPruningTest.cpp index 939fe588e..a18485e01 100644 --- a/Extras/CDTestFramework/BulletSAPCompleteBoxPruningTest.cpp +++ b/Extras/CDTestFramework/BulletSAPCompleteBoxPruningTest.cpp @@ -349,18 +349,19 @@ BulletSAPCompleteBoxPruningTest::BulletSAPCompleteBoxPruningTest(int numBoxes,in int maxNumBoxes = numBoxes; m_isdbvt=false; + bool disableRaycastAccelerator = true; switch (method) { case 1: - m_broadphase = new btAxisSweep3(aabbMin,aabbMax,maxNumBoxes); + m_broadphase = new btAxisSweep3(aabbMin,aabbMax,maxNumBoxes,0,disableRaycastAccelerator); methodname = "btAxisSweep3"; break; case 2: - m_broadphase = new btAxisSweep3(aabbMin,aabbMax,maxNumBoxes,new btNullPairCache()); + m_broadphase = new btAxisSweep3(aabbMin,aabbMax,maxNumBoxes,new btNullPairCache(),disableRaycastAccelerator); methodname = "btAxisSweep3+btNullPairCache"; break; case 3: - m_broadphase = new btAxisSweep3(aabbMin,aabbMax,maxNumBoxes,new btSortedOverlappingPairCache()); + m_broadphase = new btAxisSweep3(aabbMin,aabbMax,maxNumBoxes,new btSortedOverlappingPairCache(),disableRaycastAccelerator); methodname = "btAxisSweep3+btSortedOverlappingPairCache"; break; case 4: @@ -397,7 +398,7 @@ BulletSAPCompleteBoxPruningTest::BulletSAPCompleteBoxPruningTest(int numBoxes,in tmpAabbMin[2] = aabbMin[2] + k*(aabbMax[2]-aabbMin[2])/numP; tmpAabbMax[2] = aabbMin[2] + (k+1)*(aabbMax[2]-aabbMin[2])/numP; - btAxisSweep3* childBp = new btAxisSweep3(tmpAabbMin,tmpAabbMax,maxNumBoxes,multiSap->getOverlappingPairCache()); + btAxisSweep3* childBp = new btAxisSweep3(tmpAabbMin,tmpAabbMax,maxNumBoxes,multiSap->getOverlappingPairCache(),disableRaycastAccelerator); multiSap->getBroadphaseArray().push_back(childBp); } }