Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.8.2] On the iOS platform, the performance of the box2d module is lower than that of version 2.4.x #16822

Open
zhefengzhang opened this issue Mar 25, 2024 · 2 comments
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@zhefengzhang
Copy link
Contributor

Cocos Creator version

3.8.2

System information

iOS

Issue description

Test result in 2.4.11
image

Test result in 3.8.2 no open box2d-wasm
image

Test result in 3.8.2 open box2d-wasm
image

Relevant error log output

No response

Steps to reproduce

Minimal reproduction project

TestPhysic2411.zip

TestPhysic382.zip

@zhefengzhang zhefengzhang added Bug Needs Triage Needs to be assigned by the team labels Mar 25, 2024
@zhefengzhang
Copy link
Contributor Author

Supplementary test on performance differences on the Android platform
补充测试 android 平台上的性能差异

Test result in 2.4.11 Android
https://download.cocos.org/CocosTechnicalSupport/EngineIssues/16822/2.4.11-2D%E7%89%A9%E7%90%86.mp4

Test result in 3.8.2 Android
https://download.cocos.org/CocosTechnicalSupport/EngineIssues/16822/3.8.2-2D%E7%89%A9%E7%90%86.mp4

Test result in 3.8.2 Android open wasm
https://download.cocos.org/CocosTechnicalSupport/EngineIssues/16822/3.8.2-2D%E7%89%A9%E7%90%86wasm.mp4

Test results: CocosCreator 3.8.2 exhibits lower performance than CocosCreator 2.4.11 on the Android platform, with CocosCreator 3.8.2 sustaining a low frame rate for extended periods. Both versions use box2d.js by default. However, when enabling box2d wasm in CocosCreator 3.8.2, its performance becomes superior to that of 2.4.11.
测试结果:Android 平台上 CocosCreator 3.8.2 比 CocosCreator 2.4.11 性能更低,CocosCreator 3.8.2 会长时间处在较低的帧率。两者默认都使用 box2d.js 。而在 CocosCreator 3.8.2 版本开启 box2d wasm 之后,性能会变得比 2.4.11 更好。

@zhefengzhang
Copy link
Contributor Author

@minggo @dumganhar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

1 participant