Texture Memory in Lime

I have noticed that each time i load a new map my Texture Memory keeps going up. This is something i even notice on the Viewer App when you load new maps.

Is there any way to stop this from happening that i am missing? [import]uid: 39391 topic_id: 10301 reply_id: 310301[/import]

I believe this is due to the Tileset:destroy() function, because there was a bug with Corona that when you dispose a spritesheet that was used with physics it caused problems. This bug seems to have been fixed now so in the next version of lime the spritesheet:dispose() function is now being used.

For now you should be able to just replace the destroy() function in “lime-tileSet.lua” with this:

[code]

— Completely removes the TileSet.
function TileSet:destroy()

self.spriteSet = nil
self.spriteSheet:dispose()
self.spriteSheet = nil

end

[/code] [import]uid: 5833 topic_id: 10301 reply_id: 37601[/import]

Yep that fixes it [import]uid: 39391 topic_id: 10301 reply_id: 37633[/import]

Cool, there’s a couple of use cases where it falls over, for example the iso map in the viewer app, however I’m not sure what is causing it yet. [import]uid: 5833 topic_id: 10301 reply_id: 37636[/import]