frame rate calculation method updated