Multitasking Timer Delay Problem

JamesLewisJamesLewis Member, PRO Posts: 109
I've noticed a problem with 2 of my apps on the iPad & iPhone (as both published and adhoc's).

When I return to one of my apps after having been using other apps on the device, the multitasking nature of iOS means that you obviously jump straight back into the app where you left off. However, a delay develops to any timers in use at the start of any new scene. At first this can be minor (say 1s), but if you repeatedly leave your app, have a play with others and then return, the delay increases (to 2 or 3s). Which is rather frustrating....

Is this a known issue? Is this an issue simply with 0.10.1?

Any solutions - reseting the internal clock etc?

Any ideas @saladstraightshooter?

Look forward to hearing your thoughts.

James


Comments

  • JamesLewisJamesLewis Member, PRO Posts: 109
    Thought I'd bump this since this is a significant problem - no one else had such an issue?

    I see that no else has even read this thread so my observations are obviously falling of deaf ears....

    @saladstraightshooter - any ideas.

    James
  • 921creative921creative Member, PRO Posts: 140
    I haven't used it but isn't there an "on hibernate" rule that you can use to have your timers stop running when the app is closed?
  • I have been encountering a similar problem. The app would be installed on my iPhone, then I would hit the home button and the app will be "paused" via iOS's multitasking. When I would reenter the app, the timer I have in my game will start 2-3 seconds below zero. Not only that, but the animations won't start until the timer has counted up to zero. And each time I hit the home button and reenter the app, the time difference keeps adding up.
    In addition to that, it seems the longer the app has been "paused" via iOS's multitasking, the more the performance of the game decreases, to the point where the game is unplayable.
    I hope there is a fix for this soon.
  • JamesLewisJamesLewis Member, PRO Posts: 109
    Yup @digitalmonkeyschool, thats the EXACT problem...

    No one else seems particularly worried about it... But I imagine it affects all apps... I've re-written mine to remove the timers. A real pain.
  • @JamesLewis, did you remove just the timer for the level or did you remove all the timers for the game? So I have a timer for the level but I also have timers (Every "x" amt of seconds) going for some of the actors in the scene and this issue seems to/might affect those too.

    In addition to pushing the "home" button, I seem to be getting the same problems when my iPhone goes into sleep mode.
  • JamesLewisJamesLewis Member, PRO Posts: 109
    @digitalmonkeyschool

    I removed the just the timers at the start of each scene. All other timers ok.
Sign In or Register to comment.