Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS simulator slow with Mavericks

I'm the only one to have a slow simulator since the last OSX update (Mavericks)?

  • I've tried to reset simulator
  • I've tried to switch on/off animation speed in Debug main bar
  • I've tried to draw my game with a simple moving quad
  • I've tried to run my application on IOS7, IOS6 with Retina and without on the simulator
  • My application isn't slow when I run it on an Android device

Simulator is always slow, on the previous OSX version I haven't got any problems :/ (My application is a game using OpenGL ES2)

Thanks!

like image 796
LongDuZboub Avatar asked Oct 23 '13 09:10

LongDuZboub


People also ask

How can I make iOS simulator run faster?

Close unused applications to free system resources such as cpu & memory. make sure "slow animations" is not selected in the simulator debug menu. Short cut for this is ⌘T simulator -> Debug -> slow animations.

Does iOS simulator simulate performance?

The simulator does a really lousy job of indicating app performance. In fact it doesn't try. For most things the simulator is much, much faster than an iOS device. It runs your code on an x86 processor, which is much faster than the ARM and has many times more memory.


2 Answers

I met the performance issue on simulator prior to iOS7.

Apple provides the solution in Xcode 5.1 Release Note (Page 4: iOS Simulator)

sudo sysctl -w kern.timer.coalescing_enabled=0

Now the simulator flies!

like image 174
satgi Avatar answered Sep 20 '22 21:09

satgi


Well, the iOS 6.1 simulator seems slower in Mavericks. I am still using XCode 4.6.3 and iOS 6.1, but on Mavericks now.

I'm not ready to upgrade my app to using iOS 7 (I'm holding off until I have enough time to handle any issues that may pop up in the upgrade).

A reasonable answer seems to the deleted one, he said that if you do use Mavericks, make sure to use the iOS 7 simulator, as it doesn't seem to have the slowdown issue.

enter image description here

Edit:

Having installed XCode 5, happily there were no problems in the upgrade with my project (I was afraid because of my experience with the Beta). The iOS 7 simulator on Mavericks runs at least as fast as the iOS 6.1 simulator on Lion.

When you're running in the simulator, make sure not to select Retina, because the retina emulator is many times slower than the non-retina emulator. This is likely due to the fact that it has that many more pixels to fill, and the iOS simulators don't use hardware rendering.

like image 33
bobobobo Avatar answered Sep 22 '22 21:09

bobobobo