Skip to content

Commit

Permalink
FutilityValue formula tweak
Browse files Browse the repository at this point in the history
Passed STC:
LLR: 2.95 (-2.94,2.94) <0.00,2.00>
Total: 29600 W: 7979 L: 7662 D: 13959
Ptnml(0-2): 138, 3446, 7324, 3745, 147
https://tests.stockfishchess.org/tests/view/67ac7dff52879dfd14d7e7da

Passed LTC:
LLR: 2.95 (-2.94,2.94) <0.50,2.50>
Total: 49662 W: 12850 L: 12502 D: 24310
Ptnml(0-2): 41, 5354, 13689, 5710, 37
https://tests.stockfishchess.org/tests/view/67acc1b252879dfd14d7e81d

closes #5879

Bench: 2581469
  • Loading branch information
FauziAkram authored and Disservin committed Feb 13, 2025
1 parent d54240c commit fa6c30a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,10 @@ Value Search::Worker::search(

lmrDepth += history / 3576;

Value futilityValue = ss->staticEval + (bestMove ? 49 : 135) + 150 * lmrDepth;
Value futilityValue = ss->staticEval + (bestMove ? 49 : 143) + 116 * lmrDepth;

if (bestValue < ss->staticEval - 150 && lmrDepth < 7)
futilityValue += 108;

// Futility pruning: parent node
if (!ss->inCheck && lmrDepth < 12 && futilityValue <= alpha)
Expand Down

4 comments on commit fa6c30a

@mymoso
Copy link

@mymoso mymoso commented on fa6c30a Feb 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't compile

Step 2/4. Running benchmark for pgo-build ...
./stockfish.exe bench > PGOBENCH.out 2>&1
make: *** [Makefile:948: profile-build] Error 1

The error is mine or global?
Thanks

@Disservin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yours, try a make clean ?

@mymoso
Copy link

@mymoso mymoso commented on fa6c30a Feb 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're talking about make clean before the first build, right?
No....I'll try

@mymoso
Copy link

@mymoso mymoso commented on fa6c30a Feb 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried but it failed again, same message.
Today I had an MSYS2 update. And yesterday I updated Windows 24H2.
The only differences since my last compilation is commit "Increase PCM bonus when cutOffCnt is low".

Please sign in to comment.