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

infinite loop without a wait create chaos #15

Open
mbonani opened this issue Sep 25, 2018 · 7 comments
Open

infinite loop without a wait create chaos #15

mbonani opened this issue Sep 25, 2018 · 7 comments

Comments

@mbonani
Copy link

mbonani commented Sep 25, 2018

infinite repeate are making to much http request
it is working with putting a wait 0 sec

if we can improve that with actual web bridge would be great, otherwise we have to wait TDM

@mbonani
Copy link
Author

mbonani commented Sep 26, 2018

I wonder if there is a problem with scratch 3 itself. if you do this simple program without wait all the http request are in a fuzzy order and the last that pass is not the 0, mostly left wheel pass before right wheel
image
image

but with a wait 0 sec the http request are ordered left right and the delay are smaller
image
image

@mbonani
Copy link
Author

mbonani commented Sep 26, 2018

it seems this example works better with one wheel, perhaps a problem with the callback...
I see also that if I connect a studio it works better.

@cor3ntin
Copy link

that should work much better with the new js api :)

@mbonani
Copy link
Author

mbonani commented Sep 26, 2018

even worth with this example, works perfect with wait 0 sec:

image

all http request became pending

@mbonani
Copy link
Author

mbonani commented Dec 6, 2018

this should be less a problem with TDM

@mbonani
Copy link
Author

mbonani commented Mar 2, 2019

works fine now

@mbonani mbonani closed this as completed Mar 2, 2019
@cor3ntin cor3ntin changed the title infinite loop without a wait create caos infinite loop without a wait create chaos Mar 12, 2019
@mbonani
Copy link
Author

mbonani commented Nov 27, 2019

could be improve because actually it make some delay when no blocking blocka are present in the loop

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

2 participants