new frame sync math