Skip to content

Commit 2ead74d

Browse files
locutus2mcostalba
authored andcommitted
Remove depth condition for ttPv (#2166)
Currently PV nodes with a depth <= 4 were ignored for ttPv. Now remove this constraint and use all PV nodes. STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 52209 W: 11755 L: 11694 D: 28760 http://tests.stockfishchess.org/tests/view/5cebc2d30ebc5925cf07b93a LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 20874 W: 3689 L: 3568 D: 13617 http://tests.stockfishchess.org/tests/view/5cec01fc0ebc5925cf07c62d
1 parent 53d197b commit 2ead74d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ namespace {
603603
ttValue = ttHit ? value_from_tt(tte->value(), ss->ply) : VALUE_NONE;
604604
ttMove = rootNode ? thisThread->rootMoves[thisThread->pvIdx].pv[0]
605605
: ttHit ? tte->move() : MOVE_NONE;
606-
ttPv = (ttHit && tte->is_pv()) || (PvNode && depth > 4 * ONE_PLY);
606+
ttPv = PvNode || (ttHit && tte->is_pv());
607607

608608
// At non-PV nodes we check for an early TT cutoff
609609
if ( !PvNode

0 commit comments

Comments
 (0)