From 50184b81a20a4679d2c827ccfcc70289eb3f99f1 Mon Sep 17 00:00:00 2001 From: Alan <78659211+TheSecondComing123@users.noreply.github.com> Date: Tue, 16 Jun 2026 20:01:13 -0400 Subject: [PATCH] Add IIR and remove redudant(?) code hopefully this helps --- src/search.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/search.rs b/src/search.rs index a42eaa549..8f5c5fcfc 100644 --- a/src/search.rs +++ b/src/search.rs @@ -735,6 +735,11 @@ fn search( extension = 1; } + // Internal Iterative Reductions (IIR) + if depth >= 4 && tt_move.is_null() && !excluded { + depth -= 1; + } + let mut best_move = Move::NULL; let mut bound = Bound::Upper; @@ -1263,10 +1268,6 @@ fn qsearch(td: &mut ThreadData, mut alpha: i32, beta: i32, ply: best_score = lerp(best_score, beta, 0.8256); } - if entry.is_none() { - td.shared.tt.write(hash, TtDepth::SOME, raw_eval, best_score, Bound::Lower, Move::NULL, ply, tt_pv, false); - } - return best_score; }