reverted DISABLE_CELL_DMA_READ_ONLY
commented out printf
This commit is contained in:
@@ -98,7 +98,7 @@ SpuBatchRaycaster::setCollisionObjectsSkipPE (btCollisionObjectArray& castUponOb
|
|||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Number of shapes bullet is casting against: %d\n", numNonPEShapes);
|
// printf("Number of shapes bullet is casting against: %d\n", numNonPEShapes);
|
||||||
btAssert (index == numNonPEShapes);
|
btAssert (index == numNonPEShapes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -298,11 +298,8 @@ void dmaBvhShapeData (bvhMeshShape_LocalStoreMemory* bvhMeshShape, btBvhTriangle
|
|||||||
dmaSize = sizeof(btTriangleIndexVertexArray);
|
dmaSize = sizeof(btTriangleIndexVertexArray);
|
||||||
dmaPpuAddress2 = reinterpret_cast<ppu_address_t>(triMeshShape->getMeshInterface());
|
dmaPpuAddress2 = reinterpret_cast<ppu_address_t>(triMeshShape->getMeshInterface());
|
||||||
// spu_printf("trimeshShape->getMeshInterface() == %llx\n",dmaPpuAddress2);
|
// spu_printf("trimeshShape->getMeshInterface() == %llx\n",dmaPpuAddress2);
|
||||||
#ifdef DISABLE_CELL_DMA_GET_READ_ONLY // needed for PE ray caster
|
|
||||||
cellDmaGet(&bvhMeshShape->gTriangleMeshInterfaceStorage, dmaPpuAddress2 , dmaSize, DMA_TAG(1), 0, 0);
|
|
||||||
#else
|
|
||||||
bvhMeshShape->gTriangleMeshInterfacePtr = (btTriangleIndexVertexArray*)cellDmaGetReadOnly(&bvhMeshShape->gTriangleMeshInterfaceStorage, dmaPpuAddress2 , dmaSize, DMA_TAG(1), 0, 0);
|
bvhMeshShape->gTriangleMeshInterfacePtr = (btTriangleIndexVertexArray*)cellDmaGetReadOnly(&bvhMeshShape->gTriangleMeshInterfaceStorage, dmaPpuAddress2 , dmaSize, DMA_TAG(1), 0, 0);
|
||||||
#endif
|
|
||||||
//cellDmaWaitTagStatusAll(DMA_MASK(1));
|
//cellDmaWaitTagStatusAll(DMA_MASK(1));
|
||||||
|
|
||||||
///now DMA over the BVH
|
///now DMA over the BVH
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ subject to the following restrictions:
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "btOdeQuickstepConstraintSolver.h"
|
#include "btOdeQuickstepConstraintSolver.h"
|
||||||
|
|
||||||
#include "BulletCollision/NarrowPhaseCollision/btPersistentManifold.h"
|
#include "BulletCollision/NarrowPhaseCollision/btPersistentManifold.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user