diff options
author | Dave Parks <davep@lindenlab.com> | 2010-06-04 00:11:37 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-06-04 00:11:37 -0500 |
commit | 22b62c1a5bf43b498774261a2a6ea43e813a2869 (patch) | |
tree | 54803b2e7c83b0d7dd20ae2e49abaeaef0ada333 | |
parent | 9a96da9c96bea01ae59e35cd196406904153dbbd (diff) |
Slightly faster position transformations.
-rw-r--r-- | indra/newview/llface.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index b8407a6f5b..0b5cf78261 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -1546,10 +1546,15 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume, LLMatrix4a mat_vert; mat_vert.loadu(mat_vert_in); - for (S32 i = 0; i < num_vertices; i++) + LLVector4a* src = vf.mPositions; + LLVector4a* dst = vertices; + + LLVector4a* end = dst+num_vertices; + do { - mat_vert.affineTransform(vf.mPositions[i], vertices[i]); + mat_vert.affineTransform(*src++, *dst++); } + while(dst < end); } if (rebuild_normal) |