Jump to content

Managing Assets in Phaser


hyude
 Share

Recommended Posts

Hello,

 

I have been wondering what is the best way to manage assets in Phaser.

From all examples and tutorial I have seen, most of them only loads the assets needed, and never unload them.

 

If my game use heavy assets, there should have been a way to manage assets in memory (load and unload them), but in previous thread I have read, it is said that clearing assets from cache does not actually unload them from memory, due to it is still used by internal pixi system.

 

So, how do I load/unload assets properly in phaser? since I am pretty sure not clearing the assets will inevitably create out of memory error. Thank you.

 

 

Link to comment
Share on other sites

That is the problem, in other thread rich said that removing assets from Phaser Cache does not actually remove it from memory, because it is still used by internal pixi object, which is a huge deal.

 

So, what is the correct way to remove assets from memory, that is to prevent out of memory error.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...