Hello.
I want to clean my texture memory every frame, so I call collectgarbage() with an enterFrame eventListener., like this:
local label = display.newText("", 70, 310, "GROBOLD",4) function texto() collectgarbage() label.text="Lua Memory: " .. collectgarbage("count") .. " Texture Memory: " .. system.getInfo("textureMemoryUsed")/1000 end Runtime:addEventListener("enterFrame", texto)
Is it normal? Will I have any performance issues in the future by breaking its cycle and calling it every frame?