I find that sometimes my application (Cocos2d game) beheaves in a "buggy" way after a significant time change. For example:
- case 1: when the application enters the background and, after several minutes, I restart it, I can see the loading image and then the application/game resumes.
- case 2: when the application enters the background and after a significant time change the application sometimes restarts, sometimes not. It is still unclear to me why.
Looking at the AppDelegate methods I found:
// next delta time will be zero
-(void) applicationSignificantTimeChange:(UIApplication *)application
{
[[CCDirector sharedDirector] setNextDeltaTimeZero:YES];
}
I was wondering, as this affects the director and the director affects the animations, is there a link for between this call and case 1 and case 2?