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

v3 timing objects - issue with oldvector on repeated updates #20

Open
ingararntzen opened this issue May 19, 2022 · 0 comments
Open

v3 timing objects - issue with oldvector on repeated updates #20

ingararntzen opened this issue May 19, 2022 · 0 comments

Comments

@ingararntzen
Copy link
Contributor

If two updates are issued in rapid succession (within same processing task), this will trigger two events as expected.

to.update({position:0}) to.update({velocity:1})

However, since events are asynchronous, the old vector observed by the event listener will be the same in both events. For instance, this will cause the sequencer to be confused about the nature of the change, possibly leading to faulty behavior.

One possible solution is to bring the correct old state along with the event arguments.

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