X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=d211db645f383678330b3b13be842169d85daab0;hp=86f73563ef262a9e2914597320b0adfef8818e59;hb=3edf0e6b37df9c81ea1a4cd3affd11548547815b;hpb=c645587270c2b08d327d290d0ae3c3f5e0a30eee diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 86f73563..d211db64 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -74,7 +74,7 @@ using namespace Trace; namespace { // Threshold for lazy and space evaluation - constexpr Value LazyThreshold = Value(1500); + constexpr Value LazyThreshold = Value(1400); constexpr Value SpaceThreshold = Value(12222); // KingAttackWeights[PieceType] contains king attack weights by piece type @@ -813,7 +813,7 @@ namespace { // Early exit if score is high Value v = (mg_value(score) + eg_value(score)) / 2; - if (abs(v) > LazyThreshold) + if (abs(v) > (LazyThreshold + pos.non_pawn_material() / 64)) return pos.side_to_move() == WHITE ? v : -v; // Main evaluation begins here