Hey guys, trying to find some help with this as I can't find anything anywhere.
I am following BlueFever Software's online videos about making a chess engine in C. I've gotten to the point where we're performing what's called Perft Testing where the MoveGenerator is tested for issues.
When running those tests, I noticed that the time it takes my M1 mac to perform said test is multiple times slower than even the video(which was made in 2013 on a Dual-core). I tried running the exact same program on my i7 laptop(which I bought in 2016), and it's at least 50 times faster.
Running Activity Monitor, I can see that the program is using 100% of the available CPU and like 400GB of virtual RAM. A link to the exact code can be found here: https://github.com/JensDevWoW/Vice
Not sure what makes this run so badly on the M1 Mac, hoping someone might be able to provide some insight:
INFO:
Main computer: M1 Chip, 8GB Memory, macOS Monterey 12.4, compiled using Apple Clang with X Code Laptop: i7, 16GB RAM, Windows 10, compiled using gcc on Visual Studio 2019