Should drawView be suspended too?
Monkey Forums/Monkey Bug Reports/Should drawView be suspended too?
| ||
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. |
| ||
From memory, drawView needs to keep running while suspended or you can get 'dirty rects' on the screen when system requesters appear/disappear. |
| ||
Thanks Mark, I will find another way to fix it. |