-
Hello I've got a quick question/idea about Supabase libraries and how they work with single-threaded mode. When it comes to Unity, one of the options we have for publishing is WebGL. But WebGL has a downside – it doesn't work with multi-threading (C#). So, I'm wondering if there are any plans to make Supabase-csharp work in single-threaded mode. If this feature is already available and I just missed it, my bad! Would appreciate any insights or updates you have on this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
My two cents is that you should be able to use UniTask w/Supabase in Unity on WebGL exports. I personally haven't gone down that route, but there are some reports of folks getting UniTask to play with the standard JS event loop stuff. I did find this https://github.com/VolodymyrBS/WebGLThreadingPatcher. Give it a spin and let us know what you find... :) |
Beta Was this translation helpful? Give feedback.
One option would be downloading the source and adding that to your project instead of using the binaries. You could then try configuring the dependencies as needed.
Honestly, my sense is that Unity hasn't/isn't investing in WebGL all that much. Back in the day there used to be a Unity browser plugin for targeting the web, and I think the WebGL stuff was produced as an alternative to that. I get the sense that the market has more or less moved away from that sort of thing.
FWIW I think Godot's web export is in similar "well, it kind of works" state, but they were still fixing pretty basic stuff last I looked at it.
If I were targeting a browser first solution, I'd look at one of the web na…