1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00
BadFish/src
Joost VandeVondele 4b88bea4fc Force time check on TB probe in search.
Because of aggressive time management and optimistic assumptions
about move overhead, it's still very easy to get Stockfish to forfeit
on time when we hit an endgame and have Syzygy EGTB on a spinning
drive. The latency from serving a few thousand EGTB probes (~10ms each),
of which there can currently be up to 4000 outstanding before a time
check, will easily overwhelm the default Move Overhead of 30ms.

This problem was first raised by Gian-Carlo Pascutto and some solutions
and improvements were discussed in the following pull requests:
https://github.com/official-stockfish/Stockfish/pull/1471
https://github.com/official-stockfish/Stockfish/pull/1623
https://github.com/official-stockfish/Stockfish/pull/1783

This patch is a minimal change proposed by Marco Costalba to lower
the impact of the bug. We now force a check of the clock right after
each tablebase read.

No functional change.
2018-11-20 08:00:19 +01:00
..
syzygy Shrink the hash table of tablebases back to 4096 entries 2018-08-29 02:00:20 +02:00
benchmark.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
bitbase.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
bitboard.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
bitboard.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
endgame.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
endgame.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
evaluate.cpp Bonus for restricting opponent's piece moves 2018-11-20 07:50:12 +01:00
evaluate.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
main.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
Makefile Stockfish 10-beta 2018-11-19 11:18:21 +01:00
material.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
material.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
misc.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
misc.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
movegen.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
movegen.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
movepick.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
movepick.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
pawns.cpp Bonus for restricting opponent's piece moves 2018-11-20 07:50:12 +01:00
pawns.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
position.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
position.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
psqt.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
search.cpp Force time check on TB probe in search. 2018-11-20 08:00:19 +01:00
search.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
thread.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
thread.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
thread_win32.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
timeman.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
timeman.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
tt.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
tt.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
types.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
uci.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00
uci.h Stockfish 10-beta 2018-11-19 11:18:21 +01:00
ucioption.cpp Stockfish 10-beta 2018-11-19 11:18:21 +01:00