Should drawView be suspended too?

Monkey Forums/Monkey Bug Reports/Should drawView be suspended too?

Ferdi(Posted 2015) [#1]
In iOS, when a Monkey app is suspended by calling:

BBIosGame::IosGame()->SuspendGame();


Should/can drawView in iosgame.cpp be suspended too? Will it cause problem?

-(void)drawView:(id)sender{
	if( BBIosGame *game=BBIosGame::IosGame() ){
		if( ! game->Suspended() ){
			game->StartGame();
			game->RenderGame();
		}
	}
}


I asked because an AdColony's Ad is causing reset problem when playing with Monkey. And to fix it, I had to suspend and resume my game.

Thanks.


marksibly(Posted 2015) [#2]
From memory, drawView needs to keep running while suspended or you can get 'dirty rects' on the screen when system requesters appear/disappear.


Ferdi(Posted 2015) [#3]
Thanks Mark, I will find another way to fix it.