Analysis: How to reduce the package size of games developed by Unity3D

As we all know, the mobile game package developed by Unity3D is generally too large, and the installation package is hundreds of M, and the large package will increase the cost of mobile game promotion and affect the user conversion rate. In addition to other factors, when users choose to download, they will focus on the size of the game package. If the game package is too large and the download time is long, the user will cancel the download, and the problem of traffic will also be considered.

Therefore, Unity officially introduced several methods to reduce the size of the package:
1. Replace jpg, use psd to reduce duplicate resources
2. Eliminate unnecessary resources
3. Check the log records when packaging to determine the type of files that need to be
reduced4 .Optimize, compress images, reduce image size
5. Optimize, compress grids and animations, reduce file size
6. Eliminate system.dll and system.xml.dll, try not to rely on them, or replace them with other components.

The methods described above are for image compression and resource reduction, but these processes will greatly affect the game's picture quality and runtime smoothness, and affect the user's experience.

In response to the current predicament, many service providers have introduced subcontracting technology, while the traditional subcontracting is to cut resources, download them in sections, and perform a second download before entering the game; Code, streamlining resources and even making resource trade-offs; when resources are loaded, players must interrupt the game and wait for slow resource loading.

And Ai Encryption proposes a new compression concept (Ai Compression) that "resources are processed in segments". The game developed by the engine of Unity3D5.0 and below can be processed by resource segmentation, which can effectively reduce the volume of the package, and at the same time, without affecting the player's experience and game performance quality, the first 10 minutes of playing the game can be loaded. The smooth play of resources and the barrier-free game mode truly realizes the effective slimming of the package volume.

The principle used by the above concepts is to effectively split the resources and upload them to the iEncryption server. Under the condition that the game can run normally, the remaining game resources are loaded synchronously through the iEncryption server under the WiFi/3G network environment. In this way, the purpose of processing game resources in sections and effectively compressing the size of the game package is achieved.

The difference between the game resource package compression technology developed by Ai Encrypt and the compression technology developed on the market before is: 1. This technology can intelligently identify the network environment, realize the silent loading of resources, and the players are not aware of the whole process; 2. Real compression For the purpose of the game package, it can compress up to 80% of the original game package size; 3. This technology is a lossless compression for game installation resources, which does not affect game quality, performance, stability and compatibility, and can be applied to this technology. in more mobile phone models.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326940454&siteId=291194637