This routine to display a score event and remove it keeps adding to the texture memory. I can’t figure out why. Any suggestions?
When I run it, I get:
Texture memory = 246808 (before)
Texture memory = 247608 (after)
and it goes up every time. I tried it as msg.removeSelf() too. Same result.
[lua] local mem = system.getInfo(“textureMemoryUsed”)
print ("Texture memory = " … mem)
– show score
local msg = display.newText( “+” … addScore, 0, 0, nil, 14 )
msg:setTextColor( 200, 200, 200, 255 )
msg:translate(t.x, t.y )
transition.to( msg, {time = 3000, alpha = 0}, function() msg:removeSelf() end)
local mem = system.getInfo(“textureMemoryUsed”)
print ("Texture memory = " … mem)[/lua]
Thanks. [import]uid: 1560 topic_id: 2724 reply_id: 302724[/import]