just use 16-byte aligned data for solverbody, not 64byte
fixes Issue 659
This commit is contained in:
@@ -105,7 +105,7 @@ operator+(const btSimdScalar& v1, const btSimdScalar& v2)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
///The btSolverBody is an internal datastructure for the constraint solver. Only necessary data is packed to increase cache coherence/performance.
|
///The btSolverBody is an internal datastructure for the constraint solver. Only necessary data is packed to increase cache coherence/performance.
|
||||||
ATTRIBUTE_ALIGNED64 (struct) btSolverBody
|
ATTRIBUTE_ALIGNED16 (struct) btSolverBody
|
||||||
{
|
{
|
||||||
BT_DECLARE_ALIGNED_ALLOCATOR();
|
BT_DECLARE_ALIGNED_ALLOCATOR();
|
||||||
btTransform m_worldTransform;
|
btTransform m_worldTransform;
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ class btRigidBody : public btCollisionObject
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
ATTRIBUTE_ALIGNED64(btVector3 m_deltaLinearVelocity);
|
ATTRIBUTE_ALIGNED16(btVector3 m_deltaLinearVelocity);
|
||||||
btVector3 m_deltaAngularVelocity;
|
btVector3 m_deltaAngularVelocity;
|
||||||
btVector3 m_angularFactor;
|
btVector3 m_angularFactor;
|
||||||
btVector3 m_invMass;
|
btVector3 m_invMass;
|
||||||
|
|||||||
Reference in New Issue
Block a user