]> git.sesse.net Git - stockfish/commit
Use slightly lower polling frequency in the last few seconds.
authorTord Romstad <tord@glaurungchess.com>
Thu, 8 Oct 2009 06:55:25 +0000 (08:55 +0200)
committerTord Romstad <tord@glaurungchess.com>
Thu, 8 Oct 2009 06:55:25 +0000 (08:55 +0200)
commit225dcfeeb7d9097600b9b45af6976254d0faaa3c
tree1a5a8f0626fa4a9ae9194262f05ccb194690c1cf
parent8dd01fda121eb138287f09493a4d86c58c58d7e1
Use slightly lower polling frequency in the last few seconds.

Instead of checking the time every 100 nodes in the last second,
and every 1000 nodes in the last five seconds, Stockfish now checks
every 1000 nodes in the last second and every 5000 nodes in the last
five seconds.  This was tested in 1036 games at a time control of
40 moves/10 seconds, and no losses on time occured.

Also fixed a bug pointed out by Marco:  In infinite mode, myTime
is actually 0, but of course we still don't want to check the time
more frequently than the standard once per 30000 nodes in this
case.
src/search.cpp