소스 검색

* Instanced objects are now considered a single object when generating rendering statistics

shadowislord 11 년 전
부모
커밋
ef1e69c182
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      jme3-core/src/main/java/com/jme3/renderer/Statistics.java

+ 1 - 1
jme3-core/src/main/java/com/jme3/renderer/Statistics.java

@@ -125,7 +125,7 @@ public class Statistics {
         if( !enabled )
             return;
             
-        numObjects += count;
+        numObjects += 1;
         numTriangles += mesh.getTriangleCount(lod) * count;
         numVertices += mesh.getVertexCount() * count;
     }