I am facing an issue in optimizing the project. Due to which not able to run animations in device. I have optimized it bit, but still no results. Iif anybody has any solution, please help asap. All the images are for 2048 resolution.
I have images of around 400KB but on importing in Unity, it automatically becomes around 8MB.
Is the 400kb file a jpg? All Unity compresses the textures to a new format (depending on what you choose) so a 2048 texture will be large.
For more details - Recommended textures extension type (DDS, JPEG, PNG, TIF, TGA?) for iOS - Unity Engine - Unity Discussions
@ No, the image is png. I have tried all the options but no proper solutions.
Actually the problem is that the size of library increases due to meta files. So the game is crashing in device.
that sounds wierd, whats the memory allocation on device? and whats the target device?
The target devices are iPhone, iPad and iPod. iPad of 2048 resolution also. The size of the project becomes 1.66GB, in which the size of Assets is 62.7MB and that of library is 1.16GB.
The size of the libaray / the meta files do not have anything to do with the memory requirements on the device.(and the app crash in your case)
Use the profiler to figure out what uses so much memory and optimize on that assets.
For your “why are my images so BIG?”
On the device unity has to delive a gpu decompress-able format to the gpu.
A jpg or png file is not in such format.
GPU decompress-able formats can not compress as strong as a png or jpg would do so the memory requirements for the memory on the build version are higher.
Actually I deleted few of the images for testing so library size got reduced and app is running perfectly.