X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.h;h=90bd18679d5af6f42fd7abfe3c6a523c6817832b;hp=6ac9f36008769a9422b0301b1fd432dada398aac;hb=0b2794ae1257b224256ac0c6392a705cfc80a848;hpb=c9dcda6ac488c0058ebd567e1f52e30b8cd0db20 diff --git a/src/timeman.h b/src/timeman.h index 6ac9f360..90bd1867 100644 --- a/src/timeman.h +++ b/src/timeman.h @@ -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.71); } int maximum_time() const { return maximumSearchTime; } private: int optimumSearchTime; int maximumSearchTime; - int unstablePVExtraTime; + double unstablePvFactor; }; #endif // #ifndef TIMEMAN_H_INCLUDED