Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Approved on App Store - but 2D app with non-scrolling screen using ~420-450 MB / 1-10 MB texture
Started by sumosalesman Sep 18 2012 01:01 PM

4 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

sumosalesman

[GLOBAL: userInfoPane.html]
sumosalesman
  • Enthusiast

  • 34 posts
  • Corona SDK

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
uid: 144359 topic_id: 31122 reply_id: 331122


[TOPIC: post.html]
#2

@RSCdev

[GLOBAL: userInfoPane.html]
@RSCdev
  • Corona Geek

  • 1,489 posts
  • Corona SDK

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.
uid: 89165 topic_id: 31122 reply_id: 124471


[TOPIC: post.html]
#3

MaxnEiffel

[GLOBAL: userInfoPane.html]
MaxnEiffel
  • Observer

  • 4 posts
  • Corona SDK

do you check its hardware configurations...check it first
uid: 177161 topic_id: 31122 reply_id: 124503


[TOPIC: post.html]
#4

sumosalesman

[GLOBAL: userInfoPane.html]
sumosalesman
  • Enthusiast

  • 34 posts
  • Corona SDK

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.
uid: 144359 topic_id: 31122 reply_id: 124533


[TOPIC: post.html]
#5

russm305

[GLOBAL: userInfoPane.html]
russm305
  • Contributor

  • 440 posts
  • Corona SDK

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.
uid: 75779 topic_id: 31122 reply_id: 124563



[topic_controls]
[/topic_controls]