where to keep images & sounds

Discussion in 'iOS Programming' started by tiltem, Nov 1, 2010.

  1. tiltem macrumors newbie

    Joined:
    Oct 18, 2010
    #1
    I am creating an app that will have a fair amount of small sounds and images, maybe 90 sounds and 200 images or so. Should these be stored in the in the apps resources folder, or should they be loaded into the apps Documents directory for performance reasons?

    If the documents directory is best, do I just copy them over on launch of the app? Or what is the best way to do this?

    Thanks!!
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    It makes absolutely no difference to performance.
     
  3. tiltem thread starter macrumors newbie

    Joined:
    Oct 18, 2010
    #3
    What is too big for an app? If I have 20mb worth of images and sound, is that too much? What is too much?
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
  5. tiltem thread starter macrumors newbie

    Joined:
    Oct 18, 2010
    #5
    OK, thanks for the quick reply! Any tips for performance optimization?
     
  6. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #6
    Use the provided tools (Instruments) to profile your app, work out what is slow and target your optimisations.
     

Share This Page