Approved on App Store - but 2D app with non-scrolling screen using ~420-450 MB / 1-10 MB texture

Hi all,

I just uploaded an app to the App Store and it has just 12 MB but it seems like a real pig memory-wise after some additions I made. It was topped out at around 115-230 MB but now it’s hovering around 400.

I use TextCandy and maybe a dozen mp3s for sound effects. 3 global variables for numbers no larger than 20. The memory usage jumps on the main screen before I even play a single thing, and the simulator’s lagged but stable after 3-4 rounds of play.

Would someone be able to help? I’ve seen a few cornerstone articles about memory leak elimination and will see if I can head-scratch my way through after some sleep, but I’m just wondering if there is anything that might jump out at any freelancers out there. I’d be able to notice changes and improvements to my code, so I could at least improve in the future.
Thanks,

L [import]uid: 144359 topic_id: 31122 reply_id: 331122[/import]

My best bet is that based on what you said above, the culprit about this would be the .mp3 files. (really processor “eating” - and you said that has a “dozen” of them, worse case)

And my idea about it lagging at start is because you probably is loading the .mp3 into memory (app start - main.lua) and so until it get the work done, well…it hurts.

PS : Of course it is just a “speculation” as I did not see or run your code btw.

Rodrigo. [import]uid: 89165 topic_id: 31122 reply_id: 124471[/import]

do you check its hardware configurations…check it first [import]uid: 177161 topic_id: 31122 reply_id: 124503[/import]

Thanks for the responses. Switching those mp3s over to .caf files did save a bit, about 20 MB. Haven’t changed the main mp3 yet, so hopefully I’ll get more results out of converting this larger file too. For anyone who needs to change over his or her mp3s to caf files, I used Audacity, converted to aiff files, highlighted each .aiff extension, and then just pasted in “caf”.

I’m sorry to be clueless about hardware configurations, but could you point me toward an interface or other area where I could view and change them? I have a bad habit of jumping from platform to platform so each time I start over it’s a bit of a task getting reoriented again. Sorry about that and again thanks for your time and help. [import]uid: 144359 topic_id: 31122 reply_id: 124533[/import]

Just look in your folder and see which file has the most MB(on mac). I bet its the main mp3 I had one thas was 100MB once. [import]uid: 75779 topic_id: 31122 reply_id: 124563[/import]

My best bet is that based on what you said above, the culprit about this would be the .mp3 files. (really processor “eating” - and you said that has a “dozen” of them, worse case)

And my idea about it lagging at start is because you probably is loading the .mp3 into memory (app start - main.lua) and so until it get the work done, well…it hurts.

PS : Of course it is just a “speculation” as I did not see or run your code btw.

Rodrigo. [import]uid: 89165 topic_id: 31122 reply_id: 124471[/import]

do you check its hardware configurations…check it first [import]uid: 177161 topic_id: 31122 reply_id: 124503[/import]

Thanks for the responses. Switching those mp3s over to .caf files did save a bit, about 20 MB. Haven’t changed the main mp3 yet, so hopefully I’ll get more results out of converting this larger file too. For anyone who needs to change over his or her mp3s to caf files, I used Audacity, converted to aiff files, highlighted each .aiff extension, and then just pasted in “caf”.

I’m sorry to be clueless about hardware configurations, but could you point me toward an interface or other area where I could view and change them? I have a bad habit of jumping from platform to platform so each time I start over it’s a bit of a task getting reoriented again. Sorry about that and again thanks for your time and help. [import]uid: 144359 topic_id: 31122 reply_id: 124533[/import]

Just look in your folder and see which file has the most MB(on mac). I bet its the main mp3 I had one thas was 100MB once. [import]uid: 75779 topic_id: 31122 reply_id: 124563[/import]