iOS模拟器游戏运行速度很慢(低fps) [英] iOS Simulator games run very slow (low fps)

查看:393
本文介绍了iOS模拟器游戏运行速度很慢(低fps)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

潜入精灵套件(xcode 5)。我正在使用两个示例程序,1。创建新项目时包含的默认太空船示例和2.我下载的冒险游戏。

Diving into sprite kit (xcode 5). There are two example programs I'm working with, 1. the default spaceship example that's included when creating a new project and 2. the Adventure Game, which I downloaded.

在iOS模拟器中运行这些示例(似乎并不重要)。每种帧的帧速率都非常糟糕。如果我在太空船/你好世界的例子中只添加了30个旋转太空飞船,FR会迅速从60 FPS下降到(Ug)12 FPS。

Running these examples within the iOS Simulator (doesn't seem to matter which). The frame rate for each is absolutely abysmal. If I add only 30 spinning space ships in the space ship / hello world example, the FR rapidly drops from 60 FPS to (ug) 12 FPS.

冒险游戏示例再次,在iOS Sim中运行,以10-20 FPS的速度运行(取决于正在进行的操作)。

The Adventure Game example, again, running in iOS Sim, runs at a screaming 10-20 FPS (depending on how much action is going on).

Apple对这些游戏示例是否认真? Sprite Kit似乎是废话 - 我认为问题是程序员使用Texture Atlas的方式,或者是Sprite Kit(API)处理它们的方式。

Is Apple serious with these game examples? Sprite Kit seems to be crap -- I assume the problem is either the way the programmers employed Texture Atlas' or it's the way Sprite Kit (API) is dealing with them.

有人帮我理解或修复它吗?

Someone help me understand this or fix it?

在Mavericks,Mac Mini下运行xcode 5 - 我在Unity3D中编程并且在那里没有问题,特别是使用2DToolkit只有30个对象。

Running xcode 5 under Mavericks, Mac Mini -- I program in Unity3D and have no problems w/ FR there, esp w/ only 30 objects using 2DToolkit.

推荐答案

模拟器不是设备。模拟器使用Mac的CPU(更快的吨)和Mac的内存(更多)。然而,模拟器还通过软件渲染器模拟OpenGL ES,即使在最快的CPU上也非常慢。

The Simulator is not a device. The Simulator uses the Mac's CPU (tons faster) and the Mac's memory (lots more). However the Simulator also emulates OpenGL ES via a software renderer, which is abysmally slow even on the fastest CPU.

由于这一点以及最终用户无法在模拟器上运行应用程序的事实,模拟器上的任何性能测量都完全无关紧要!

Because of this and the fact that no end user will ever run an app on the Simulator, any performance measurements on the Simulator are utterly IRRELEVANT!

很抱歉大喊大叫,但我觉得这需要坚定地说。 ;)

Sorry for shouting but I felt this needed to be said with conviction. ;)

这篇关于iOS模拟器游戏运行速度很慢(低fps)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆