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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix forever while loop (WIP) #49
Conversation
Added another failing spec. Moving the return fixes it though now I'm not convinced this is the right path. Next I'm going to test with Still a WIP |
A quick question and some thoughts: When returning At this point I'm unsure of how an instant action (returns same dt) should work when there is no remaining time. The parent node (i.e. I am unsure on how to differentiate instant actions and actions that take time when there is no remaining time. I am thinking that instant actions should only run if there is time left but that makes the failing tests all take one more (still a WIP) |
Instant actions should not need time to run, because a task might require arbitrary steps before stopping. This mix of instant and consumed actions is a bit confusing, so we should clarify it a bit. Do you use the |
I idle in Just to be clear, what I am proposing is that instant actions only can run if there is time remaining, but themselves don't use any time. If I did see reference to "consumed" actions. I'll have to look closer at it and see if I can reason through it. |
I wonder if we should check the remaining delta time before executing any action and return |
Yes, I 100% agree. What I have is a special case. It would be nice for the solution to be more general. |
Closing in favor of the options listed in #51 |
My attempt at #46 and #48. This is my best guess as to what is going on.
exec's signature is ugly so feel free to refactor.
I'd test it on my game, but I upgraded rust and am getting an error. It's late here so I'll give it a go in the morn.
cheers,
dave 馃嵒