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. Dismiss Notice

Bug Build size issue due to Unity LOGO

Discussion in 'WebGL' started by SDWGamesStudio, Aug 3, 2023.

  1. SDWGamesStudio

    SDWGamesStudio

    Joined:
    Aug 2, 2020
    Posts:
    12
    Hi

    I have currently just updated my version of Unity from version 2020 to 2022.

    After checking the size of a build of one of my games, I realized that there was an upward difference with the new version.

    The build logs that I have been able to consult show that a line has been added in the 2022 version which would roughly correspond to the difference:
    - 2.7 mb 15.8% Built-in Texture2D: Splash Screen Unity Logo

    Is this a bug?

    Thank you in advance for your answers.
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,048
    Not a bug. The 2+ mb size of the logo is the actual size I‘m afraid. Only if you pay for Pro you can get rid of it.
     
  3. SDWGamesStudio

    SDWGamesStudio

    Joined:
    Aug 2, 2020
    Posts:
    12
    Hi,

    Damn! I really thought it was a bug. This will waste valuable build space.

    Thank you for your reply.

    Good day.
     
  4. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    334
    I'll flag it with the team looking at optimizing web builds as something to look into.
     
    korinVR, bugfinders and makaka-org like this.
  5. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    944
    Note that the build log displays uncompressed asset sizes. In Web builds (like on many other platforms that Unity supports), all assets are compressed with LZ4HC compression, and on the web, also double compressed if you set gzip or brotli as the asset bundle compression.

    So the actual size taken by the splash screen on disk, or transferred over the web should definitely not be as high as 2.7MB. Estimating, I would expect some 100-200KB at the moment.

    It is not the intention of the Web Platform team that users should need to get a Pro license to get to the smallest builds, so this is being treated as a performance bug at the moment to see if there is room to squeeze the file to be even smaller on disk after compression.
     
    unityruba likes this.
  6. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    552
    Unity 2022.3.10f1
    Even when Pro/Plus users disable the Unity logo and/or splash screen, still get on an empty project:
    1.2 mb 52.8% Built-in Texture2D: Splash Screen Unity Logo

    It's not much, and not much after using brotli, but it is still there, and trying to cut any excess weight, it'll be nice to be able to remove an asset which is not in use.

    Should I open a bug? @jukka_j @brendanduncan_u3d
     
  7. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    552
    Closing the editor and re-opening cleans the logo texture from the memory, then it doesn't get into the build.
    So it's an issue only if you build with the logo, and then remove.
     
  8. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    944
    Sharp find @De-Panther.. definitely would be great to have a bug. That does suggest some kind of mismatch that the Editor does not realize to rebuild the project after changing the Splash Screen checkbox.

    The bug will likely go to the Asset Database team and not to the WebGL team, so would be good to track that through so it gets to the right team.
     
  9. TheNullReference

    TheNullReference

    Joined:
    Nov 30, 2018
    Posts:
    222
    Paying for pro doesn't remove the logo unfortunately. You wont see it but it's still forced into the build.
     
  10. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    552
    Read my 2nd comment, try to close and open the editor, and see if the logo still enters the build
     
    TheNullReference likes this.