From 4c04bf283072f36aae7f373baec44d0c6f378873 Mon Sep 17 00:00:00 2001 From: rektdie Date: Thu, 11 Sep 2025 10:19:21 +0200 Subject: [PATCH] added a base to rfp | bench 6836864 --- source/search.cpp | 2 +- source/tunables.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index 69d6c97..5f1b163 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -413,7 +413,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC if (!board.InCheck() && !ctx->excluded) { if (ply) { // Reverse Futility Pruning - int margin = rfpMargin * (depth - improving); + int margin = rfpBase + rfpMargin * (depth - improving); if (!ttHit && staticEval - margin >= beta && depth < 7) { return (beta + (staticEval - beta) / 3); } diff --git a/source/tunables.h b/source/tunables.h index 673b0f1..293d9cd 100644 --- a/source/tunables.h +++ b/source/tunables.h @@ -12,6 +12,7 @@ X_INT(lmrIsPV, 1024, 512, 2048) \ X_INT(lmrHistoryDivisor, 8192, 6000, 10000) \ X_INT(lmrImproving, 1024, 6000, 10000) \ + X_INT(rfpBase, 25, 50, 200) \ X_INT(rfpMargin, 100, 50, 200) \ X_INT(fpMargin, 100, 50, 200) \ X_INT(doubleExtMargin, 30, 10, 60) \ -- 2.47.3