cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

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

Open tangkaikk opened this issue 1 year ago • 1 comments

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

tangkaikk avatar Aug 15 '24 10:08 tangkaikk

hot-update-test.zip

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

zhefengzhang avatar Aug 19 '24 02:08 zhefengzhang

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

qiuguohua avatar Sep 13 '24 02:09 qiuguohua