Ok, ive already seen those examples, but where do you really make the call to the simulation function (collision detection, etc) where is the right spot to place it in the code? i believe it's not in the rendering function which is called everytime by the animator.
i've pointed out a possible solution with a thread, but there may be others like for example with a timertask perhaps?
i mean where do you guys put all the code related to the game in the example above of the wikipedia? in the example above, the
in the display function shouldnt be there because as i see it, it belongs to the simulation function, that's what im specifically asking. We cant place all the gameupdate/logic/etc into the display function just because it's called everytime by the animator. It must be separated.
And finally,
how can you control the timing/FPS of your app then?