Get render stats from last frame
<viz>.getRenderStats() |
Attribute | Description |
frameTime | Total number of seconds spent on frame |
updateTime | Seconds spent updating the scene. This can include animations, physics, and any code executed by your script |
cullTime | Seconds spent processing the scene graph and deciding which objects to draw based on the current viewpoint |
drawTime | Seconds spent sending the draw commands to the graphics driver |
swapTime | Seconds spent swapping the frame buffer and performing other post-render tasks (drawing framerate, capturing screenshots, etc..) |
gpuTime | Seconds spent on the GPU drawing the scene. This statistic is only available on OpenGL drivers that support the GL_EXT_timer_query extension |
effectComposeTime | Seconds spent composing shader effects. Includes generating shader code and applying effect properties. |
primitiveCount | The number of OpenGL primitives (triangles, quads, lines, points, etc...) rendered |
drawableCount | The number of drawables (i.e. individual meshes) rendered this frame |
systemMemory | The amount of system memory (in megabytes) used by the current process |
gpuMemory | The amount of GPU memory (in megabytes) currently in use by all processes. This statistic is only available on OpenGL drivers that support the GL_NVX_gpu_memory_info extension. |