I try to implement a pause and a resume button in my game.
inside my game I create a CCMenu, with two CCMenuItemFont.
I initiate the game, and initiate my CCMenu, call cocos2d::CCDirector::sharedDirector()->resume(); and hide the resume button using setVisible(false).
When the pause button is pressed, I hide the pause button, show resume button and call cocos2d::CCDirector::sharedDirector()->pause();
But the problem is when I press the pause button, the FPS that was previous 30 go down to 4, this is normal?
There’s a better or different way to pause and resume a game?