Discussion: How to reduce the size of the game package developed by Cocos2d

As we all know, the mobile game package developed by Cocos2d is generally too large, and the installation package of several hundred megabytes is required. However, 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, it will also cause the user to cancel the download, and also consider the problem of traffic.

Some common simple methods:
1. Replace jpg and use psd to reduce duplicate resources;
2. Eliminate unnecessary resources;
3. Check the log records when packaging, so as to determine the file type that needs to be reduced;
4. Optimize, compress pictures, Reduce image size;
5. Optimize, compress grid and animation, 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.

In addition, the latest Ai Compression service launched by the service provider Ai Encryption can improve this dilemma. Ai Compression mainly adopts the method of resource splitting, and realizes the automatic loading of resources in the background while ensuring a smooth game experience; lossless compression , Under the condition that the game quality, compatibility, and stability are fully guaranteed, the client can be effectively slimmed down; the network environment is intelligently screened, and the cloud server is accelerated to realize the high-speed background silent loading of resources, and the resources are loaded in place at one time in the case of wifi. In this way, the volume of the installation package is truly reduced and the conversion rate is improved.

Guess you like

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