GeometryBatchFactory now bulk copies the untransformed

buffers instead of copying them one element at a time.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9101 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
PSp..om 13 years ago
parent 1545a83abb
commit 38f56d3f2e
  1. 5
      engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java

@ -186,10 +186,7 @@ public class GeometryBatchFactory {
FloatBuffer outPos = (FloatBuffer) outBuf.getData(); FloatBuffer outPos = (FloatBuffer) outBuf.getData();
doTransformNorms(inPos, globalVertIndex, outPos, worldMatrix); doTransformNorms(inPos, globalVertIndex, outPos, worldMatrix);
} else { } else {
for (int vert = 0; vert < geomVertCount; vert++) { inBuf.copyElements(0, outBuf, globalVertIndex, geomVertCount);
int curGlobalVertIndex = globalVertIndex + vert;
inBuf.copyElement(vert, outBuf, curGlobalVertIndex);
}
} }
} }

Loading…
Cancel
Save