- 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.
Changing this approach to only update possibly affected pieces, should improve performance.