update diff retarget speed algo