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

The cc.animation.AnimationController component has a low game frame rate on Android devices

Open zhefengzhang opened this issue 2 years ago • 2 comments

Cocos Creator version

3.7.3

System information

android

Issue description

目前测试结果: 1.25个角色(Mesh不合批,单个角色面数<1000)使用 cc.SkeletalAnimation 组件且不勾选 UseBakedAnimation : a. Android机型: ①荣耀30s上运行15FPS,第5个英雄还能显示60FPS,后面每增加一个角色,帧率开始降低。(仅供参考:每次降5帧左右) ②华为P40上运行20FPS,第7个英雄还能显示60FPS,后面每增加一个角色,帧率开始降低。(仅供参考:每次降4.5帧左右) b. IOS机型: ①Iphone6s运行60FPS,后面加到了40个还保持稳定60FPS。 ①Iphone8运行60FPS,后面加到了40个还保持稳定60FPS。 ①Iphone13运行60FPS,后面加到了40个还保持稳定60FPS。 2.25个角色(Mesh不合批,单个角色面数<1000)使用 cc.animation.AnimationController 组件,情况基本跟①相似。(增加角色,Android掉帧,IOS没问题) 3.25个角色(Mesh不合批,单个角色面数<1000)使用 cc.SkeletalAnimation 组件且勾选 UseBakedAnimation,在以上机型上没发现问题,能保持稳定60FPS. 结论:如果使用 cc.SkeletalAnimation 组件且勾选 UseBakedAnimation,Android和IOS机型目前没发现问题。 如果使用 cc.SkeletalAnimation 组件且不勾选 UseBakedAnimation,则与使用 cc.animation.AnimationController 组件问题一样,在Android机型上有掉帧问题,IOS机型上没问题。

重点 :开启编辑器中的宽松模式之后,性能问题将得到解决。When you turn off loose mode in the editor, the performance problem is resolved.

Relevant error log output

No response

Steps to reproduce

Minimal reproduction project

No response

zhefengzhang avatar Aug 30 '23 08:08 zhefengzhang

This is Cocos IM VIP issues, internal issues of the correlation engine: github.com/cocos/3d-tasks/issues/17563

zhefengzhang avatar Aug 30 '23 08:08 zhefengzhang

The same problem: https://github.com/cocos/cocos-engine/issues/14649

zhefengzhang avatar Jan 26 '24 09:01 zhefengzhang