1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Reset TB when ucinewgame

This unmaps all the memory mapped TB
freeing unsued memory.
This commit is contained in:
Marco Costalba 2016-05-28 09:35:26 +02:00
parent 551a5246f0
commit f4a1b3ac77

View file

@ -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;