Mobsya / thymio-scratchx

A ScratchX extension for Thymio
GNU Lesser General Public License v3.0
3 stars 11 forks source link

scratch x delay of jequery appears on windows #17

Open mbonani opened 6 years ago

mbonani commented 6 years ago

very strange behavior especially when ou have "if esle" blocks. Test example of Chameleon show quickly that it is not working. http://scratchx.org/?url=https://aseba-community.github.io/thymio-scratchx/activities/chameleon_en.sbx&lang=en#scratch

I try with older version of asebahttp (webbridge) but seems not related to it.

mbonani commented 6 years ago

problems came probably that aseba http (webbridge) in verbose mode is too slow i remove -v by default on windows and mac packaging

mbonani commented 6 years ago

it seems it is solved without the verbose, there is perhaps a timing issue with asebahttp that is not reproducible

mbonani commented 6 years ago

it is still sometimes appears to have big delay even in simple program like this one : project-testled.zip for a moment it seems to work and then delay appears in communication also with an USB Thymio. Suddenly the delay then disappear:

image

cor3ntin commented 6 years ago

That's some delay.

cor3ntin commented 6 years ago

the current switch is single-thread. so requests reception, parsing, dispatching and sending all happen in the same loop. I guess that's one of the issue

mbonani commented 6 years ago

it seems to less appear on OSX, could you test with Linux? It is also strange has it work perfectly some moment and then block a while and recap alone afterwards.