What do I do with this RAM pileup???

Basically, I have a music application that I've been working on since september. Right now there are 2 problems that I have with it, first thing is that it takes very long (average 35 seconds on iPad 2) to load the app. Once it's loaded, everything works fine until you start playing music and the Audio RAM builds up. When a sound has stopped playing, the RAM for sound doesn't go back down. And there's a lot of sounds that need to be played, so the RAM keeps adding up until the point where the app crashes (at around 270 MB Ram Usage) when no sound is playing at the very beginning of the app, it takes up around 200 MB of RAM. Does anyone have solutions or suggestions to this?

Comments

  • OskarDeveloperOskarDeveloper Member Posts: 533
    edited February 2013
    1 if you spawn a lot of actors, recycle the actors instead.
    2 optimize the images dpi with the "dba PNG inspector"
    3 uncheck preload art on the actors

    If there still is a long loading time feel free to send me a pm and ill do my best to help :)
  • TimBOSSDevTimBOSSDev Member Posts: 44
    @OskarDeveloper Thanks :) I'll try those out and pm you. Any other suggestions?
  • zzap64zzap64 Member Posts: 405
    I have a great deal of audio and ended up using music instead of audio to save on the ram. If you have art increasing the ram too then resetting the scene can reset most if not all the art ram if it has loaded up during your app.
Sign In or Register to comment.