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:
parent
551a5246f0
commit
f4a1b3ac77
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue