love.graphics.getStats
Gets performance-related rendering statistics.
stats = love.graphics.getStats()
stats table A table with the following fields:
stats.drawcalls number The number of draw calls made so far during the current frame.
stats.canvasswitches number The number of times the active Canvas has been switched so far during the current frame.
stats.texturememory number The estimated total size in bytes of video memory used by all loaded Images, Canvases, and Fonts.
stats.images number The number of Image objects currently loaded.
stats.canvases number The number of Canvas objects currently loaded.
stats.fonts number The number of Font objects currently loaded.
stats.shaderswitches number The number of times the active Shader has been changed so far during the current frame.
stats.drawcallsbatched number The number of draw calls that were saved by LÖVE's automatic batching, since the start of the frame.
stats = love.graphics.getStats( stats )
stats table A table which will be filled in with the stat fields below.
stats table The table that was passed in above, now containing the following fields:
stats.drawcalls number The number of draw calls made so far during the current frame.
stats.canvasswitches number The number of times the active Canvas has been switched so far during the current frame.
stats.texturememory number The estimated total size in bytes of video memory used by all loaded Images, Canvases, and Fonts.
stats.images number The number of Image objects currently loaded.
stats.canvases number The number of Canvas objects currently loaded.
stats.fonts number The number of Font objects currently loaded.
stats.shaderswitches number The number of times the active Shader has been changed so far during the current frame.
stats.drawcallsbatched number The number of draw calls that were saved by LÖVE's automatic batching, since the start of the frame.