From 7b8ffe0f5d89784c6b360331a7781604305371d9 Mon Sep 17 00:00:00 2001 From: Vince Negri Date: Sun, 31 May 2015 10:52:41 +0100 Subject: [PATCH] Remove intermediate re-search in LMR STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 20149 W: 3830 L: 3707 D: 12612 LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 45384 W: 7089 L: 7006 D: 31289 Bench: 8110365 Resolves #361 --- src/search.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 814a96d9..4aecad1c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -975,13 +975,6 @@ moves_loop: // When in check and at SpNode search starts from here value = -search(pos, ss+1, -(alpha+1), -alpha, d, true); - // Re-search at intermediate depth if reduction is very high - if (value > alpha && ss->reduction >= 4 * ONE_PLY) - { - Depth d2 = std::max(newDepth - 2 * ONE_PLY, ONE_PLY); - value = -search(pos, ss+1, -(alpha+1), -alpha, d2, true); - } - doFullDepthSearch = (value > alpha && ss->reduction != DEPTH_ZERO); ss->reduction = DEPTH_ZERO; } -- 2.39.2