as we all know, through Unity3d Development of the hand package is generally large, moving hundreds of M of the installation package, while the bulk of the package will lead to the increase in the cost of hand-travel promotion, will also affect the user conversion rate. In addition to other factors, users in the selection of downloads, will focus on the game package body size, game package volume is too large, download time is long, will let users cancel the download, but also take into account the problem of traffic.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/7F/23/wKiom1cUoreBUpOWAADbQfrgXTo172.jpg "title=" 12333. JPG "alt=" wkiom1cuorebupowaadbqfrgxto172.jpg "/>
so Unity officials also introduced several ways to reduce the size of the package:
1. replace jpg, use psd, reduce duplication of resources
2. Eliminate unnecessary resources
3. Check the log record when packaging to determine the file types that need to be reduced
4. optimize, compress pictures, reduce image size
5. optimize, compress grids and animations, reduce file size
6. Remove system.dll and System.Xml.dll, and try not to rely on them, or replace them with other components.
The method described above is the compression of images and the reduction of resources, but these processing will greatly affect the quality of the game and the smoothness of the run time, affecting the user's experience.
In response to this dilemma, a number of service providers have introduced subcontracting technology, and the traditional subcontracting is to cut resources, segmented download, before entering the game to carry out two downloads; When dealing with the game package body slimming, often adopt delete code, streamline resources even for resource trade-offs; When the resource is loaded, the player must interrupt the game, And wait for a slow resource load.
and Love encryption presents a new compression concept for "fragment Processing of resources" (love compression). the unity3d5.0 version of the following engines can be developed by the game, sub-processing resources to effectively reduce the volume of the package, while not affecting the player's experience and performance quality of the game, the implementation of the game's first ten Minutes load all the resources of the play-free game mode, truly realize the effective weight of the package body volume.
The concept of the use of the principle is to effectively split the resources, upload to love encrypted server, in the event that the game can run normally, the remaining game resources are loaded synchronously with the WIFI/3G network environment through the Love encryption server. In order to achieve the segmented processing game resources, effectively compress the game package size.
Love the encryption of this game resource pack compression technology and the previous market developed compression technology is the difference between: first, the technology can intelligently identify the network environment, the realization of the resource silent loading, the player is not aware of the whole process; second, the real purpose of the compression game package, the highest can achieve the compression of the original game package size 80%; Third, the technology of game installation resources is lossless compression, does not affect the game quality, performance and stability and compatibility, can be applied to more mobile phone models.
Brief analysis: How the game developed by Unity3d reduces the size of the package