Forum

multi-threaded app and logic editor

05 May 2016 10:01 #9248
I read from the manual that "By using multiple entry points you can create multi-threaded applications."
I wonder how it should work.
Here is what I try to do:
"Start" button makes pendulum work
"x2" button should increase speed by 2

pendel.blend

pendel.html
05 May 2016 10:05 #9249
_
05 May 2016 10:45 #9252

I read from the manual that "By using multiple entry points you can create multi-threaded applications."
I wonder how it should work.
Here is what I try to do:
"Start" button makes pendulum work
"x2" button should increase speed by 2
Hello!
You should declare global variable for duration (default R1…R8 variables are local for every thread). And you should also cycle miss outputs of the Switch Select nodes (fixed blend file in attachments):

Blend4Web Team - developer
05 May 2016 10:52 #9254
Besides you may watch my recent presentation from b4w conference:
https://youtu.be/JPUIe5bi774?t=16508
There is also an example of multi-thread logic tree.
Example scene and B4W Project used in presentation in attachments (you can simply import it in project manager).
Blend4Web Team - developer
 
Please register or log in to leave a reply.