Heavy CPU usage in iOS Simulator

I have begun doing test builds of my app in the iOS Simulator and have been surprised by the 30-50% CPU usage on my MacBook Pro i7. To see if the problem was specific to my app, I have tried building some of my prototype apps and some Ansca sample files, and all of them are in the neighborhood of 30% CPU usage even when they are not doing anything.

This is my first Corona project, and I am concerned about moving forward with those kinds of numbers. Is this a known problem? Should I be concerned?

Thanks,
Adrian [import]uid: 3671 topic_id: 11731 reply_id: 311731[/import]

It depends on what you are doing in your app. If you are changing stuff every frame, there is computation that needs to be done and redrawing which is not free. For example, physics apps need to recompute things every frame.

But if you doing nothing and are seeing usleep() eat up cycles, the short story is this problem should now be completely gone in the latest daily builds.

Longer story starts here:
http://blog.anscamobile.com/2011/02/pathological-sleep-disorder-on-ios/

The problem was mostly busy sleeping. We tuned the thread to be the lowest priority thread possible which meant as your app needed more CPU, the thread would move aside as necessary.

But a kind soul at Apple gave me some feedback on my bug report last week and helped me resolve the problem entirely.
[import]uid: 7563 topic_id: 11731 reply_id: 42714[/import]

Thanks for the response. I had been testing with the latest stable release, but when I tried the latest build, the problem seems to be fixed.

Thanks again,
Adrian [import]uid: 3671 topic_id: 11731 reply_id: 42725[/import]