Hey,
Somehow, using Unity 2020.3.25f3 on Windows, building our game for any standalone platform results in unreliable build sizes. To give an example, the first time I build for Linux, the resulting folder is 3.5gb. If I literally just build again, without changing anything, the resulting folder is 2.9gb. It has been driving me crazy that I need to build twice for each platform to get a major reduction in build size, so I started investigating.
At first I thought it was the Streaming Assets, but turns out this difference comes entirely from Textures. Here is what we see in the Editor log of the first build:
And, just building again, without changing anything:
And for reference, the same asset that I highlighted in the first screenshot, in the second build:
And the import settings for this specific asset:
We dont do anything special with any textures, like override import settings per platform, post process, process before build… anything, it is just a texture in the project, but somehow, it is yielding VERY different size results between two builds. And to be clear, this happens on all 3 Standalone platforms we use, Windows, Linux and Mac (we dont build for any other platforms). What this means is, I need to build twice for Windows, then switch platform, build twice for Linux, then switch platform and build twice for Mac… and discard the first build of each platform, to have the smallest build for each platform. This is obviously very time consuming, and I cannot find any rational explanation to understand what might be going on.
Any ideas on what we could possibly do to sort this out? It’s been driving me crazy for a long time lol


