MouseCaneta Posted June 21, 2018 Share Posted June 21, 2018 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? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 21, 2018 Share Posted June 21, 2018 I think @xerver can find the answer. He's author of https://github.com/englercj/resource-loader Quote Link to comment Share on other sites More sharing options...
xerver Posted June 21, 2018 Share Posted June 21, 2018 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.