Why is my iPad game so slow?

Member
Posts: 54
Joined: 2010.10
Post: #4
(Nov 11, 2010 07:29 PM)mattz Wrote:  No "magic bullet", but if I were in your shoes, I'd do some simple detective work to see where the problem is coming from...

1) If your render function is reduced to only glClear(), are you still getting only 15 FPS? If so, you almost certainly have a timing bug or some logic error in the way you've organized your render cycle.

2) If you don't draw anything at all but run all of the state management/shader setup/vertex buffer code is the FPS still just 15? If so, it might be that you are doing some extraordinarily expensive non-drawing operations.

3) If you disable the shaders but draw all the geometry, does the FPS increase? If so, the problem could be a shader executing too slowly. I don't know about the iPad, but on some graphics cards exceeding some hardware limits makes your shader run in software, which absolutely kills performance.

4) If you keep all of your shaders and state changes, but draw just one object per category/shader/state, does the FPS increase? If so, you're probably fillrate or geometry bound, and further tests can tell you where the problem is.

Best of luck!
Thanks for the suggestions. To answer your points:

1) It goes up to 60.
2) I think it went up, will double check
3) We've not actually tried that. Will do so in a bit, thanks.
4) We went down to just the first triangle. Little change

I really don't think its fill rate. We took a lot of time to ensure that the ground mesh looks pretty much like a single extrusion. The tanks and stuff over the top aren't massive but lets face it its not like I can take them out. Sad

@Jake: Hmmm, I think so but I'll double-check that also. We claimed to be decent at GL but our mac and iPad SDK experience is still fairly light - we could be making any number of mistakes like this tbh. Any other more global things you can think of?

Thanks fellaz. Good stuff so far...

Paul Johnson
Great Little War Game
Quote this message in a reply
Post Reply 


Messages In This Thread
Why is my iPad game so slow? - Applewood - Nov 11, 2010, 04:55 PM
RE: Why is my iPad game so slow? - mattz - Nov 11, 2010, 07:29 PM
RE: Why is my iPad game so slow? - Applewood - Nov 12, 2010 02:10 AM
RE: Why is my iPad game so slow? - Frank C. - Nov 12, 2010, 03:47 AM
RE: Why is my iPad game so slow? - Applewood - Nov 12, 2010, 04:05 AM
RE: Why is my iPad game so slow? - arekkusu - Nov 12, 2010, 10:12 AM
RE: Why is my iPad game so slow? - Applewood - Nov 12, 2010, 08:56 AM
RE: Why is my iPad game so slow? - Applewood - Nov 12, 2010, 09:37 AM
RE: Why is my iPad game so slow? - Applewood - Nov 12, 2010, 10:43 AM
RE: Why is my iPad game so slow? - Zwilnik - Nov 12, 2010, 12:18 PM
RE: Why is my iPad game so slow? - monteboyd - Nov 12, 2010, 01:36 PM
RE: Why is my iPad game so slow? - Applewood - Nov 12, 2010, 02:36 PM
RE: Why is my iPad game so slow? - Applewood - Nov 12, 2010, 05:35 PM
RE: Why is my iPad game so slow? - Applewood - Nov 15, 2010, 03:53 AM
RE: Why is my iPad game so slow? - Applewood - Nov 16, 2010, 08:44 AM
RE: Why is my iPad game so slow? - Applewood - Nov 17, 2010, 01:49 AM
RE: Why is my iPad game so slow? - Sumaleth - Nov 17, 2010, 06:27 AM
RE: Why is my iPad game so slow? - Applewood - Nov 17, 2010, 06:30 AM
RE: Why is my iPad game so slow? - Sumaleth - Nov 17, 2010, 07:09 AM
RE: Why is my iPad game so slow? - warmi - Nov 17, 2010, 09:33 AM
RE: Why is my iPad game so slow? - Applewood - Nov 17, 2010, 07:13 AM
RE: Why is my iPad game so slow? - Applewood - Nov 17, 2010, 08:51 AM
RE: Why is my iPad game so slow? - Frogblast - Nov 17, 2010, 10:28 PM
RE: Why is my iPad game so slow? - Applewood - Nov 18, 2010, 01:56 AM
RE: Why is my iPad game so slow? - flash - Nov 18, 2010, 09:18 AM
RE: Why is my iPad game so slow? - Applewood - Nov 18, 2010, 10:33 AM
RE: Why is my iPad game so slow? - KittyMac - Nov 20, 2010, 09:03 AM
RE: Why is my iPad game so slow? - Applewood - Nov 20, 2010, 09:44 AM
RE: Why is my iPad game so slow? - headkaze - Nov 27, 2010, 07:00 AM
RE: Why is my iPad game so slow? - Applewood - Nov 20, 2010, 02:17 PM
RE: Why is my iPad game so slow? - Frogblast - Nov 20, 2010, 03:14 PM
RE: Why is my iPad game so slow? - Applewood - Nov 20, 2010, 05:02 PM
RE: Why is my iPad game so slow? - Applewood - Nov 27, 2010, 09:19 AM
RE: Why is my iPad game so slow? - gonk - Nov 28, 2010, 09:43 PM
RE: Why is my iPad game so slow? - Applewood - Nov 29, 2010, 02:14 AM
RE: Why is my iPad game so slow? - gonk - Nov 29, 2010, 10:29 AM
RE: Why is my iPad game so slow? - Applewood - Nov 30, 2010, 01:54 AM
RE: Why is my iPad game so slow? - Kerome - Jan 3, 2011, 10:57 AM
RE: Why is my iPad game so slow? - Kerome - Jan 3, 2011, 11:12 AM
Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  XML too slow, best way to go binary markhula 9 7,127 Jan 14, 2011 06:58 AM
Last Post: markhula
  emulator slow when rendering from a second thread captainfreedom 1 2,479 Jan 30, 2010 05:05 PM
Last Post: ChrisD
  Simple application slow down, FPS drops Newbrof 15 6,853 Sep 2, 2009 12:51 PM
Last Post: AnotherJake
  Chipmunk is too slow? jaguard 14 7,131 Jan 22, 2009 04:49 AM
Last Post: jaguard