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

查看:58
本文介绍了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 中编程并且在那里使用 FR 没有问题,尤其是使用 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天全站免登陆