Jump to content

iPhone 4S crashes due to memory pressure :(


trueicecold
 Share

Recommended Posts

Hey all, I'm kind of at a loss here, so every input will be valuable..

 

I have a game that loads up to 80MB of RAM and about 60% CPU (used XCode for the metrics, and I'm using CocoonJS as the wrapper).

 

When I put the game in the background as soon as it finishes loading and open anything else like safari, appstore etc., the game crashes due to memory pressure...

 

I'm pretty sure 80MB is not much, since I believe large games (3d mostly) use a lot more?

 

Any hints or leads whether it's a pixijs issue or anything else? :/

 

Right now we released the game only to iPhone 5 and up because of this :(

 

Thanks a lot!

Link to comment
Share on other sites

Do you create or destroy many objects dynamically?  Are there any tight loops?

 

Tom

 

Not really, most assets are static. Thing is, I load my entire game into memory, including images, logic etc (hence the 80MB). There are only 2 images that are dynamic which I destroy when exiting the relevant "Screen". However, it crashes even if I don't enter any screen that load dynamic images...

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