Skip to content

Improve dangerzone calculation performance #8

Description

@krestenlaust
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions