Optimize FPS control algorithm under Android.

Same fix as https://github.com/cocos2d/cocos2d-x/pull/7078 on v3 branch.