summaryrefslogtreecommitdiff
path: root/src/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/root.c')
-rwxr-xr-xsrc/root.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/root.c b/src/root.c
index 7c50a65..8d1adf8 100755
--- a/src/root.c
+++ b/src/root.c
@@ -456,17 +456,6 @@ Return value:
ASSERT(d);
Trace("Null move cutoff rate: %5.3f percent.\n",
((n / d) * 100.0));
- n = (double)(ctx->sCounters.tree.u64HistoryPruneReSearches);
- d = (double)(ctx->sCounters.tree.u64HistoryPrunes) + 1;
- Trace("History/LMR pruning: %"COMPILER_LONGLONG_UNSIGNED_FORMAT
- " reduced, %5.3f percent needed a full-depth re-search.\n",
- ctx->sCounters.tree.u64HistoryPrunes, ((n / d) * 100.0));
- n = (double)(ctx->sCounters.tree.u64FutilityPrunes);
- d = (double)(ctx->sCounters.tree.u64FutilityCandidates) + 1;
- Trace("Futility pruning: %"COMPILER_LONGLONG_UNSIGNED_FORMAT
- " candidates, %5.3f percent actually pruned "
- "(rest saved by fail-high%% / SEE gates).\n",
- ctx->sCounters.tree.u64FutilityCandidates, ((n / d) * 100.0));
if (ctx->sCounters.egtb.uProbes > 0)
{
n = (double)(ctx->sCounters.egtb.uHits);
@@ -1166,10 +1155,15 @@ Return value:
if (iBeta > INFINITY) iBeta = +INFINITY;
if (iAlpha < -INFINITY) iAlpha = -INFINITY;
if (iAlpha >= iBeta) iAlpha = iBeta - 1;
+ // Was + HALF_PLY. Trimmed by QUARTER_PLY to compensate for
+ // search.c's qsearch-entry threshold moving from ONE_PLY down
+ // to THREE_QUARTERS_PLY -- that change alone would otherwise
+ // hand every line an extra ~1/4 ply of full-width search for
+ // free, not just check-heavy ones.
iScore = RootSearch(ctx,
iAlpha,
iBeta,
- uDepth * ONE_PLY + HALF_PLY);
+ uDepth * ONE_PLY + QUARTER_PLY);
if (g_MoveTimer.bvFlags & TIMER_STOPPING) break;
mv = ctx->mvRootMove;