Optimize FPS control algorithm under Android.

The algorithm should work fine under Android now.