fix the bug that FPS will be doubled after swich browser tabs