Search Unity

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:
    81
    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:
    89
    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:
    89
    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:
    81
    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
     
    andr3y38 likes this.
  5. JohnReyPOGI

    JohnReyPOGI

    Joined:
    Sep 13, 2020
    Posts:
    3
    Hi guys, this is my first time adding a comment here since i'm new to unity

    I'd also experience having almost 70% of my project that is allocated to file headers

    Textures 5.4 mb 1.4%
    Meshes 13.0 mb 3.3%
    Animations 2.3 mb 0.6%
    Sounds 2.4 mb 0.6%
    Shaders 9.1 mb 2.3%
    Other Assets 22.5 mb 5.7%
    Levels 45.6 mb 11.6%
    Scripts 1.5 mb 0.4%
    Included DLLs 13.3 mb 3.4%
    File headers 278.2 mb 70.7%
    Total User Assets 393.2 mb 100.0%
    Complete build size 861.7 mb

    First i didn't know what the problem caused of decreasing the file headers since my later build, the file headers was just about 300kb, by the way before the file headers increase, i'm just searching around how to optimize my game then I just realized that it happened when I did set all my object to Static, so i just unchecked the checkbox and turn it all to dynamic but the problem is, the game is now laggy again, and and the fps were around 5

    Textures 5.4 mb 6.0%
    Meshes 22.1 mb 24.4%
    Animations 2.3 mb 2.5%
    Sounds 2.4 mb 2.6%
    Shaders 9.1 mb 10.0%
    Other Assets 22.5 mb 24.9%
    Levels 11.8 mb 13.1%
    Scripts 1.5 mb 1.7%
    Included DLLs 13.3 mb 14.7%
    File headers 46.5 kb 0.1%
    Total User Assets 90.4 mb 100.0%
    Complete build size 254.0 mb
     
  6. devang4986

    devang4986

    Joined:
    May 3, 2022
    Posts:
    1
    Build Report
    Uncompressed usage by category (Percentages based on user generated assets only):
    Textures 53.3 mb 13.5%
    Meshes 7.6 mb 1.9%
    Animations 16.8 kb 0.0%
    Sounds 5.9 mb 1.5%
    Shaders 8.2 mb 2.1%
    Other Assets 1.1 mb 0.3%
    Levels 4.5 mb 1.1%
    Scripts 1.8 mb 0.4%
    Included DLLs 13.4 mb 3.4%
    File headers 300.0 mb 75.8%
    Total User Assets 395.8 mb 100.0%
    Complete build size 948.3 mb
     
  7. andr3y38

    andr3y38

    Joined:
    May 8, 2020
    Posts:
    11

    Yes, @kk99 solution worked for me aswell. Uncheck realtime global illumination from the lighting scene settings!