X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftimeman.h;h=5a98f614f2318f580c5a3b0bdc8a6f15c94fa13c;hb=72e8640f4d98be6aefcf3d486e608da21ac44b2d;hp=6ac9f36008769a9422b0301b1fd432dada398aac;hpb=c9dcda6ac488c0058ebd567e1f52e30b8cd0db20;p=stockfish diff --git a/src/timeman.h b/src/timeman.h index 6ac9f360..5a98f614 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.62); } int maximum_time() const { return maximumSearchTime; } private: int optimumSearchTime; int maximumSearchTime; - int unstablePVExtraTime; + double unstablePvFactor; }; #endif // #ifndef TIMEMAN_H_INCLUDED