Some performance improvements and fixes related to btVector3 being aligned on SPU.

btQuantizedBvh has a version number, memory layout might be different now (due to aligned btVector3)
reorganized some data members of some classes, to reduce memory footprint
This commit is contained in:
erwin.coumans
2008-10-29 02:45:07 +00:00
parent 55b29e2355
commit b18aa2b375

View File

@@ -2040,7 +2040,7 @@ void btSoftBody::updateClusters()
mi.setMin(c.m_nodes[j]->m_x); mi.setMin(c.m_nodes[j]->m_x);
mx.setMax(c.m_nodes[j]->m_x); mx.setMax(c.m_nodes[j]->m_x);
} }
const ATTRIBUTE_ALIGNED16(btDbvtVolume) bounds=btDbvtVolume::FromMM(mi,mx); ATTRIBUTE_ALIGNED16(btDbvtVolume) bounds=btDbvtVolume::FromMM(mi,mx);
if(c.m_leaf) if(c.m_leaf)
m_cdbvt.update(c.m_leaf,bounds,c.m_lv*m_sst.sdt*3,m_sst.radmrg); m_cdbvt.update(c.m_leaf,bounds,c.m_lv*m_sst.sdt*3,m_sst.radmrg);
else else