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

experimental
shadowislord 11 years ago
parent 8738f961ea
commit ef1e69c182
  1. 2
      jme3-core/src/main/java/com/jme3/renderer/Statistics.java

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

Loading…
Cancel
Save