Simplify stat eval history adjustment further

closes https://github.com/official-stockfish/Stockfish/pull/6106

bench 2074807
This commit is contained in:
Shawn Xu
2025-06-02 21:37:37 +02:00
committed by Joost VandeVondele
parent 29b0c07ac8
commit d0212906bd
+1 -1
View File
@@ -807,7 +807,7 @@ Value Search::Worker::search(
} }
// Use static evaluation difference to improve quiet move ordering // Use static evaluation difference to improve quiet move ordering
if (((ss - 1)->currentMove).is_ok() && !(ss - 1)->inCheck && !priorCapture && ttData.depth <= 2) if (((ss - 1)->currentMove).is_ok() && !(ss - 1)->inCheck && !priorCapture && !ttHit)
{ {
int bonus = std::clamp(-10 * int((ss - 1)->staticEval + ss->staticEval), -1858, 1492) + 661; int bonus = std::clamp(-10 * int((ss - 1)->staticEval + ss->staticEval), -1858, 1492) + 661;
thisThread->mainHistory[~us][((ss - 1)->currentMove).from_to()] << bonus * 1057 / 1024; thisThread->mainHistory[~us][((ss - 1)->currentMove).from_to()] << bonus * 1057 / 1024;