From 75b8630f1a9d1a684f33419f9f98fd7ffe192477 Mon Sep 17 00:00:00 2001 From: TheRealGioviok <425gioviok@gmail.com> Date: Sat, 24 Jan 2026 16:24:35 +0100 Subject: [PATCH 1/2] Bench: 17202983 --- src/search.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index f316f749..b9d7b2f0 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -780,13 +780,18 @@ Value Worker::search( Depth reduced_depth = std::clamp(new_depth - reduction, 1, new_depth); value = -search(pos_after, ss + 1, -alpha - 1, -alpha, reduced_depth, ply + 1, true); - if (value > alpha && reduced_depth < new_depth) { - value = -search(pos_after, ss + 1, -alpha - 1, -alpha, new_depth, - ply + 1, !cutnode); - if (quiet && (value <= alpha || value >= beta)) { - m_td.history.update_cont_hist(pos, m, ply, ss, - value <= alpha ? -stat_malus(new_depth) - : stat_bonus(new_depth)); + if (value > alpha) { + const bool do_deeper = reduced_depth < new_depth && value > best_value + 94; + new_depth += do_deeper; + + if (reduced_depth < new_depth) { + value = -search(pos_after, ss + 1, -alpha - 1, -alpha, + new_depth, ply + 1, !cutnode); + if (quiet && (value <= alpha || value >= beta)) { + m_td.history.update_cont_hist(pos, m, ply, ss, + value <= alpha ? -stat_malus(new_depth) + : stat_bonus(new_depth)); + } } } } else if (!PV_NODE || moves_played > 1) { From fb27addab44cd12ef8d4b3dae08a25136b1e08f2 Mon Sep 17 00:00:00 2001 From: TheRealGioviok <425gioviok@gmail.com> Date: Sun, 25 Jan 2026 02:43:03 +0100 Subject: [PATCH 2/2] Bench: 17112715