Skip to content

Commit

Permalink
Simplify ttPv reduction formula
Browse files Browse the repository at this point in the history
This patch is based on the fact that the ttPv reduction has proven non-linear scaling (as documented in the code, along with testing guidelines); however, the original patch had (erroneously) not been tested at VLTC or longer.
  • Loading branch information
XInTheDark authored and PikaCat-OuO committed Jul 7, 2024
1 parent b2b429c commit eef540b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1042,8 +1042,7 @@ Value Search::Worker::search(

// Decrease reduction if position is or has been on the PV (~7 Elo)
if (ss->ttPv)
r -= 1 + (ttData.value > alpha) + (ttData.depth >= depth)
- (PvNode && ttData.value < alpha && ttData.depth >= depth);
r -= 1 + (ttData.value > alpha) + (ttData.depth >= depth);

// Decrease reduction for PvNodes (~0 Elo on STC, ~2 Elo on LTC)
if (PvNode)
Expand Down

0 comments on commit eef540b

Please sign in to comment.