Skip to content

Commit fe60cab

Browse files
committed
Restore safety margin of 60ms
What this patch does is: * increase safety margin from 40ms to 60ms. It's worth noting that the previous code not only used 60ms incompressible safety margin, but also an additional buffer of 30ms for each "move to go". * remove a whart, integrating the extra 10ms in Move Overhead value instead. Additionally, this ensures that optimumtime doesn't become bigger than maximum time after maximum time has been artificially discounted by 10ms. So it keeps the code more logical. Tested at 3 different time controls: Standard 10+0.1 LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 58008 W: 10674 L: 10617 D: 36717 Sudden death 16+0 LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 59664 W: 10945 L: 10891 D: 37828 Tournament 40/10 LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 16371 W: 3092 L: 2963 D: 10316 bench: 5479946
1 parent 7aa7dfd commit fe60cab

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/timeman.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@ namespace {
6666
if (type == OptimumTime && ponder)
6767
time *= 1.25;
6868

69-
if (type == MaxTime)
70-
time -= 10; // Keep always at least 10 millisecs on the clock
71-
72-
return std::max(0, time);
69+
return time;
7370
}
7471

7572
} // namespace

src/ucioption.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void init(OptionsMap& o) {
6565
o["Ponder"] << Option(false);
6666
o["MultiPV"] << Option(1, 1, 500);
6767
o["Skill Level"] << Option(20, 0, 20);
68-
o["Move Overhead"] << Option(30, 0, 5000);
68+
o["Move Overhead"] << Option(60, 0, 5000);
6969
o["nodestime"] << Option(0, 0, 10000);
7070
o["UCI_Chess960"] << Option(false);
7171
o["SyzygyPath"] << Option("<empty>", on_tb_path);

0 commit comments

Comments
 (0)