calculat fps.