improved fps timing, need further testing