Skip to content

Threatmap calculation optimization #46

@slogic

Description

@slogic

In master branch of Spring EnemyCreated() and EnemyDestoryed() events are fixed so we can switch into even driven mechanism.

  1. there is no vector reinitialization each update where can be up to 500 items
  2. we can remove or extend restriction of 500 untis to be considered
  3. we can provide another threatmap layer for static units, so we can use their precalculated values; also such maps vary seldom
  4. we can implement buffer technology to calculate threat per fixed unit chunks, until all units processed. then this buffer becomes active threatmap layer. so we can predict CPU consumption will never raise above some value.

Your ideas are welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions