add alignment for broadphase proxy/handle. need to benchmark this, and check it doesn't degrade the performance on other platforms. Otherwise make it conditional only when USE_LIBSPE2 is defined
This commit is contained in:
@@ -51,9 +51,10 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
class Handle : public btBroadphaseProxy
|
ATTRIBUTE_ALIGNED16(class) Handle : public btBroadphaseProxy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
BT_DECLARE_ALIGNED_ALLOCATOR();
|
||||||
|
|
||||||
// indexes into the edge arrays
|
// indexes into the edge arrays
|
||||||
BP_FP_INT_TYPE m_minEdges[3], m_maxEdges[3]; // 6 * 2 = 12
|
BP_FP_INT_TYPE m_minEdges[3], m_maxEdges[3]; // 6 * 2 = 12
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ subject to the following restrictions:
|
|||||||
#define BROADPHASE_PROXY_H
|
#define BROADPHASE_PROXY_H
|
||||||
|
|
||||||
#include "LinearMath/btScalar.h" //for SIMD_FORCE_INLINE
|
#include "LinearMath/btScalar.h" //for SIMD_FORCE_INLINE
|
||||||
|
#include "LinearMath/btAlignedAllocator.h"
|
||||||
|
|
||||||
|
|
||||||
/// btDispatcher uses these types
|
/// btDispatcher uses these types
|
||||||
@@ -63,9 +64,11 @@ CONCAVE_SHAPES_END_HERE,
|
|||||||
|
|
||||||
|
|
||||||
///btBroadphaseProxy
|
///btBroadphaseProxy
|
||||||
struct btBroadphaseProxy
|
ATTRIBUTE_ALIGNED16(struct) btBroadphaseProxy
|
||||||
{
|
{
|
||||||
|
|
||||||
|
BT_DECLARE_ALIGNED_ALLOCATOR();
|
||||||
|
|
||||||
///optional filtering to cull potential collisions
|
///optional filtering to cull potential collisions
|
||||||
enum CollisionFilterGroups
|
enum CollisionFilterGroups
|
||||||
{
|
{
|
||||||
@@ -137,7 +140,7 @@ struct btBroadphaseProxy;
|
|||||||
|
|
||||||
|
|
||||||
/// contains a pair of aabb-overlapping objects
|
/// contains a pair of aabb-overlapping objects
|
||||||
struct btBroadphasePair
|
ATTRIBUTE_ALIGNED16(struct) btBroadphasePair
|
||||||
{
|
{
|
||||||
btBroadphasePair ()
|
btBroadphasePair ()
|
||||||
:
|
:
|
||||||
@@ -148,6 +151,8 @@ struct btBroadphasePair
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BT_DECLARE_ALIGNED_ALLOCATOR();
|
||||||
|
|
||||||
btBroadphasePair(const btBroadphasePair& other)
|
btBroadphasePair(const btBroadphasePair& other)
|
||||||
: m_pProxy0(other.m_pProxy0),
|
: m_pProxy0(other.m_pProxy0),
|
||||||
m_pProxy1(other.m_pProxy1),
|
m_pProxy1(other.m_pProxy1),
|
||||||
|
|||||||
Reference in New Issue
Block a user