Skip to content

Commit e31f97e

Browse files
locutus2vondele
authored andcommitted
Remove ttPv tree shrinking.
Via the ttPv flag an implicit tree of current and former PV nodes is maintained. In addition this tree is grown or shrinked at the leafs dependant on the search results. But now the shrinking step has been removed. As the frequency of ttPv nodes decreases with depth the shown scaling behavior (STC barely passed but LTC scales well) of the tests was expected. STC: LLR: 2.93 (-2.94,2.94) <-2.25,0.25> Total: 270408 W: 71593 L: 71785 D: 127030 Ptnml(0-2): 1339, 31024, 70630, 30912, 1299 https://tests.stockfishchess.org/tests/view/622fbf9dc9e950cbfc2376d6 LTC: LLR: 2.96 (-2.94,2.94) <-2.25,0.25> Total: 34368 W: 9135 L: 8992 D: 16241 Ptnml(0-2): 28, 3423, 10135, 3574, 24 https://tests.stockfishchess.org/tests/view/62305257c9e950cbfc238964 closes #3963 Bench: 7044203
1 parent f3a2296 commit e31f97e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/search.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,10 +1359,6 @@ namespace {
13591359
// opponent move is probably good and the new position is added to the search tree.
13601360
if (bestValue <= alpha)
13611361
ss->ttPv = ss->ttPv || ((ss-1)->ttPv && depth > 3);
1362-
// Otherwise, a counter move has been found and if the position is the last leaf
1363-
// in the search tree, remove the position from the search tree.
1364-
else if (depth > 3)
1365-
ss->ttPv = ss->ttPv && (ss+1)->ttPv;
13661362

13671363
// Write gathered information in transposition table
13681364
if (!excludedMove && !(rootNode && thisThread->pvIdx))

0 commit comments

Comments
 (0)