From de2d441b0ff266ac2472c52a364ed49c1ad1bd28 Mon Sep 17 00:00:00 2001 From: rektdie Date: Tue, 9 Sep 2025 00:50:19 +0200 Subject: [PATCH] fp less when improving | bench 7573487 --- source/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index 6a2099b..8bcd8cf 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -482,7 +482,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC historyScore += ctx->conthist.GetTwoPly(board, currMove, ctx, ply); } - int margin = fpMargin * depth + historyScore / 32; + int margin = fpMargin * (depth + improving) + historyScore / 32; if (!isPV && ply && currMove.IsQuiet() && depth <= 5 && staticEval + margin < alpha && notMated) {