1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 17:19:36 +00:00

Don't split if reduced depth is below min_split_depth

It seems to increase SMP performances. To note that
this patch goes in the opposite direction of "Active
reparenting" where we try to reparent an idle slave
as soon as possible. Instead here we prefer to keep
it idle instead of splitting on a shallow / near the
leaves node.

After 11550 games on a QUAD (4 threads) at 15"+0.05
Mod vs Orig 1972 - 1752 - 7826 ELO +6 (+-3.6)

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2012-04-22 12:59:35 +01:00
parent 96f4ab48d8
commit ef0496ff40

View file

@ -1052,6 +1052,7 @@ split_point_start: // At split points actual search starts from here
// Step 19. Check for split // Step 19. Check for split
if ( !SpNode if ( !SpNode
&& depth >= Threads.min_split_depth() && depth >= Threads.min_split_depth()
&& depth - reduction<PvNode>(depth, moveCount) >= Threads.min_split_depth()
&& bestValue < beta && bestValue < beta
&& Threads.available_slave_exists(thisThread) && Threads.available_slave_exists(thisThread)
&& !Signals.stop && !Signals.stop