How do I consolidate the differences between iOS and Android update loops?
        Posted  
        
            by 
                kkan
            
        on Game Development
        
        See other posts from Game Development
        
            or by kkan
        
        
        
        Published on 2012-04-01T07:24:38Z
        Indexed on 
            2012/04/01
            17:44 UTC
        
        
        Read the original article
        Hit count: 277
        
I'm currently working on moving some Android-ndk code to the iPhone.
From looking at some samples it seems that the main loop is handled for you and all you've got to do is override the render method on the view to handle the rendering. Then add a selector to handle the update methods. The render method itself looks like it's attached to the windows refresh.
But in android I've got my own game loop that controls the rendering and updates using C++ time.h. Is it possible to implement the same here bypassing Apple's loop? I'd really like the keep the structures of the code similar.
© Game Development or respective owner