Vizard 7 » Command Index » Vizard objects » scene » <scene>.getStats
7.7

<scene>.getStats

Get various scene statistics

<scene>.getStats()  

Remarks

This command will collect various statistics from the scene and return them through a viz.NodeStats object.

Return Value

A viz.NodeStats object containing the following attributes:

Attribute

Description

vertexCount

The number of vertices encountered

primitiveCount

The number of primitives (triangles, polygons, lines, points) encountered

drawableCount

The number of drawables encountered

transformCount

The number of transform nodes encountered

nodeCount

The number of nodes encountered

textureCount

The number of unique textures encountered

textureBytes

Total memory usage of all unique textures, in bytes

Example

print(viz.MainScene.getStats())

See also

<node3d>.getStats