diff options
| author | sschirm <[email protected]> | 2016-12-23 14:20:36 +0100 |
|---|---|---|
| committer | sschirm <[email protected]> | 2016-12-23 14:56:17 +0100 |
| commit | ef6937e69e8ee3f409cf9d460d5ad300a65d5924 (patch) | |
| tree | 710426e8daa605551ce3f34b581897011101c30f /PhysX_3.4/Source/LowLevelAABB/src/BpBroadPhaseMBP.cpp | |
| parent | Initial commit: (diff) | |
| download | physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.tar.xz physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.zip | |
PhysX 3.4 / APEX 1.4 release candidate @21506124
Diffstat (limited to 'PhysX_3.4/Source/LowLevelAABB/src/BpBroadPhaseMBP.cpp')
| -rw-r--r-- | PhysX_3.4/Source/LowLevelAABB/src/BpBroadPhaseMBP.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/PhysX_3.4/Source/LowLevelAABB/src/BpBroadPhaseMBP.cpp b/PhysX_3.4/Source/LowLevelAABB/src/BpBroadPhaseMBP.cpp index 5227c7a4..fb73e5d8 100644 --- a/PhysX_3.4/Source/LowLevelAABB/src/BpBroadPhaseMBP.cpp +++ b/PhysX_3.4/Source/LowLevelAABB/src/BpBroadPhaseMBP.cpp @@ -36,7 +36,6 @@ #include "PsFoundation.h" #include "PsVecMath.h" - using namespace physx::shdfnd::aos; //#define CHECK_NB_OVERLAPS @@ -50,24 +49,6 @@ using namespace physx; using namespace Bp; using namespace Cm; - template<class T> - static PX_INLINE T* reserveContainerMemory(Ps::Array<T>& container, PxU32 nb) - { - const PxU32 maxNbEntries = container.capacity(); - const PxU32 requiredSize = container.size() + nb; - - if(requiredSize>maxNbEntries) - { - const PxU32 naturalGrowthSize = maxNbEntries ? maxNbEntries*2 : 2; - const PxU32 newSize = PxMax(requiredSize, naturalGrowthSize); - container.reserve(newSize); - } - - T* buf = container.end(); - container.forceSize_Unsafe(requiredSize); - return buf; - } - static PX_FORCE_INLINE void storeDwords(PxU32* dest, PxU32 nb, PxU32 value) { while(nb--) |