Skip to content

Commit

Permalink
Play faster if certain
Browse files Browse the repository at this point in the history
  • Loading branch information
jnlt3 committed Dec 7, 2021
1 parent 09afc55 commit d1fe239
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/bm/bm_runner/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1fe239

Please sign in to comment.