We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a26959a commit f29d0b4Copy full SHA for f29d0b4
1 file changed
src/timemanager.cpp
@@ -2,16 +2,15 @@
2
#include "timemanager.h"
3
4
int Timemanager::getSearchTime(int timeRemaining, int increment, bool exact) {
5
- // minimum search time at least for depth = 1 - for some move.
6
- const auto minMs = 1;
+ const auto minMs = 5;
7
8
- auto msCanBeUsed = exact ? timeRemaining : timeRemaining / 18;
+ auto msCanBeUsed = exact ? timeRemaining : timeRemaining / 20;
9
// increment
10
msCanBeUsed += increment / 2 + increment / 4;
11
12
// if we are out of time, clamp it.
13
if(msCanBeUsed >= timeRemaining && !exact){
14
- msCanBeUsed = std::clamp(msCanBeUsed, minMs, timeRemaining / 18);
+ msCanBeUsed = std::clamp(msCanBeUsed, minMs, timeRemaining / 20);
15
}
16
return msCanBeUsed;
17
0 commit comments