From f4a1b3ac77c2393442c8b3604234ca60ab4ec941 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 28 May 2016 09:35:26 +0200 Subject: [PATCH] Reset TB when ucinewgame This unmaps all the memory mapped TB freeing unsued memory. --- src/uci.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uci.cpp b/src/uci.cpp index a9811a9a..1bc94013 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -29,6 +29,7 @@ #include "thread.h" #include "timeman.h" #include "uci.h" +#include "syzygy/tbprobe.h" using namespace std; @@ -186,6 +187,7 @@ void UCI::loop(int argc, char* argv[]) { else if (token == "ucinewgame") { Search::clear(); + Tablebases::init(Options["SyzygyPath"]); Time.availableNodes = 0; } else if (token == "isready") sync_cout << "readyok" << sync_endl;