Enable VSync and calculate FPS.