Latency with Blockly

36 views
Skip to first unread message

Daniel Pers

unread,
Aug 29, 2017, 3:41:30 AM8/29/17
to CoSpaces Scripting
Hello to all users of Blockly,
For some time (but I do not really know when), I observe latency times of about 1s when modifying code with Blockly, even if only moving a single block. In my case, the freeze display for about 1s (or even 2s). Blockly then becomes very painful to use.
This problem occurs when the number of blocks is large (> 100?). I tried with different PCs, different browsers, different network connections, ...

Are other Blockly users observing this problem?

Daniel Pers

Stefan Filff

unread,
Aug 29, 2017, 7:38:25 AM8/29/17
to CoSpaces Scripting
Hi Daniel,

can you share the space you are experiencing the problem with us? We'll have a look at the performance as well.

Cheers,
Stefan

Daniel Pers

unread,
Aug 30, 2017, 9:00:53 AM8/30/17
to CoSpaces Scripting
Hi Stefan

The problem of latency exists on all my spaces. The latency time seems to depend on the number of blocks in the scene. This problem becomes embarrassing for me from about 200 blocks.
From 400 blocks this problem becomes very annoying.
From 500 blocks I can no longer really work effectively.
Examples:
- Test new GUI (with 256 blocks in scene 1)

- Cannon Ball game (with physical mode, 578 blocks currently in scene 1)

- Simulation of Ariane 5 (638 blocks currently in scene 1, under construction)

Thank you for your help.

Stefan Filff

unread,
Aug 30, 2017, 10:47:43 AM8/30/17
to CoSpaces Scripting
Hi Daniel,

we looked into the examples you've provided and confirm that there's an increased latency the more blocks are in the workspace. One suggestion is to create additional blockly-tabs and divide the space-logic into different tabs of smaller size. 

We also have an internal feature to export and import functions defined in other coding-tabs which allow you to carry functions and variables defined in Blockly/Javascript tab #1 into Blockly/Javascript tab #2. This feature is currently in testing and will be released after approval.

Cheers,
Stefan

Daniel Pers

unread,
Aug 30, 2017, 11:36:47 AM8/30/17
to CoSpaces Scripting
Hi Stefan,

I am very excited to be able to test your solutions. At the moment it is difficult for me to work on my projects which use many blocks.

Thank you for your help.

Daniel Pers

Kirill Prazdnikov

unread,
Sep 4, 2017, 7:47:12 AM9/4/17
to CoSpaces Scripting
Hi Daniel, 

Do you use collapce block ? 
Does it help ? 

Reply all
Reply to author
Forward
0 new messages