cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
6.93k stars 1.79k forks source link

AssetsManagerEx.cpp AssetsManagerEx::prepareUpdate, cost a lot of times #17544

Closed tangkaikk closed 5 hours ago

tangkaikk commented 4 weeks ago

Cocos Creator version

3.x 2.x

System information

Android & IOS

Issue description

when compare the manifest file of 8 M in function of AssetsManagerEx::prepareUpdate, it costs 37586ms, 。 Is there any way to optimize this problem. image

The cost time comes from mumu模拟器V4.0.3。

The phones to be low speed: Oppo find x vivo iqoo u3 image

Relevant error log output

none

Steps to reproduce

none

Minimal reproduction project

here is the manifests. Downloads.zip No response

zhefengzhang commented 3 weeks ago

hot-update-test.zip

在构建原生平台游戏,并运行在设备上,点击游戏画面右上角的版本更新按钮,会自动下载远程资源服务器上的版本信息文件,然后自动进入热更检查阶段。

qiuguohua commented 5 hours ago

是因为数据太多,而且每个数据操作了json,导致很慢。 现在把函数改成异步的了。不回卡住ui