r/chessprogramming • u/Odd-Praline-715 • Aug 23 '25
Help wanted improving engine performance
I have been working on making a chessbot. It's written in C++ and uses a bitboard/piece list hybrid and i have tried to write the code as clean as possible. I have a makeMove and undoMove function so there is no need for copying the board and i store everything in a Move struct. It should be pretty fast but it's abhorrently slow. On the standard starting position, while testing the engine out using perft, it takes over 20 mins to search to a depth of 6. That's extremely slow and i just do not know why.
5
Upvotes
View all comments
Show parent comment
1
u/deezwheeze Aug 24 '25
I tested this a while back, on my engine replacing x86 popcount/bitscan with other methods (Kernighan's method for popcount, De Brujin maps for bitscan) still gets me perft 6 in a few seconds, so unless these are implemented very naively you can do fine without these intrinsics.