Optimize FPS control algorithm under Android.
Merge pull request #7583 from reckhou/v2

Optimize FPS control algorithm under Android.