Implement 'old' multipv search.

It seems to be a waste of time to loop through all remaining root moves
after finishing each PV line. This patch skips this until we have reached
the last PV line (this is the way it was done in Glaurung and very early
versions of Stockfish).

No functional change in Single PV mode.

MultiPV=3 STC and LTC tests
LLR: 2.95 (-2.94,2.94) [0.00,5.00]
Total: 3113 W: 1248 L: 1064 D: 801

LLR: 2.95 (-2.94,2.94) [0.00,5.00]
Total: 2260 W: 848 L: 679 D: 733

Bench: 5023629
This commit is contained in:
joergoster
2018-01-31 18:23:57 +01:00
committed by Stéphane Nicolet
parent 83c828f31e
commit 44a7db0f9a
2 changed files with 17 additions and 9 deletions

View File

@@ -60,7 +60,7 @@ public:
Pawns::Table pawnsTable;
Material::Table materialTable;
Endgames endgames;
size_t PVIdx;
size_t PVIdx, multiPV;
int selDepth, nmp_ply, nmp_odd;
std::atomic<uint64_t> nodes, tbHits;