Skip to content

Conversation

eduherminio
Copy link
Member

@eduherminio eduherminio commented Oct 8, 2024

We save the static evaluation as part of TranspositionTableElement (+2 bytes, 8 -> 10) in exchange for some measurable speedup as a result of not having to calculate static eval for TT hits
image

This specific PR has Use raw static eval even when TT score is reused over #1084: even if TT scores are used for search, the real/raw static eval is the one saved in the TT, with still the exception of final evals, that are treated as the static evals of a position that we want to re-use later.

Regular testing conditions:

Test  | search/tt-save-staticeval-2
Elo   | 7.79 +- 4.29 (95%)
SPRT  | 8.0+0.08s Threads=1 Hash=32MB
LLR   | 2.91 (-2.25, 2.89) [0.00, 3.00]
Games | 11904: +3472 -3205 =5227
Penta | [323, 1357, 2356, 1562, 354]
https://openbench.lynx-chess.com/test/820/
Test  | search/tt-save-staticeval-2
Elo   | 4.89 +- 3.13 (95%)
SPRT  | 40.0+0.40s Threads=1 Hash=128MB
LLR   | 2.90 (-2.25, 2.89) [0.00, 3.00]
Games | 18458: +4909 -4649 =8900
Penta | [312, 2180, 4033, 2344, 360]
https://openbench.lynx-chess.com/test/827/

Small TT:

Test  | search/tt-save-staticeval-2
Elo   | 0.67 +- 3.30 (95%)
SPRT  | 8.0+0.08s Threads=1 Hash=4MB
LLR   | 2.90 (-2.25, 2.89) [-5.00, 0.00]
Games | 20122: +5674 -5635 =8813
Penta | [570, 2421, 4086, 2368, 616]
https://openbench.lynx-chess.com/test/828/
Test  | search/tt-save-staticeval-2
Elo   | 4.53 +- 5.05 (95%)
SPRT  | 40.0+0.40s Threads=1 Hash=32MB
LLR   | 2.91 (-2.25, 2.89) [-5.00, 0.00]
Games | 7290: +1922 -1827 =3541
Penta | [135, 858, 1582, 917, 153]
https://openbench.lynx-chess.com/test/829/

@eduherminio eduherminio changed the title 🔍 Save static eval in TT (II) 🔍 Save static eval in TT Oct 9, 2024
@eduherminio eduherminio marked this pull request as ready for review October 9, 2024 12:33
@eduherminio eduherminio enabled auto-merge (squash) October 9, 2024 12:35
@eduherminio eduherminio disabled auto-merge October 9, 2024 12:37
@eduherminio eduherminio enabled auto-merge (squash) October 9, 2024 12:39
@eduherminio eduherminio merged commit 956d879 into main Oct 9, 2024
27 checks passed
@eduherminio eduherminio deleted the search/tt-save-staticeval-2 branch October 9, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant