lovr.graphics.getStats

Returns graphics-related performance statistics for the current frame.

stats = lovr.graphics.getStats()

Arguments

None

Returns

NameTypeDescription
statstableThe table of stats.
.drawcallsnumberThe number of draw calls.
.renderpassesnumberThe number of times the canvas has been switched.
.shaderswitchesnumberThe number of times the shader has been switched.
.buffersnumberThe number of buffers.
.texturesnumberThe number of textures.
.buffermemorynumberThe amount of memory used by buffers, in bytes.
.texturememorynumberThe amount of memory used by textures, in bytes.

See also