- Home /
Why have player file sizes ballooned since 4.2?..and what happened to all the shaders?
We are doing a webplayer game and we spent a lot of time trying to keep our initial download to around 2 meg but since I just updated to Unity 4.2 (from version 3.5) my initial download has gone from 2.68mb to 6.88mb!!!
Why, what, how??
In addition, when I upload my build to the server most of the shaders seem to have disappeared and I am confronted with a lot of pink objects. Any ideas how to rectify?
I noticed the project size shot up by a third, going from Unity 3.x to 4. But the (in my case) the iOS build was about the same.
I presume I would need to see 2 build logs (one from each version of Unity)) to be able to compare, but now I've upgraded I can only see one build log unless I revert everything just for this test. Has nobody else noticed size increases?
On some textures I get the message: 'Only textures with width/height being multiple of 4 can be compressed'.
I'm sure this can't have always been the case can it? Is this the reason by builds are now much bigger than before? If this is the case, why hsa it changed? Unity was quite happilly compressing them before version 4.
Same problem here, but $$anonymous$$e is worst. When from 3$$anonymous$$b to 13$$anonymous$$b.
Answer by grimmy · Jul 23, 2013 at 01:19 PM
The shaders were broken because I hadn't re-built all my external asset bundles using 4.2. I still haven't worked out why the file sizes are so big though.
Just wondering if you ever worked out the file size issue?
Nope, I just learned to live with it. I don't think I'll ever bother upgrading Unity midway through a project again though.There are so many hidden caveats that the upgrade notes cleverly avoid to mention.
Thanks. $$anonymous$$y build is also for the web player. Luckily, I noticed the change early enough to be able to revert to 4.15 but I know I'll want to upgrade sooner or later. I'll keep digging and let you know if I found out what is causing the bloat.
Your answer