Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Reduce File Headers? Is 52.9% Normal ?

Discussion in 'Editor & General Support' started by kk99, Oct 1, 2016.

  1. kk99

    kk99

    Joined:
    Nov 5, 2013
    Posts:
    78
    Hello guys,

    I have been wondering if my game has a healthy File Headers size. ~53% sounds too much
    but on the other hand my game contains about 20 different scenes.


    Textures 119.2 mb 23.1%
    Meshes 10.4 mb 2.0%
    Animations 7.3 mb 1.4%
    Sounds 12.1 mb 2.3%
    Shaders 6.2 mb 1.2%
    Other Assets 5.4 mb 1.0%
    Levels 73.8 mb 14.3%
    Scripts 1.9 mb 0.4%
    Included DLLs 6.4 mb 1.2%
    File headers 273.2 mb 52.9%
    Complete size 516.0 mb 100.0%


    Can anyone tell me if that is normal or is the File headers too high?
    Also how on earth can I reduce it?

    I've been experementing for hours but I cannot find anything that is causing it.



    Thanks for any help
     
  2. justdizzy

    justdizzy

    Joined:
    Mar 8, 2016
    Posts:
    63
    Did you get anywhere on this? I'm in a similar boat:

    Textures 186.6 mb 21.7%
    Meshes 52.8 mb 6.1%
    Animations 5.7 mb 0.7%
    Sounds 4.0 mb 0.5%
    Shaders 2.5 mb 0.3%
    Other Assets 3.1 mb 0.4%
    Levels 38.0 mb 4.4%
    Scripts 1.5 mb 0.2%
    Included DLLs 5.1 mb 0.6%
    File headers 561.6 mb 65.2%
    Complete size 860.9 mb 100.0%

    Reading around there seems to be a claim that the file headers size is associated with the Resources folder, but mine is only 15MB on disk for about 200 items, and plugins' Resources folder total around 5MB. I even went to the effort of putting all the contents in an Asset Bundle instead (and thus had no Assets/Resources folder) and that reduced Textures and other specific items, but file headers was unchanged.

    FYI I am using Unity 5.4.3f1 and building for iOS
     
  3. justdizzy

    justdizzy

    Joined:
    Mar 8, 2016
    Posts:
    63
    Apparently "File headers" can also be where lighting data is stored. I made some changes to the lighting in a scene, which removed it's baked lighting data and decreased it's precomputed GI data, and the "File headers" line decreased comparatively (around 140MB decrease).
     
  4. kk99

    kk99

    Joined:
    Nov 5, 2013
    Posts:
    78
    yes, I came up with the same solution, sorry for answering late.

    You have to uncheck the Precomputer RealtimeGI. Though this will little reduce the beauty of Lightning but the amount of Space cannot justify it.
    upload_2017-1-1_2-33-41.png

    for me the file headers even went down to almost 0%. (i saved almost 270 MByte of uncompressed junk data)
    I think it's about ~1% but I am building for Android and I am not using any Resource Folder name
     
unityunity