X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=9e3eaba512c5e1de107d9e2f438f1a0e954abd80;hb=18389e269d43af69c96521f3fe9d85e6b7ed073c;hp=d340d3d54391dafa2c2c608b785124a6d2da5210;hpb=c4a644922dc219aade86ea07c85e95899850fac8;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index d340d3d5..9e3eaba5 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -1055,7 +1055,7 @@ Value Eval::evaluate(const Position& pos, int* complexity) { Value psq = pos.psq_eg_stm(); // Deciding between classical and NNUE eval (~10 Elo): for high PSQ imbalance we use classical, // but we switch to NNUE during long shuffling or with high material on the board. - bool useClassical = (pos.this_thread()->depth > 9 || pos.count() > 7) + bool useClassical = (pos.count() > 7) && abs(psq) * 5 > (856 + pos.non_pawn_material() / 64) * (10 + pos.rule50_count()); // Deciding between classical and NNUE eval (~10 Elo): for high PSQ imbalance we use classical,