Skip to content

Commit 1b7ca3f

Browse files
committed
TT: Tweak replacement scheme
Elo | 10.93 +- 6.12 (95%) SPRT | 40.0+0.40s Threads=1 Hash=8MB LLR | 2.95 (-2.94, 2.94) [0.00, 3.00] Games | N: 5786 W: 1447 L: 1265 D: 3074 Penta | [6, 595, 1515, 765, 12] Elo | 8.98 +- 4.44 (95%) SPRT | 8.0+0.08s Threads=1 Hash=1MB LLR | 2.95 (-2.94, 2.94) [0.00, 2.00] Games | N: 11028 W: 2731 L: 2446 D: 5851 Penta | [42, 1194, 2760, 1473, 45] Bench 5754636
1 parent 4ab9d5a commit 1b7ca3f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/backend/TranspositionTable.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ void TranspositionTable::Write(const Position& position, ScoreType score, ScoreT
247247

248248
// old entriess are less relevant
249249
const int32_t entryAge = (TTEntry::GenerationCycle + this->generation - data.generation) & (TTEntry::GenerationCycle - 1);
250-
const int32_t entryRelevance = (int32_t)data.depth - 64 * entryAge + 4 * (data.bounds == TTEntry::Bounds::Exact);
250+
const int32_t entryRelevance = (int32_t)data.depth - entryAge;
251251

252252
if (entryRelevance < minRelevanceInCluster)
253253
{
@@ -261,7 +261,7 @@ void TranspositionTable::Write(const Position& position, ScoreType score, ScoreT
261261
// don't overwrite entries with worse depth if the bounds are not exact
262262
if (entry.bounds != TTEntry::Bounds::Exact &&
263263
positionKey == prevKey &&
264-
entry.depth < prevEntry.depth - 3)
264+
entry.depth < prevEntry.depth - 4)
265265
{
266266
return;
267267
}

src/frontend/UCI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <math.h>
1414

1515
#ifndef CAISSA_VERSION
16-
#define CAISSA_VERSION "1.16.13"
16+
#define CAISSA_VERSION "1.16.14"
1717
#endif // CAISSA_VERSION
1818

1919
#if defined(USE_AVX512)

src/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
EXE = caissa
2-
VERSION = 1.16.13
2+
VERSION = 1.16.14
33
EXE_NAME = $(EXE)-$(VERSION)
44
DEFAULT_EVALFILE = ../data/neuralNets/eval-33.pnn
55
EVALFILE = $(DEFAULT_EVALFILE)

0 commit comments

Comments
 (0)