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

IOS Game Overheating Issue

Open ManjunathaReddyNS opened this issue 1 year ago • 1 comments

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

ManjunathaReddyNS avatar Sep 11 '24 11:09 ManjunathaReddyNS

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. 😭

LuoLuoDev avatar Oct 29 '24 03:10 LuoLuoDev

same,we also find this problem

migachen18 avatar Oct 30 '24 11:10 migachen18

Yep, can not use jit on iOS is a big problem.

minggo avatar Nov 06 '24 09:11 minggo

Any update on this?

k-wakama avatar Jan 28 '25 08:01 k-wakama