Display memory usage in performance stats overlay

This commit is contained in:
PeaAshMeter 2025-11-19 00:00:08 +03:00
parent a9bb7df188
commit c61c1875e7

View File

@ -74,7 +74,9 @@ function love.draw()
testLayout:draw()
love.graphics.setColor(1, 1, 1)
local stats = "fps: " .. love.timer.getFPS() .. " lt: " .. lt .. " dt: " .. dt
local stats = "fps: " ..
love.timer.getFPS() ..
" lt: " .. lt .. " dt: " .. dt .. " mem: " .. string.format("%.2f MB", collectgarbage("count") / 1000)
love.graphics.print(stats, 10, 10)
local t2 = love.timer.getTime()