Simplify time management

Tested with simplification mode SPRT[-4, 0]

Passed both short TC
LLR: 2.95 (-2.94,2.94) [-4.00,0.00]
Total: 34102 W: 6184 L: 6144 D: 21774

And long TC
LLR: 2.96 (-2.94,2.94) [-4.00,0.00]
Total: 16518 W: 2647 L: 2545 D: 11326

And also 40/10 TC
LLR: 2.95 (-2.94,2.94) [-4.00,0.00]
Total: 22406 W: 4390 L: 4312 D: 13704

bench: 8430785
This commit is contained in:
Leonid Pechenik
2014-02-11 04:01:06 -05:00
committed by Marco Costalba
parent e6523e56b8
commit 72e8640f4d
4 changed files with 12 additions and 14 deletions

View File

@@ -27,13 +27,13 @@ class TimeManager {
public:
void init(const Search::LimitsType& limits, int currentPly, Color us);
void pv_instability(double bestMoveChanges);
int available_time() const { return optimumSearchTime + unstablePVExtraTime; }
int available_time() const { return int(optimumSearchTime * unstablePvFactor * 0.62); }
int maximum_time() const { return maximumSearchTime; }
private:
int optimumSearchTime;
int maximumSearchTime;
int unstablePVExtraTime;
double unstablePvFactor;
};
#endif // #ifndef TIMEMAN_H_INCLUDED