Skip to content
Welcome to Spicy Pixel Answers, where you can ask questions and receive answers from the support team and other members of the community.

Can ConcurentBehaviour use in WebGL

0 votes
we have a IOS project which TCPIP class implement ConcurrentBehaviour.

Now, we would like to build in WebGL and reuse ConcurrentBehaviour in our WebSocket wrapper class.

Is is possible to implement ConcurrentBehaviour in WebGL project??

As WebGL cannot work with Threading programming, we're not sure that this class can be implmented or not.
asked May 13, 2015 in Concurrency Kit by auycro (150 points)

1 Answer

0 votes
 
Best answer

As far as I know, threads are supported in WebGL projects, they're just simulated so you don't get the performance benefit of multi-threading but you do get concurrency.

More info here:
http://docs.unity3d.com/Manual/webgl-performance.html

It's entirely possible the kit will work with the WebGL target but I haven't tried it yet myself. If you have the opportunity to test this, please let me know if you run into any issues.

answered May 13, 2015 by admin (2,500 points)
selected May 13, 2015 by auycro
...