Ninjadoodle 96 Report post Posted January 9, 2018 Hi @enpu I'm just trying to figure this out and can't find anything related in the documentation ... does 'removeAsset' unload the loaded asset, freeing up memory to load more atlases for example? Thanks in advance! Quote Share this post Link to post Share on other sites
enpu 685 Report post Posted January 9, 2018 @Ninjadoodle That's exactly how it works, though i just figured that it's not working with atlas files. Fixed it and pushed changes to dev branch! Update your project's current engine with dev version by pressing the "Update" button (Alt+Shift+Close) and then click on "Yes" button with Shift-key pressed down. Let me know if it's now working. You can check from console what textures are in the memory by typing "game.BaseTexture.cache" and "game.Texture.cache" For example, with one atlas file loaded it would look like this: "game.BaseTexture.cache" contains the atlas image file and "game.Texture.cache" contains all frames from the atlas. After removing the atlas from memory it should look like this (if there is no other assets loaded) Also added example to Playground: https://www.panda2.io/playground#core-removeAsset 1 Ninjadoodle reacted to this Quote Share this post Link to post Share on other sites
Ninjadoodle 96 Report post Posted January 9, 2018 Hi @enpu This is awesome - thank you heaps for the detailed answer! I’ll start playing around with that immediately Quote Share this post Link to post Share on other sites