Available since LÖVE 0.9.2
This function is not supported in earlier versions.
Gets performance-related rendering statistics.
stats = love.graphics.getStats( )
None.
table stats
number drawcalls
number canvasswitches
number texturememory
number images
number canvases
number fonts
function love.load() love.graphics.setNewFont(24) end function love.draw() local stats = love.graphics.getStats() local str = string.format("Estimated amount of texture memory used: %.2f MB", stats.texturememory / 1024 / 1024) love.graphics.print(str, 10, 10) end
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.graphics.getStats