80% CPU usage for new HelloWorld game

Hi,

I am using cocos2dx 3.7.1

  • cocos new -l cpp
  • Ran the corresponding Xcode project
  • The CPU usage shown is 80%
  • Below is the screenshot for the same:

Is this CPU usage expected? Is there any way to reduce it?

Did I ask something too obvious here? Would be great if somebody can let me know if I am missing anything here.

I met something similary on windows too. When the game window loses focus, CPU usage raise rapidly. But I don’t know how to profile it.

It would be nice if the hello world project enabled a battery friendly update loop calling sleep or whatever. It should be able to disable of course.