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
8.21k stars 1.94k forks source link

IOS Game Overheating Issue #17627

Open ManjunathaReddyNS opened 1 month ago

ManjunathaReddyNS commented 1 month ago

Cocos Creator version

3.8.3

System information

iOS

Issue description

We are experiencing significant performance issues on iOS devices, with poor FPS and high battery consumption. Upon profiling, we discovered the following: • The frameMove function consumes about 25% to 50% of the total execution time. • Handling of touch events accounts for significant execution time. We are curious to know if any performance improvements have been made since then, particularly for iOS builds 9d28bec0ffc15dff52c8260edf7caa36a054ff8a_2_1034x396 These issues are likely from iOS’s restriction on Just-In-Time (JIT) compilation, leading to slower JavaScript execution compared to platforms that allow JIT (such as Android). Also curious to know how much of a performance difference can be expected with JIT enabled versus without it eb529a220c4fb79ffe866bafefbdfd85753bed49_2_1034x558

Relevant error log output

No response

Steps to reproduce

Using cocos creator 3.8.3 in our 2D game where the battery consumption in iOS is too high due to high CPU usage even when the game is idle. We are not using any physics as well. We have checked disabling metal validation and in release mode but not much difference in them.

Minimal reproduction project

No response

LuoLuoDev commented 2 days ago

V8 can open JIT in debug mode on ios platform and you may see a good performance. But it is not allowed in release mode. 😭

migachen18 commented 1 day ago

same,we also find this problem