mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
Reset TB when ucinewgame
This unmaps all the memory mapped TB freeing unsued memory.
This commit is contained in:
parent
551a5246f0
commit
f4a1b3ac77
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
#include "timeman.h"
|
#include "timeman.h"
|
||||||
#include "uci.h"
|
#include "uci.h"
|
||||||
|
#include "syzygy/tbprobe.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -186,6 +187,7 @@ void UCI::loop(int argc, char* argv[]) {
|
||||||
else if (token == "ucinewgame")
|
else if (token == "ucinewgame")
|
||||||
{
|
{
|
||||||
Search::clear();
|
Search::clear();
|
||||||
|
Tablebases::init(Options["SyzygyPath"]);
|
||||||
Time.availableNodes = 0;
|
Time.availableNodes = 0;
|
||||||
}
|
}
|
||||||
else if (token == "isready") sync_cout << "readyok" << sync_endl;
|
else if (token == "isready") sync_cout << "readyok" << sync_endl;
|
||||||
|
|
Loading…
Add table
Reference in a new issue