Optimize FPS control algorithm under Android.