Vary loop timing to compensate for lagginess.