Search found 760 matches

by xr_a_y
Sat Nov 02, 2019 9:55 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: "stat score bonus" in stockfish
Replies: 6
Views: 501

Re: "stat score bonus" in stockfish

Joost Buijs wrote:
Sat Nov 02, 2019 9:23 am
I think the explanation is: 'because it tested 0.3 Elo better'.
But there is always a real idea before the test try :)
by xr_a_y
Fri Nov 01, 2019 10:00 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: "stat score bonus" in stockfish
Replies: 6
Views: 501

"stat score bonus" in stockfish

Regarding this code // Step 6. Static evaluation of the position if (inCheck) { ss->staticEval = eval = VALUE_NONE; improving = false; goto moves_loop; // Skip early pruning when in check } else if (ttHit) { // Never assume anything about values stored in TT ss->staticEval = eval = tte->eval(); if (...
by xr_a_y
Thu Oct 31, 2019 4:52 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pawn hash table, a little disappointment
Replies: 15
Views: 748

Re: Pawn hash table, a little disappointment

This line in your ::eval() seems strange: if (!getPawnEntry(*this, computePHash(p), pePtr)) { ... Seems that by calling computePHash(p) you recalculate the complete pawnhash from scratch? I checked that you already do "delta-hashing" in your movepiece so recalculating should not be necessary and ma...
by xr_a_y
Thu Oct 31, 2019 4:24 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pawn hash table, a little disappointment
Replies: 15
Views: 748

Re: Pawn hash table, a little disappointment

This line in your ::eval() seems strange: if (!getPawnEntry(*this, computePHash(p), pePtr)) { ... Seems that by calling computePHash(p) you recalculate the complete pawnhash from scratch? I checked that you already do "delta-hashing" in your movepiece so recalculating should not be necessary and ma...
by xr_a_y
Thu Oct 31, 2019 9:26 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pawn hash table, a little disappointment
Replies: 15
Views: 748

Re: Pawn hash table, a little disappointment

I'm using a total size for this table that is 1/16 of the TT. The table is well used, often there is a ratio of 10 read for only 1 write. But this is a slowdown of about 10% in knps ! I wonder how others engines behave ? There must be something wrong with your code. I would have a look but it seems...
by xr_a_y
Mon Oct 28, 2019 8:19 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pawn hash table, a little disappointment
Replies: 15
Views: 748

Re: Pawn hash table, a little disappointment

PK wrote:
Mon Oct 28, 2019 7:46 pm
What is your pawn hash? Pawns only or pawns and kings? With pawns only, my speed gain has been very modest. With pawns and kings, hashing pawn shield and pawn storm scores, it became something like 10%.
Pawn + King hash but not really storing King things for now
by xr_a_y
Mon Oct 28, 2019 6:48 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pawn hash table, a little disappointment
Replies: 15
Views: 748

Re: Pawn hash table, a little disappointment

How large is your table in MB? Making it so large that it cannot be easily contained in the L3 cache could be very counter-productive. Because most accesses would be very much slower, while the extra size would hardly give you any extra hits. Because even the small table might have a hit rate of 95...
by xr_a_y
Mon Oct 28, 2019 6:43 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pawn hash table, a little disappointment
Replies: 15
Views: 748

Re: Pawn hash table, a little disappointment

How large is your table in MB? Making it so large that it cannot be easily contained in the L3 cache could be very counter-productive. Because most accesses would be very much slower, while the extra size would hardly give you any extra hits. Because even the small table might have a hit rate of 95...
by xr_a_y
Mon Oct 28, 2019 6:41 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pawn hash table, a little disappointment
Replies: 15
Views: 748

Re: Pawn hash table, a little disappointment

I'm using a total size for this table that is 1/16 of the TT. The table is well used, often there is a ratio of 10 read for only 1 write. But this is a slowdown of about 10% in knps ! I wonder how others engines behave ? There must be something wrong with your code. I would have a look but it seems...