Jump to content

Memory leak when loading json files


MouseCaneta
 Share

Recommended Posts

Hi dev friends,

I'm making a game using a custom tool to import animation from Toonboom into PIXI.js. The animation files generate are HUGE json files (sometimes around 7mb) per animated puppet I create. I'm using the PIXI default json loader to load this files though I'm having a lot of problems with memory performance. After a little investigation, I think my main problem now is some sort of XmlHttpRequest cache that is taking up all my memory and it's not being collected by the GC. Is there a way to bypass xhr cache? Or maybe the problem is somewhere else?

 

Screen Shot 2018-06-21 at 14.16.22.png

Link to comment
Share on other sites

XHR caches do not consume memory in your application space.

Are you calling loader.reset() to have it clear the leader.resources object when you no longer need it to keep them? If not anything you load through the loader will be hanging around until you do because we can't know when you are done with it.

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...