Quote:
Originally Posted by themaster
hey everyone
here is a scenario
you have a game loop controlling 1 sprite at a time flying in the air
the problem is when touch input occurs the flying sprite seems to lag a little bit
i ve tried to slow down all possible calculations needed and not needed still the same i brought the rate to 1/10 and still lagging i ran out of ideas
any HELP PLEASE.
|
Do your updates based on the delta of time from the last update, and not just on "next frame please".
In other words, if it has been two seconds since your last update, run your updates for two secs worth of activity. Never assume you are going to get a particular frame rate - the hardware will f you up every time.