Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to reduce the size of game packages developed by Cocos2d

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to reduce the size of game packages developed by Cocos2d. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.

As we all know, the mobile game package developed through Cocos2d is generally too large, moving hundreds of M installation package, and the large package will lead to the increase of the cost of mobile games promotion, but also affect the conversion rate of users. Apart from other factors, when users choose to download, they will focus on the size of the game package, which is too large and take a long time to download, which will also cause users to cancel the download and take into account the problem of traffic.

Some common and simple methods:

1. Replace jpg and use psd to reduce duplication of resources

two。 Eliminate unnecessary resources

3. Check the log record when packing to determine the types of files that need to be reduced

4. Optimize, compress pictures, reduce picture size

5. Optimize, compress meshes and animations, reduce file size

6. Strip out system.dll and system.xml.dll, try not to rely on them, or replace them with other components.

The method described above is the compression of pictures and the reduction of resources, but these processes will greatly affect the picture quality and run-time fluency of the game, and affect the user's experience.

In view of the current predicament, many service providers have launched subcontracting technology, while the traditional subcontracting is to cut resources, download them in segments, and download them again before entering the game; when dealing with the slimming of game packages, they often delete the code, simplify resources or even make a choice of resources; when loading resources, players must interrupt the game and load resources slowly while waiting.

In addition, the love compression service newly launched by the service provider Ai encryption can improve this predicament. Love compression mainly adopts the way of splitting resources to realize the automatic loading of resources in the background under the condition of ensuring a smooth game experience. lossless compression, in the case of fully ensuring the game quality, compatibility and stability will not be affected, really achieve effective slimming of the client Intelligently identify the network environment and achieve silent loading of resources at a high speed in the background through CVM acceleration. In the case of wifi, resources are loaded at once. Thus, it can really reduce the volume of the installation package and improve the conversion rate.

On how to reduce the size of the game package developed by Cocos2d to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report