请问有没遇到,在iPhone下按了电源键,然后机器进入锁屏状态,再进入iPhone发现gl verts 翻倍(原来820 ,后来变成1640),在android下没问题,用的是3.5 lua版本,
void AppDelegate::applicationDidEnterBackground()
{
Director::getInstance()->stopAnimation();
SimpleAudioEngine::getInstance()->pauseBackgroundMusic();
}
// this function will be called when the app is active again
void AppDelegate::applicationWillEnterForeground()
{
Director::getInstance()->startAnimation();
SimpleAudioEngine::getInstance()->resumeBackgroundMusic();
}