Skip to content

Commit fcaea15

Browse files
authored
Increase the default fraction of time spent on a move (#148)
Elo | 3.08 +- 2.11 (95%) SPRT | 50.0+0.50s Threads=1 Hash=128MB LLR | 2.92 (-2.25, 2.89) [0.00, 3.00] Games | N: 23916 W: 5557 L: 5345 D: 13014 Penta | [20, 2576, 6551, 2794, 17] Elo | 0.73 +- 1.88 (95%) SPRT | 10.0+0.10s Threads=1 Hash=16MB LLR | -0.03 (-2.25, 2.89) [0.00, 3.00] Games | N: 33130 W: 7803 L: 7733 D: 17594 Penta | [91, 3794, 8717, 3880, 83] Renegade dev 1.2.29 Bench: 3821494
1 parent a3d38ca commit fcaea15

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Renegade/Search.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ SearchConstraints Search::CalculateConstraints(const SearchParams params, const
177177
}
178178
else {
179179
// Time control with increment
180-
minTime = static_cast<int>(myTime * 0.025 + myInc * 0.7);
180+
minTime = static_cast<int>(myTime * 0.033 + myInc * 0.7);
181181
maxTime = static_cast<int>(myTime * 0.25);
182182
}
183183

@@ -288,7 +288,9 @@ void Search::SearchMoves(ThreadData& t) {
288288
if (Constraints.SearchTimeMin != Constraints.SearchTimeMax) {
289289
const Move& bestMove = t.PvTable[0][0];
290290
const double bestMoveFraction = t.RootNodeCounts[bestMove.from][bestMove.to] / static_cast<double>(t.Nodes);
291-
softTimeLimit = softTimeLimit * (t.RootDepth >= 10 ? (1.5 - bestMoveFraction) * 1.35 : 1.0);
291+
if (t.RootDepth >= 10) {
292+
softTimeLimit *= (1.5 - bestMoveFraction) * 1.35;
293+
}
292294
}
293295
if (elapsedMs >= softTimeLimit) finished = true;
294296
}

Renegade/Utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ using std::endl;
2121
using std::get;
2222
using Clock = std::chrono::high_resolution_clock;
2323

24-
constexpr std::string_view Version = "dev 1.2.28";
24+
constexpr std::string_view Version = "dev 1.2.29";
2525

2626
// Evaluation helpers -----------------------------------------------------------------------------
2727

0 commit comments

Comments
 (0)