You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, every time a single move has been made, either in a real move or a simulated move (all moves are simulated before being presented to the player), all pieces dangersquares are being recalculated.
Changing this approach to only update possibly affected pieces, should improve performance.
Performance analysis results of bots, shows that UpdateDangerzones() is a major hot path. Any improvements should improve calculation speed of bots.
The text was updated successfully, but these errors were encountered:
I haven't had the time to look at this project, but this should probably be the highest priority when trying to improve the bot, as calculations expand considerately mid-game, and use a whole lot of computing power simply recalculating dangerzones of pieces that haven't changed.
Changing this approach to only update possibly affected pieces, should improve performance.
The text was updated successfully, but these errors were encountered: