Stop earlier if iteration is taking too long

If we are still at first move, without a fail-low and
current iteration is taking too long to complete then
stop the search.

Passed short TC:
LLR: 2.97 (-2.94,2.94) [-1.50,4.50]
Total: 26030 W: 4959 L: 4785 D: 16286

Long TC:
LLR: 2.95 (-2.94,2.94) [0.00,6.00]
Total: 18019 W: 2936 L: 2752 D: 12331

And performed well at 40/30
ELO: 4.33 +-2.8 (95%) LOS: 99.9%
Total: 20000 W: 3480 L: 3231 D: 13289

bench: 8502826
This commit is contained in:
Uri Blass
2014-01-06 08:06:39 +02:00
committed by Marco Costalba
parent 45dbd9cd03
commit a5869d8d25
2 changed files with 7 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ extern LimitsType Limits;
extern std::vector<RootMove> RootMoves;
extern Position RootPos;
extern Color RootColor;
extern Time::point SearchTime;
extern Time::point SearchTime, IterationTime;
extern StateStackPtr SetupStates;
extern void init();