mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Make repeated bench runs identical
fixes https://github.com/official-stockfish/Stockfish/issues/5376 closes https://github.com/official-stockfish/Stockfish/pull/5377 No functional changes
This commit is contained in:
parent
4151c06b74
commit
e271059e08
1 changed files with 1 additions and 0 deletions
|
@ -94,6 +94,7 @@ void TranspositionTable::resize(size_t mbSize, ThreadPool& threads) {
|
||||||
// Initializes the entire transposition table to zero,
|
// Initializes the entire transposition table to zero,
|
||||||
// in a multi-threaded way.
|
// in a multi-threaded way.
|
||||||
void TranspositionTable::clear(ThreadPool& threads) {
|
void TranspositionTable::clear(ThreadPool& threads) {
|
||||||
|
generation8 = 0;
|
||||||
const size_t threadCount = threads.num_threads();
|
const size_t threadCount = threads.num_threads();
|
||||||
|
|
||||||
for (size_t i = 0; i < threadCount; ++i)
|
for (size_t i = 0; i < threadCount; ++i)
|
||||||
|
|
Loading…
Add table
Reference in a new issue