Obi Official Forum
WebGL support with new backend ? - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: General (https://obi.virtualmethodstudio.com/forum/forum-5.html)
+--- Thread: WebGL support with new backend ? (/thread-2957.html)



WebGL support with new backend ? - mmortall - 27-05-2021

Since we have a new Jobs-based Obi backend is there a chance to get webgl support someday? I tried the latest Obi CLoth version with webgl but I have some errors when I am adding cloth to simulation. At least it compiles now. 


RE: WebGL support with new backend ? - josemendez - 28-05-2021

(27-05-2021, 06:34 PM)mmortall Wrote: Since we have a new Jobs-based Obi backend is there a chance to get webgl support someday? I tried the latest Obi CLoth version with webgl but I have some errors when I am adding cloth to simulation. At least it compiles now. 

I have never managed to get any multithreaded Burst-based code running in WebGL yet. Apparently, it's supported or intended to be supported in the near future, but there's no clear information as to when:

https://forum.unity.com/threads/webgl-build-with-entities-ecs-not-working-burst-related-too-maybe.811275/
https://forum.unity.com/threads/burst-compiler-webgl.1066739/
https://forum.unity.com/threads/burst-jobs-in-webgl-build.1109684/

Seems that the best you can currently get is Burst+Jobs in single-threaded mode, which unfortunately isn't enough for Obi to offer decent performance. Seems all we have to do for multithreaded & vectorized code to run in WebGL is wait for development to progress, though.


RE: WebGL support with new backend ? - mmortall - 31-05-2021

(28-05-2021, 07:44 AM)josemendez Wrote: I have never managed to get any multithreaded Burst-based code running in WebGL yet. Apparently, it's supported or intended to be supported in the near future, but there's no clear information as to when:

https://forum.unity.com/threads/webgl-build-with-entities-ecs-not-working-burst-related-too-maybe.811275/
https://forum.unity.com/threads/burst-compiler-webgl.1066739/
https://forum.unity.com/threads/burst-jobs-in-webgl-build.1109684/

Seems that the best you can currently get is Burst+Jobs in single-threaded mode, which unfortunately isn't enough for Obi to offer decent performance. Seems all we have to do for multithreaded & vectorized code to run in WebGL is wait for development to progress, though.

Thanks. I will wail then.