frame rate for a Quartz game?

Member
Posts: 60
Joined: 2009.06
Post: #1
What is a good frame rate (how many times per second setneedsdisplay is called), for a 2D game using Quartz graphics?
Right now I have the entire window get redrawn, and I noticed in the simulator that it is hard to follow on screen a text string attached to my moving game element. I am doing 33 FPS right now.
Game is pretty simple and not at all resource intensive, even for the iPhone.
Quote this message in a reply
⌘-R in Chief
Posts: 1,237
Joined: 2002.05
Post: #2
aerospaceman Wrote:What is a good frame rate (how many times per second setneedsdisplay is called), for a 2D game using Quartz graphics?

Anything equal to or greater than the minimum frame rate you need to smoothly display changes... Sneaky

Quote:Right now I have the entire window get redrawn, and I noticed in the simulator that it is hard to follow on screen a text string attached to my moving game element.

I'm not really sure what that means. 30+ fps is certainly capable of animating elements well enough.
Quote this message in a reply
Moderator
Posts: 133
Joined: 2008.05
Post: #3
Any full screen redraw with Quartz on the actual device is going to be ungodly slow. Less than 10 frames per second. If you are writing a game that redraws the entire screen for animation, you simply have to use OpenGL ES.

The simulator's speed means nothing, you will not get 33 FPS on the device. You will get 5-10.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Frame rate issues markhula 7 6,292 Jan 15, 2011 09:47 AM
Last Post: markhula
  Frame Rate Consistency daveh84 4 3,494 May 4, 2010 12:19 PM
Last Post: AnotherJake
  limiting frame rate NelsonMandella 14 5,729 Sep 16, 2009 02:57 PM
Last Post: bmantzey
  iPod low upgrade rate to 3.0 jjslay 4 2,980 Jul 31, 2009 09:38 AM
Last Post: bruss14
  Quartz Text showing up mirrored and rotated aerospaceman 4 4,023 Jun 21, 2009 08:18 AM
Last Post: aerospaceman