Calculating average FPS