started working on some serious performance improvements. now the union find is optimized, the broadphase add/remove overlapping pair was too slow. added a stl::set to keep track of overlapping pairs. this speeds up the set find/remove. work in progress.the SimpleBroadphase is broken. will be fixed tomorrow.
Did some tests with 3000 rigidbodies, works much smoother now :)
This commit is contained in:
@@ -23,6 +23,10 @@ subject to the following restrictions:
|
||||
|
||||
|
||||
class SimdTransform {
|
||||
|
||||
|
||||
public:
|
||||
|
||||
enum {
|
||||
TRANSLATION = 0x01,
|
||||
ROTATION = 0x02,
|
||||
@@ -32,12 +36,8 @@ class SimdTransform {
|
||||
AFFINE = TRANSLATION | LINEAR
|
||||
};
|
||||
|
||||
public:
|
||||
SimdTransform() {}
|
||||
|
||||
// template <typename Scalar2>
|
||||
// explicit Transform(const Scalar2 *m) { setValue(m); }
|
||||
|
||||
explicit SIMD_FORCE_INLINE SimdTransform(const SimdQuaternion& q,
|
||||
const SimdVector3& c = SimdVector3(SimdScalar(0), SimdScalar(0), SimdScalar(0)))
|
||||
: m_basis(q),
|
||||
|
||||
Reference in New Issue
Block a user