From d1fe239d667e7860c6c22632a387af631c95d25f Mon Sep 17 00:00:00 2001 From: doruk Date: Tue, 7 Dec 2021 21:42:47 +0300 Subject: [PATCH] Play faster if certain --- src/bm/bm_runner/time.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/bm/bm_runner/time.rs b/src/bm/bm_runner/time.rs index 1542113c..94451ba9 100644 --- a/src/bm/bm_runner/time.rs +++ b/src/bm/bm_runner/time.rs @@ -115,11 +115,7 @@ impl TimeManager { time *= 1.05_f32.powf(eval_diff.min(1.0)); - let move_change_factor = if move_change_depth > MOVE_CHANGE_MARGIN { - 0.8 - } else { - 1.0 - }; + let move_change_factor = 1.05_f32.powf(MOVE_CHANGE_MARGIN as f32 - move_change_depth as f32).max(0.4); let time = time.min(self.max_duration.load(Ordering::SeqCst) as f32 * 1000.0); self.normal_duration