From 0e48eefc72786b45e8650190d370cc1fc99d3949 Mon Sep 17 00:00:00 2001 From: rektdie Date: Mon, 9 Jun 2025 13:11:11 +0200 Subject: [PATCH] printing score cp correctly | bench 3509444 --- source/search.cpp | 2 +- source/tt.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/search.cpp b/source/search.cpp index d58f6f9..efc267f 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -586,7 +586,7 @@ static SearchResults ID(Board &board, SearchParams params, SearchContext* ctx) { std::cout << "depth " << depth; std::cout << " seldepth " << ctx->seldepth; std::cout << " time " << elapsed; - std::cout << " score cp " << UTILS::ConvertToWhiteRelative(board, safeResults.score); + std::cout << " score cp " << safeResults.score; std::cout << " nodes " << ctx->nodes << " nps " << int(ctx->nodes/ctx->sw.GetElapsedSec()); std::cout << " hashfull " << ctx->TT.GetUsedPercentage(); std::cout << " pv "; diff --git a/source/tt.h b/source/tt.h index 6372e2c..d471e07 100644 --- a/source/tt.h +++ b/source/tt.h @@ -38,9 +38,9 @@ public: } }; -// 64 MB +// 1024 MB constexpr U64 maxHash = (1024 * 1000000) / sizeof(TTEntry); -// 5 MB +// 8 MB constexpr U64 defaultHash = (8 * 1000000) / sizeof(TTEntry); constexpr int16_t invalidEntry = 111111;