Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity Apps iOS Documentation and Data growing.

Discussion in 'iOS and tvOS' started by CrystalDynamo, Oct 10, 2014.

  1. CrystalDynamo

    CrystalDynamo

    Joined:
    May 22, 2014
    Posts:
    120
    Hi guys I just have a question for you, I have googled my fingers off on this one trying to understand it.

    I just want to make sure its not a problem with my Unity App deploying.

    After deploying my Unity iOS App to my iPad I then wanted to see how large the app was. So I opened up Settings on the iPad and selected General and then Usage and then Manage Storage.

    I then select my App from the list and it shows the App Size at the top and also the Documents and Data size.

    Being curious as I am not saving any data for my app at this stage. I ran the App again and I noticed that the Documents and Data value creeps up sometimes .4 Meg after the App being run.

    Has anyone else experienced this ?

    Or does anyone know what Data is actually being stored there ?
    Basically I would like to know if this is this normal behaviour.

    I am doing nothing complicated in the app its pretty basic and I am a Software Engineer and it just seems weird to me. Is Apple doing something maybe.

    Also when the App is deleted from the iPad and redeployed there it seems the Documents and Data parts clears out to be a very minimal amount and then starts to creep up again. Weird.

    I am running iOS8, xCode 6.0.1 and Unity 4.5.4p3

    Any comments or answers would be very much appreciated.

    Mike o_O
     
    Last edited: Oct 11, 2014
    MihailS likes this.
  2. CrystalDynamo

    CrystalDynamo

    Joined:
    May 22, 2014
    Posts:
    120
    Just in case anyone reads this. I ran some more tests with existing iPhone Apps and my own Unity app and its on par with what happens with other apps. It does grow and stabilises. Mine grew to 6Meg and other times after playing was 5.6Meg but never grew more. I am not sure what is stored here but at least its not continually growing.

    Mike
     
    MihailS likes this.
  3. 8bitCartridge

    8bitCartridge

    Joined:
    Feb 26, 2014
    Posts:
    144
    Im running into the same issue, my app size is about 80mb (after install on iPhone6 iOS8.0.x) and Documents and Date is another 40mb.

    If you found a solution for this or whats causing it, please share.

    Thanks.
     
    MihailS likes this.
  4. CrystalDynamo

    CrystalDynamo

    Joined:
    May 22, 2014
    Posts:
    120
    No solution to date. Other Apps do it as well. The only way to reset it I have found is delete the app and re-install it. At a guess I'd say it is apple caching for faster loads into memory or gathering data/stats or something. All the other apps do it as well from what I see, even ones that clearly don't store info like social networking stuff does.
     
    MihailS likes this.
  5. MihailS

    MihailS

    Joined:
    Dec 30, 2012
    Posts:
    5
    Hello, I have the same issue here. My app is around 68 Mb and is increasing with about 1 Mb with every play session ... I'm quite worried about it. I've checked other unity apps and it seems they won't go over 6/8Mb but mine already reach 20Mb and it wont stop here. I use Player.Prefs for saving and I save just the game score as a float , nothing more. I have also Facebook and adMob plus GameCenter but in player prefs I only save that small float number. If anyone knows something about this I will appreciate the help. Thank you !
     
  6. 8bitCartridge

    8bitCartridge

    Joined:
    Feb 26, 2014
    Posts:
    144
    @MihailS I think it's garbage collection after all, I had a lot of instantiate and destroy(s) in my old version, changed it to Pooling System - and it did not go over 3-4mb. Hope that helps.
     
    CrystalDynamo likes this.
  7. MihailS

    MihailS

    Joined:
    Dec 30, 2012
    Posts:
    5
    Thanks for the fast replay , 8bitCartridge .I will give it a try :)
     
  8. MihailS

    MihailS

    Joined:
    Dec 30, 2012
    Posts:
    5
    I implemented the object pooling system , which theoretically is better than use instance all the time, however the growing thing is happening as usual but I guess is normal. I see is kinda random... sometimes will grow with 1,5 mb and other just with 100kb , even decreasing from time to time... Weird stuff , that's for sure.
     
  9. Nickjd331

    Nickjd331

    Joined:
    Aug 22, 2014
    Posts:
    29
    I experience the same issue with my game.

    I would have left it, but I have seen this rise to over 60mb which is ridiculous for the few scores that I store. If anyone else has found a solution I would love to know.