xcode IOS 模拟器与 Mavericks 一起变慢
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19538308/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
IOS simulator slow with Mavericks
提问by LongDuZboub
I'm the only one to have a slow simulator since the last OSX update (Mavericks)?
自上次 OSX 更新(小牛队)以来,我是唯一一个模拟器运行缓慢的人吗?
- 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
- 我试过重置模拟器
- 我试图在调试主栏中打开/关闭动画速度
- 我试图用一个简单的移动四边形来绘制我的游戏
- 我尝试在 IOS7、IOS6 上使用 Retina 运行我的应用程序,而没有在模拟器上运行
- 我的应用程序在 Android 设备上运行时并不慢
Simulator is always slow, on the previous OSX version I haven't got any problems :/ (My application is a game using OpenGL ES2)
模拟器总是很慢,在以前的 OSX 版本上我没有遇到任何问题:/(我的应用程序是使用 OpenGL ES2 的游戏)
Thanks!
谢谢!
回答by satgi
I met the performance issue on simulator prior to iOS7.
我在 iOS7 之前的模拟器上遇到了性能问题。
Apple provides the solution in Xcode 5.1 Release Note(Page 4: iOS Simulator)
Apple 在Xcode 5.1 Release Note 中提供了解决方案(第 4 页:iOS 模拟器)
sudo sysctl -w kern.timer.coalescing_enabled=0
sudo sysctl -w kern.timer.coalescing_enabled=0
Now the simulator flies!
现在模拟器飞起来了!
回答by bobobobo
Well, the iOS 6.1 simulator seems slowerin Mavericks. I am still using XCode 4.6.3 and iOS 6.1, but on Mavericks now.
好吧,iOS 6.1 模拟器在 Mavericks 中似乎更慢。我仍在使用 XCode 4.6.3 和 iOS 6.1,但现在在 Mavericks 上。
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).
我还没有准备好将我的应用程序升级到使用 iOS 7(我会推迟,直到我有足够的时间来处理升级中可能出现的任何问题)。
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.
对于已删除的答案似乎是一个合理的答案,他说如果您确实使用 Mavericks,请确保使用 iOS 7 模拟器,因为它似乎没有减速问题。
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.
安装了 XCode 5 后,很高兴我的项目升级没有问题(因为我在 Beta 上的经验,我很害怕)。Mavericks 上的 iOS 7 模拟器的运行速度至少与 Lion 上的 iOS 6.1 模拟器的运行速度一样快。
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.
在模拟器中运行时,请确保不要选择 Retina,因为视网膜模拟器比非视网膜模拟器慢很多倍。这可能是因为它有更多的像素要填充,而且 iOS 模拟器不使用硬件渲染。
回答by Saad Ur Rehman
Yeah , iOS simulator is very slow on both ios6 and ios7 . there are issues in xcode5 . I just upgrade by xcode to 5.0.2. It is little bit fast than xcode 5 on simulator but still not up to mark.
是的,iOS 模拟器在 ios6 和 ios7 上都很慢。xcode5 中存在问题。我只是通过 xcode 升级到 5.0.2。它在模拟器上比 xcode 5 快一点,但仍然达不到标准。