mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
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
This commit is contained in:
parent
c1d3bd2dba
commit
7b8ffe0f5d
1 changed files with 0 additions and 7 deletions
|
@ -975,13 +975,6 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||||
|
|
||||||
value = -search<NonPV, false>(pos, ss+1, -(alpha+1), -alpha, d, true);
|
value = -search<NonPV, false>(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<NonPV, false>(pos, ss+1, -(alpha+1), -alpha, d2, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
doFullDepthSearch = (value > alpha && ss->reduction != DEPTH_ZERO);
|
doFullDepthSearch = (value > alpha && ss->reduction != DEPTH_ZERO);
|
||||||
ss->reduction = DEPTH_ZERO;
|
ss->reduction = DEPTH_ZERO;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue