]> git.sesse.net Git - stockfish/commit
Remove `previousDepth` in favor of `completedDepth + 2`
authorDubslow <bunslow@gmail.com>
Sun, 15 Jan 2023 10:08:33 +0000 (04:08 -0600)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sat, 28 Jan 2023 15:50:46 +0000 (16:50 +0100)
commitd4d1cec29631f041adeec98adc5893b5c6a54969
tree056c493bbed29d23ceb73812f6581c38c419eed5
parent2f67409506e65a47f038055de834462b4a707ccd
Remove `previousDepth` in favor of `completedDepth + 2`

Beyond the simplification, this could be considered a bugfix from a certain point of view.
However, the effect is very subtle and essentially impossible for users to notice.
5372f81cc8 added about 2 Elo at LTC, but only for second and later `go` commands; now, with
this patch, the first `go` command will also benefit from that gain. Games under time
controls are unaffected (as per the tests).

STC: https://tests.stockfishchess.org/tests/view/63c3d291330c0d3d051d48a8
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 473792 W: 124858 L: 125104 D: 223830
Ptnml(0-2): 1338, 49653, 135063, 49601, 1241

LTC: https://tests.stockfishchess.org/tests/view/63c8cd56a83c702aac083bc9
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 290728 W: 76926 L: 76978 D: 136824
Ptnml(0-2): 106, 27987, 89221, 27953, 97

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

bench 4208265
src/search.cpp
src/thread.cpp
src/thread.h