Browse Source

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

shadowislord 11 năm trước cách đây
mục cha
commit
ef1e69c182
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
     }