- Joined
- Nov 17, 2014
- Messages
- 4,906
- Thread Author
- #1
Let's say task x is added like this: TaskBot#add(x). In this case, everything works as intended, x.validate() gets called once per loop.
Now, there is a task y, which gets added with x.add(y)
y.validate() gets called twice per loop (given that x validates, else it does not get called at all obviously).
The execute() method only gets called once afterwards.
I am 100% sure this is not caused by me, I tried setting up a barebones taskbot, and it still happens.
Given the complexity of some validate methods, this can cause quite some unnecessary resource usage.
@Cloud
Now, there is a task y, which gets added with x.add(y)
y.validate() gets called twice per loop (given that x validates, else it does not get called at all obviously).
The execute() method only gets called once afterwards.
I am 100% sure this is not caused by me, I tried setting up a barebones taskbot, and it still happens.
Given the complexity of some validate methods, this can cause quite some unnecessary resource usage.
@Cloud
Last edited: