Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Programming: speed of my engine.

Author: Andrew Williams

Date: 13:32:45 03/16/04

Go up one level in this thread


Hi Matthias,

PM seems to get a different node count for the first position at ply 3?

Andrew

On March 16, 2004 at 15:04:53, Matthias Gemuh wrote:

>
>
>
>I am trying to find out why my engine is 6...10 times slower than others at
>runtime (got no profiler).  Is the speed of this Perft() acceptable on 2.0 GHz ?
>Note that attack boards and hash keys are also calculated/updated.
>
>
>
>void Perft(int nPerft, int nPly, *nCount, nSideToMove, ChsStrct, nMethod)
>{
>    if (nPerft <= 0) return;
>    CalculateAttackBoards(ChsStrct, &AtkInfo1);
>    GenerateMoves(ChsStrct, nSideToMove, nMoveOffset, &AtkInfo1);
>    for (i= 0; i < ChsStrct->MoveCount; i++) {
>        Move = ChsStrct->MoveList[nMoveOffset+i];
>        if (!MiniMakeMove(ChsStrct, Move, true)) continue;
>        *nCount += 1;
>        Perft(nPerft-1, nPly+1, nCount, nOtherSide, ChsStrct, nMethod);
>        MiniUnmakeMove(ChsStrct, Move);
>    }
>}
>
>
>rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
>PerftPly = 3
>nCount = 9322
>nps = 932200

nCount: 8902              ??????????
PM nps: 445100




This page took 0.01 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.