Brief analysis: How the game developed by Unity3d reduces the size of the package

Source: Internet
Author: User

As we all know, the development of the hand through the unity3d is generally large, moving the hundreds of M installation package, while the large package will lead to 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.

As a result, 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). unity3d5.0 version of the following engine development of the game, the resource segmentation, effectively reduce the volume of the package, while not affecting the player's experience and game performance quality, the implementation of the first 10 minutes to play the game to load all the resources of the play-free game mode, truly achieve the effective slimming body volume.

The concept of the use of the principle is to effectively split the resources, upload to love encrypted server, in the case of ensuring that the game can run normally, WIFI/3G network environment through the Love encrypted server synchronization load the remaining game resources. 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 compression game package for the purpose, the highest can achieve the compression of the original game package size of 80%; This technology for 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.