Code is showing as below. What I am doing is create lots of group and then remove all of them. I expect they shouldn’t take up memory. However, the result isn’t like that. Am I missing anything here?
for i = 1, 100000 do
local fff = display.newGroup()
fff:removeSelf()
fff = nil
end
i = nil
collectgarbage(“collect”)
timer.performWithDelay(1000, function()
print(collectgarbage(“count”))
end, 0)