Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulator on Xcode 10 became terribly slow

Everything worked perfect on Xcode 9. But after updating to Xcode 10, Simulator started to get huge lags. Super simple animation is working on 2 fps and whole Mac OS is super slow while animation on Simulator is working. Anybody know what happens and how to fix that? Any app or any standard iOS app is the same terrible slow.

Explanation — it is NOT about slow motion that I can switch with Command⌘ + T. I am talking about huge lags. When UIView is flying it appears in another position jerkily. Not smooth slow animation. 2 fps is not slow motion. It is the same fast motion but in 2 FPS!

like image 752
bodich Avatar asked Sep 20 '18 17:09

bodich


People also ask

Why is Xcode simulator so slow?

Xcode simulator has extremely low performance. It is Apple's bug. I have reported it via Feedback Assistant. I have created demo with code demonstrating that simulator is 200 times slower than any old real device. I have found that JavaScript code with Date object executed in WKWebView is pain for simulator.

How do I turn off slow animation in Xcode 9?

In Simulator menu, go to Debug > Slow Animations , and uncheck this option or simply do: Show activity on this post. XCODE 9 BUG. This is officially confirmed to be an issue with Xcode 9.0 and its iOS 11 simulator — it affects any OpenGL-using application.

Is simulator really 200 times slower than real device?

I have created demo with code demonstrating that simulator is 200 times slower than any old real device. I have found that JavaScript code with Date object executed in WKWebView is pain for simulator.


2 Answers

download iOS11.4 simulator and try it. The downside is you cannot test iOS12. But at least you can work on Xcode 10 and get the App released. Note: don’t bother to get Xcode 9.4.1. Or other versions. It won’t fix the problem. The trick is after you run Xcode 10 the first time, it installed the new coresimulator framework to your root folder.

like image 83
Paul Avatar answered Oct 01 '22 00:10

Paul


What worked for me was switching the values in Debug > Graphics Quality Override of the Simulator menu. Surprisingly, after setting to 'Low' from 'Device Default', lag was gone, and now any value works like a charm.

like image 21
vova.andr Avatar answered Oct 01 '22 01:10

vova.andr