Profiling OpenGL ES App

Member
Posts: 436
Joined: 2002.09
Post: #21
What warmi said. Some physics engines might handle variable timesteps but most if not all provide a better simulation and might even run more efficiently when using a fixed step. Continuous collision can be very expensive, so even if your physics engine can do it you wouldn't necessarily turn it on for an iPhone game. CCD and fixed steps aren't mutually exclusive either - I'd still use fixed steps when using CCD 'cause they just make everything easier - AI, networking, demo recording, etc. can all benefit from fixed steps.

Here's the article I always point out when someone asks about fixed time steps (explains things better than I can): http://gafferongames.com/game-physics/fi...-timestep/

I should also note that this thread is pretty old and so is the code I posted - I no longer use NSTimer for one, but I still separate the logic/physics step from drawing 'cause that's just good for everybody.
Quote this message in a reply
Post Reply 


Messages In This Thread
Profiling OpenGL ES App - Nick - Feb 15, 2009, 09:11 PM
Profiling OpenGL ES App - Nick - Feb 15, 2009, 09:31 PM
Profiling OpenGL ES App - Frank C. - Feb 15, 2009, 10:15 PM
Profiling OpenGL ES App - Nick - Feb 15, 2009, 10:58 PM
Profiling OpenGL ES App - Nosredna - Feb 16, 2009, 08:54 AM
Profiling OpenGL ES App - AnotherJake - Feb 16, 2009, 10:22 AM
Profiling OpenGL ES App - Nosredna - Feb 16, 2009, 11:16 AM
Profiling OpenGL ES App - Nick - Feb 16, 2009, 02:30 PM
Profiling OpenGL ES App - Frank C. - Feb 16, 2009, 03:12 PM
Profiling OpenGL ES App - AnotherJake - Feb 16, 2009, 03:16 PM
Profiling OpenGL ES App - AnotherJake - Feb 16, 2009, 03:37 PM
Profiling OpenGL ES App - Frank C. - Feb 16, 2009, 04:28 PM
Profiling OpenGL ES App - Nick - Feb 16, 2009, 04:34 PM
Profiling OpenGL ES App - Frank C. - Mar 8, 2009, 03:45 PM
Profiling OpenGL ES App - imikedaman - Mar 8, 2009, 09:13 PM
Profiling OpenGL ES App - AnotherJake - Mar 9, 2009, 08:08 AM
Profiling OpenGL ES App - dave1 - Apr 17, 2009, 02:06 PM
Profiling OpenGL ES App - riruilo - Jan 19, 2010, 07:52 AM
Profiling OpenGL ES App - warmi - Jan 19, 2010, 09:29 AM
Profiling OpenGL ES App - riruilo - Jan 19, 2010, 11:31 AM
Profiling OpenGL ES App - Frank C. - Jan 19, 2010 08:50 PM
Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Profiling the non-OpenGL parts of my game monteboyd 10 3,025 Oct 25, 2012 04:03 PM
Last Post: monteboyd