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;
}
} else {
for (int vert = 0; vert < geomVertCount; vert++) {
int curGlobalVertIndex = globalVertIndex + vert;
inBuf.copyElement(vert, outBuf, curGlobalVertIndex);
}
inBuf.copyElements(0, outBuf, globalVertIndex, geomVertCount);
// for (int vert = 0; vert < geomVertCount; vert++) {
// int curGlobalVertIndex = globalVertIndex + vert;
// inBuf.copyElement(vert, outBuf, curGlobalVertIndex);
// }
}
}

Loading…
Cancel
Save