BatchNode now use bulk copy for untransformed buffers like GeometryBatchFactory

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9103 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 13 years ago
parent 4c7e271606
commit 33b6bcb20c
  1. 9
      engine/src/core/com/jme3/scene/BatchNode.java

@ -475,10 +475,11 @@ public class BatchNode extends Node implements Savable {
useTangents = true; useTangents = true;
} }
} else { } else {
for (int vert = 0; vert < geomVertCount; vert++) { inBuf.copyElements(0, outBuf, globalVertIndex, geomVertCount);
int curGlobalVertIndex = globalVertIndex + vert; // for (int vert = 0; vert < geomVertCount; vert++) {
inBuf.copyElement(vert, outBuf, curGlobalVertIndex); // int curGlobalVertIndex = globalVertIndex + vert;
} // inBuf.copyElement(vert, outBuf, curGlobalVertIndex);
// }
} }
} }

Loading…
Cancel
Save