views:

1493

answers:

1

Ok, I've read the articles about why it's a better idea to use an NSRunLoop instead of an NSTimer call to run a game loop and maintain a nice frame rate.

But what I haven't seen in any of the discussions is where to create the NSRunLoop.

Should that be put at the end of didFinishLoading?

A: 
Georg
Currently my game invokes an NSTimer to fire off at the equivalent of 30fps. But NSTimer is pretty innacurate for doing that kind of timing. People mention creating a NSRunLoop to drive the app as mentioned on this thread here....http://www.idevgames.com/forum/showthread.php?t=17058But I don't understand how they are creating the NSRunLoop
K2Digital