有什么方法可以加快iPad模拟器的OpenGL性能吗?

有什么方法可以加快iPad模拟器的OpenGL性能吗?

问题描述:

iPad模拟器太慢,无法测试OpenGL图形.有什么方法可以使其更快?

iPad simulator is too slow to test OpenGL graphics. Is there any way to make it faster?

以我的经验,iPad Simulator几乎总是比在实际设备上运行更快.在我2010年初的i7 MacBook Pro上,使用我开发的几乎所有OpenGL ES应用程序,模拟器都比iPhone 4和iPad 1快得多.

In my experience, the iPad Simulator has almost always been faster than running on an actual device. On my early 2010 i7 MacBook Pro, the Simulator has been significantly faster than the iPhone 4 and iPad 1 with almost every OpenGL ES application I've developed.

模拟器似乎确实对某些iOS硬件功能进行了基于软件的仿真,尤其是在着色器领域.如果您拥有大量着色器的OpenGL ES 2.0应用程序,则在Simulator中运行时,性能会明显下降.

The Simulator does appear to do software-based simulation of certain iOS hardware features, particularly in the area of shaders. If you have a shader-heavy OpenGL ES 2.0 application, you can see a significant drop-off in performance when running in the Simulator.

特别是,在填充速率受限的OpenGL ES应用程序中,模拟器无法匹配iPad 2的渲染速度,因为iPad 2具有出色的GPU.

In particular, the Simulator can't match the rendering speed of the iPad 2 when it comes to fill-rate-limited OpenGL ES applications, because the iPad 2 has a GPU that excels at this.

除了告诉您购买更快的计算机外,没有任何其他方法可以提高模拟器的速度.只要它必须模拟软件中的某些操作,与最新的iOS设备相比,执行某些类型的渲染时,您的性能就会有所降低.欢迎您在 http://bugreport.apple.com 提交增强功能请求,以寻求性能方面的改进,但我没有知道苹果团队可以做到这一点.从我所见,他们似乎非常意识到性能问题.

Beyond telling you to buy a faster computer, there's nothing that can be done to speed up the Simulator. As long as it has to simulate certain operations in software, you're going to get a little slower performance when doing certain types of rendering when compared to the very latest iOS devices. You're welcome to file an enhancement request at http://bugreport.apple.com to ask for performance improvements, but I don't know how much better the team at Apple can make this. They seem fairly conscious of performance issues from what I've seen.

与往常一样,应该使用模拟器来测试某些东西是否可以正常工作,并且所有实际的微调以及与性能相关的其他任何事情都应该在实际的硬件上完成.我发现在开发我的最后一个应用程序时,iPad 2上的构建-安装-测试"周期几乎与处理模拟器"一样快.

As always, the Simulator should be used to test if something works at all, and all actual fine-tuning and anything else performance related should be done on actual hardware. I've found that the build-install-test cycle on the iPad 2 was almost as fast as dealing with the Simulator when I was developing my last application.