Skip to content

Commit

Permalink
bench: 1498159
Browse files Browse the repository at this point in the history
bench: 1498159
  • Loading branch information
FauziAkram authored Jan 18, 2025
1 parent c085670 commit 6452b5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,10 @@ Value Search::Worker::search(

Depth r = reduction(improving, depth, moveCount, delta);

// Decrease reduction if position is or has been on the PV (~7 Elo)
if (ss->ttPv)
r -= 1024 + (ttData.value > alpha) * 965 + (ttData.depth >= depth) * 960 + cutNode * 768;

// Step 14. Pruning at shallow depth (~120 Elo).
// Depth conditions are important for mate finding.
if (!rootNode && pos.non_pawn_material(us) && !is_loss(bestValue))
Expand Down Expand Up @@ -1141,10 +1145,6 @@ Value Search::Worker::search(
// so changing them or adding conditions that are similar requires
// tests at these types of time controls.

// Decrease reduction if position is or has been on the PV (~7 Elo)
if (ss->ttPv)
r -= 1037 + (ttData.value > alpha) * 965 + (ttData.depth >= depth) * 960;

// Decrease reduction for PvNodes (~0 Elo on STC, ~2 Elo on LTC)
if (PvNode)
r -= 1018;
Expand Down

0 comments on commit 6452b5a

Please sign in to comment.