When users use mobile applications, there are many file transfer scenarios, such as file sending, cloud disk backup, video caching, application downloading and updating. In the mobile game industry, high-quality 3D modeling and rich scenes have become important factors to attract players. With the continuous improvement of game quality, game packages have gradually become larger and larger, because there are still many players who do not have long-term The download conditions of large traffic, the size of the first package will affect the new pull effect of the game, and each version update will inevitably lead to the loss of users.

How to improve the downloading experience of game resource packs has become a concern of many developers. A more common practice in the industry is to download the game by sub-package. The first download of a game by a user only contains the main part of the game and novice map resources. As the player gradually grows Constantly updating resource files such as maps and copies. This partly solves the problem of the size of the first package, but at the same time it brings a new problem. The user updates during the process of playing with higher requirements for download speed and stability.

How to improve the speed and success rate of downloading game resource files, reduce the long waiting time of users, and improve the experience?

HMS Core helps high-speed transfer of game files

Network Kit launched by HMS Core in the field of connection and communication has carried out a large number of download optimizations for file transfer scenarios. It makes full use of network bandwidth through technologies including intelligent fragmentation, weak network detection, network abnormal retry, and interrupted transmission. , Improve download speed, suitable for weak network links, high-speed mobile links and high-density congestion environments.

Intelligent fragmentation technology : divide a large file into multiple fragments, and each thread is responsible for the download of one or several fragments. Multi-threaded parallel download can increase the download speed;

Weak network detection function : Through machine learning capabilities, a large amount of measured data is modeled, and the optimal fragmentation value is accurately predicted according to the current equipment operating status and network environment status, so that parallel downloads can achieve a relatively balanced and stable effect;

Network abnormal retry : When the terminal is moving, it will inevitably enter scenes such as elevators and underground garages, and the equipment will be in a state of no network for a short time. Abnormal network retry can quickly resume the previous download task, and it can also ensure that the downloaded resources will not be downloaded repeatedly, which can save a lot of time and network resources;

breakpoint resume function : In the case of network jitter and abnormal process killing, Network Kit supports memory-level and process-level multi-level breakpoint resume function, the download process will save the progress information, can be downloaded progress Continue to download on the basis of the download without repeating the downloaded part before the exception.

Network Kit Sanqi Mutual Entertainment high-speed download

Sanqi Mutual Entertainment’s latest masterpiece "Douluo Dalu: Soul Master Showdown" uses high-precision character drawing and 3D modeling, and a large number of original animation voice actors and other materials in order to show players an authentic Douluo Dalu in all directions. The size of the resource pack was once increased to the gigabyte level. After integrating Network Kit, the download rate of game resource packs has increased by an average of 40%, and the success rate has increased significantly.


"Douluo Dalu: Soul Master Showdown" integrated Network Kit download comparison test
(From the internal test screen)

At the same time, in the scene while playing, the high-speed download causes the delay of the player's operation instructions to increase, triggering the contradiction between the high-speed download and the player's operation on the occupation of network resources. Through scene analysis, Network Kit can set the speed limit interface and set the upper limit of the speed for the background download scene, thus ensuring the network resources operated by the player and meeting different download requirements.

On October 23, the Huawei Developer Conference HMS Core 6.0: Connection and Communication Forum will introduce Huawei's multiple solutions in the field of connection and communication, and invite people from Douyin, Xishanju, Beidou Application Research Institute, and Ailian Technology And other partners, to share mobile application development practical experience and solutions for developers, and look forward to exploring the value of connection with developers.

Scan the QR code below, add the HDC·HMS Core sub-forum assistant, join the "HDC Connection and Communication Forum Exchange Group" to get the latest information, communicate with industry experts, and participate in the online live broadcast on October 23.

Learn more about the Network Kit and get the development guide document .

Visit Huawei Developer Alliance official website
Obtain the development guide document
Huawei Mobile Services open source warehouse address: GitHub , Gitee

and learn about the latest technical information of HMS Core for the first time~


HarmonyOS_SDK
596 声望11.7k 粉丝

HarmonyOS SDK通过将HarmonyOS系统级能力对外开放,支撑开发者高效打造更纯净、更智能、更精致、更易用的鸿蒙原生应用,和开发者共同成长。


引用和评论

0 条评论