Optimization work on SpuRaycastTask:

For ray vs. optimized bvh mesh traverse tree once for entire packet of rays
Avoid DMAing ray output data until we have a hit
This commit is contained in:
johnmccutchan
2008-02-14 22:11:56 +00:00
parent fe426229a7
commit 594963b25d
3 changed files with 338 additions and 92 deletions

View File

@@ -97,6 +97,8 @@ bool SpuSubsimplexRayCast::calcTimeOfImpact(const btTransform& fromRay,
while ( (dist2 > epsilon) && maxIter--)
{
p = supportPoint(bXform, m_shapeTypeB, m_shapeB, m_convexDataB, v);
btVector3 n = v.normalized();
p += m_marginB * n;
w = x - p;
btScalar VdotW = v.dot(w);