Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial pathing calculations are resulting in enemies destroying structures even when there's a possible path in long mazes #3

Open
bilalakil opened this issue Jun 7, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@bilalakil
Copy link
Member

  • Review the pathfinding algorithm to see if there's a way to reduce wasted calculations, e.g. by using a priority queue to go down the lowest weight paths first instead
  • If this isn't adequate, increase the batch count (potentially to infinity) to prevent the bug from occurring at the expense of performance
  • If this ends up feeling really bad, then consider job+burst-ifying the calculation
    • and potentially positioning it to run after a LateUpdate so it can run in parallel with rendering (? not sure if this makes a difference on WebGL)
@bilalakil bilalakil added the bug Something isn't working label Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant