★ TouchArcade needs your help. Click here to support us on Patreon.

Game's framerate + Simulator questions

11-08-2010, 03:55 PM
#1
Joined: Aug 2010
Posts: 207
Game's framerate + Simulator questions

Hi guys!

This is our first time developing for the iOS platform and we have a few questions regarding the performance of the iPhone/iPod devices.

So far we wasn't able to test the game on a device (we'll be able to do it next week), that's why some of these questions may look too noobish!

1- What's the standard framerate for games on the platform?
We are focusing on 60 FPS for our game, however things are a bit unstable on the simulator. If we decrease it to 30 FPS, do you think our game will lose some of its appeal?
I do think running a game on 60 FPS is a good thing, but I dunno, how did this turn out on your games? Also, it is a 2D game, not 3D, so I really think we can be able to keep it over 60 fps!

2- Is the Simulator slower than the device?
I really wanted to know it now - I know it could wait for 10-12 days, but we reached a part in the project that it would be nice to know.
So, is it?

Thanks a lot for your time!
Cheers!
11-08-2010, 04:08 PM
#2
1) 30 vs 60 fps
You might be able to pull off 60fps. It depends on your game quite a lot. Chances are 30fps will be a better target. The fill rate is pretty terrible, so if you have a lot of overdraw it will slow you down.

2) Simulator vs device
They don't match up at all. The mac GPU and CPU are on a whole different level than the iPhone. Also unless they fixed it recently the simulator is going to be really slow at drawing pvr4 textures because it defaults to software decompression. You really can't use the simulator to judge how the game will run on the device.

11-08-2010, 04:53 PM
#3
Joined: Apr 2009
Location: Pennsylvania
Posts: 1,006
The simulator is a terrible predictor for performance on a device. Some things it runs much faster, some things much slower. Other problems you may run into: Filenames are case sensitive on device, but not simulator. Simulator gives you more memory than a device.

60fps is a tough target to hit. It really depends on how much you're drawing each frame.

Quote:
Originally Posted by gammabeam View Post
Hi guys!

This is our first time developing for the iOS platform and we have a few questions regarding the performance of the iPhone/iPod devices.

So far we wasn't able to test the game on a device (we'll be able to do it next week), that's why some of these questions may look too noobish!

1- What's the standard framerate for games on the platform?
We are focusing on 60 FPS for our game, however things are a bit unstable on the simulator. If we decrease it to 30 FPS, do you think our game will lose some of its appeal?
I do think running a game on 60 FPS is a good thing, but I dunno, how did this turn out on your games? Also, it is a 2D game, not 3D, so I really think we can be able to keep it over 60 fps!

2- Is the Simulator slower than the device?
I really wanted to know it now - I know it could wait for 10-12 days, but we reached a part in the project that it would be nice to know.
So, is it?

Thanks a lot for your time!
Cheers!
11-08-2010, 06:52 PM
#4
Joined: May 2010
Location: Lincoln, UK
Posts: 344
I've got a game in review at the moment (TiltStorm) that runs at 60fps on all the devices I have tested it on, the oldest being an iPhone 3G. I have a fast moving starfield as a background that looks great, but appeared jerky if played at 30fps, so I went for 60fps rather than extra effects (I have more stars on recent devices).

It is a balance. How much better is the game for running at 60fps verses how many other features could you include at 30?
11-08-2010, 08:26 PM
#5
Joined: Dec 2009
Location: Berlin, Germany
Posts: 1,674
first the most important thing.. do NOT use the simulator.. its shovelware.

always do your testing on a device


and as stated the fillrate is not good on the powervr chip so having alot of big transparent entities on screen will kill your performance (on older devices) even if its 2d, that doesnt matter as there is no "2d" on the iphone.. everything are hardware accelerated opengl views.. its just a 2d projection.
so if you have alot of overlapping sprites you can say goodbye to the performance. try o keep such things as small as possible.
11-09-2010, 06:21 AM
#6
Joined: Sep 2010
Location: Morestel, France
Posts: 572
I'm new to IOS dev but with few months experience...

First, I'll repeat what the others are saying: the simulator is kind of rubbish and doesn't match at all the device. What are you waitting for to get a proper device

I'm a long time PC dev and it was hard to move to XCODE... So, I made a cross platform libs. I'm creating my games on the PC (and mac too, but I prefer the PC). So, I never use the simulator... in fact my PC version replace the simulator. When I'm happy of the code, I do test it properly on the device and tweak stuff. I spend a lot of time testing on the device, but never developping (except the few objective C stuff I can't do on PC: like IAds/In app purchase...).

Now, I've dumped the simulator. I haven't touch it for a while and will never go back
11-09-2010, 08:25 AM
#7
Joined: Aug 2010
Posts: 207
Hey guys, thanks a lot for the replies!!

heh, so far we didn't test it on a device because I had some delays starting my company, and couldn't deliver the documents to become a developer...
But this is about to change!

We do have some parallaxes as backgrounds for our levels, and they are our main concern on the performance issue. But it's nice to hear that the simulator is rubbish, I'm not that worried now :P

Cheers!
11-09-2010, 08:28 AM
#8
Joined: Sep 2010
Location: Morestel, France
Posts: 572
> We do have some parallaxes as backgrounds

Be carefull about the fillrate: it's pretty bad on the idevices...

JC
11-09-2010, 09:54 AM
#9
Joined: Dec 2008
Location: The Land of The Rising Sun
Posts: 146
Well, I wouldn't say the simulator is rubbish. It is very useful for testing during the development stage and it usually compiles and executes faster than on the device, which can save time. It doesn't replace testing on the device, however. Things like frame rates can be radically different.

Both the simulator and the device are useful tools for development.

Developer of Petri. Available now on the iTunes Store.

These days I work with Tonchidot on Sekai Camera.