This renderer module provides a series of statistical information about the GPU memory and the rendering process. Useful for debugging and monitoring.
Constructs a new info component.
Whether frame related metrics should automatically be resetted or not. This property should be set to false by apps which manage their own animation loop. They must then call renderer.info.reset() once per frame manually.
Default is true.
The number of render calls since the app has been started.
Default is 0.
Compute related metrics.
calls
number
The number of compute calls since the app has been started.
frameCalls
number
The number of compute calls of the current frame.
timestamp
number
The timestamp of the frame when using renderer.computeAsync().
The current frame ID. This ID is managed by NodeFrame.
Default is 0.
Memory related metrics.
attributes
number
The number of active attributes.
attributesSize
number
The memory size of active attributes in bytes.
geometries
number
The number of active geometries.
indexAttributes
number
The number of active index attributes.
indexAttributesSize
number
The memory size of active index attributes in bytes.
indirectStorageAttributes
number
The number of active indirect storage attributes.
indirectStorageAttributesSize
number
The memory size of active indirect storage attributes in bytes.
programs
number
The number of active programs.
programsSize
number
The memory size of active programs in bytes.
readbackBuffers
number
The number of active readback buffers.
readbackBuffersSize
number
The memory size of active readback buffers in bytes.
renderTargets
number
The number of active renderTargets.
storageAttributes
number
The number of active storage attributes.
storageAttributesSize
number
The memory size of active storage attributes in bytes.
textures
number
The number of active textures.
texturesSize
number
The memory size of active textures in bytes.
uniformBuffers
number
The number of active uniform buffers.
uniformBuffersSize
number
The memory size of active uniform buffers in bytes.
total
number
The total memory size in bytes.
Render related metrics.
calls
number
The number of render calls since the app has been started.
frameCalls
number
The number of render calls of the current frame.
drawCalls
number
The number of draw calls of the current frame.
triangles
number
The number of rendered triangle primitives of the current frame.
points
number
The number of rendered point primitives of the current frame.
lines
number
The number of rendered line primitives of the current frame.
timestamp
number
The timestamp of the frame.
Tracks a regular attribute memory explicitly.
attribute
The attribute to track.
Tracks an index attribute memory explicitly.
attribute
The index attribute to track.
Tracks an indirect storage attribute memory explicitly.
attribute
The indirect storage attribute to track.
Tracks program memory explicitly, updating counts and byte tracking.
program
The program to track.
Tracks a readback buffer memory explicitly.
readbackBuffer
The readback buffer to track.
Tracks a storage attribute memory explicitly.
attribute
The storage attribute to track.
Tracks texture memory explicitly, updating counts and byte tracking.
texture
Tracks a uniform buffer memory explicitly.
uniformBuffer
The uniform buffer to track.
Tracks attribute memory explicitly, updating counts and byte tracking.
attribute
Tracks program memory explicitly, updating counts and byte tracking.
program
The program to track.
Tracks a readback buffer memory explicitly.
readbackBuffer
The readback buffer to track.
Tracks texture memory explicitly, updating counts and byte tracking.
texture
Tracks a uniform buffer memory explicitly.
uniformBuffer
The uniform buffer to track.
Performs a complete reset of the object.
Resets frame related metrics.
This method should be executed per draw call and updates the corresponding metrics.
object
The 3D object that is going to be rendered.
count
The vertex or index count.
instanceCount
The instance count.