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

Better task management #372

Open
tonihele opened this issue May 24, 2020 · 0 comments
Open

Better task management #372

tonihele opened this issue May 24, 2020 · 0 comments

Comments

@tonihele
Copy link
Owner

Better task management... even since we moved away from the previous design, the current task manager wasn't ever really looked after that much. And currently it causes the creatures to take up some weird tasks. Some problems there include:

  • The tasks don't get deleted
    • There was an intend to do it but it is currently commented out
    • Eventually the task pool will come too large and affect performance
  • Multipart tasks aren't handled gracefully
    • This is visible in tasks like rescue creature or imprison creature
    • Once the first part is executed, it goes back to the pool up for grabs while the original creature is doing on the second part (new task entirely)
    • We need really clever constraints on the other parts to prevent other creatures from taking it, a lot of managing on the different parts validity as well
    • I think the chained tasks need to be handled on the same task ID, some sort of state machine or task queue like the objective mission already has, that way also we know instantly that the task is reserved and by the base type everything can be cleaned up if the task becomes invalid
@tonihele tonihele mentioned this issue Sep 9, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant