Skip to content

Commit

Permalink
Remove lazy SMP noise
Browse files Browse the repository at this point in the history
  • Loading branch information
Tearth committed Aug 30, 2024
1 parent 472b2f1 commit c06debf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/engine/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use crate::utils::bithelpers::BitHelpers;
use crate::utils::conditional_expression;
use crate::utils::panic_fast;
use crate::utils::parameter;
use crate::utils::rand;
use std::cmp;
use std::mem::MaybeUninit;
use std::sync::atomic::Ordering;
Expand All @@ -29,8 +28,6 @@ pub const MOVE_ORDERING_HISTORY_MOVE: u8 = 180;
pub const MOVE_ORDERING_HISTORY_MOVE_OFFSET: i16 = -90;
pub const MOVE_ORDERING_LOSING_CAPTURES_OFFSET: i16 = -100;

pub const LAZY_SMP_NOISE: i16 = 10;

#[derive(std::cmp::PartialEq)]
enum MoveGeneratorStage {
ReadyToCheckHashMove,
Expand Down Expand Up @@ -577,10 +574,6 @@ fn assign_quiet_scores(
}

let mut value = context.history_table.get(r#move.get_from(), r#move.get_to(), MOVE_ORDERING_HISTORY_MOVE) as i16;
if context.helper_thread && value + LAZY_SMP_NOISE < MOVE_ORDERING_HISTORY_MOVE as i16 {
value += rand::i16(0..=LAZY_SMP_NOISE);
}

value += MOVE_ORDERING_HISTORY_MOVE_OFFSET;
move_scores[move_index].write(value);

Expand Down

0 comments on commit c06debf

Please sign in to comment.