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

Dispatch loop in fields.js might be broken #73

Open
SGSSGene opened this issue Apr 22, 2021 · 0 comments
Open

Dispatch loop in fields.js might be broken #73

SGSSGene opened this issue Apr 22, 2021 · 0 comments

Comments

@SGSSGene
Copy link
Member

Lets look at the dispatch queue:

  1. initial state - queue [draw_all()]
  2. some reset comes in - queue [draw_all(), resetGameState()]
  3. now the draw_all() is being executed which queues a new "RobotAction.setPosition" queue [resetGameState(), setPosition()]
  4. execute the resetGameState()
  5. Error!!! setPosition might reset robot position back, reset is kind of ignored
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