浏览代码

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

PSp..om 13 年之前
父节点
当前提交
38f56d3f2e
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java

+ 1 - 4
engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java

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