Does bitECS take advantage of WebWorkers? #158
adamwong246
started this conversation in
General
Replies: 2 comments
-
I did some digging and found that underlaying bitECS is Sets and Maps, which are not transferrable or shareable. Such would be a massive re-write. I think perhaps the best solution maybe to write to a sharedarraybuffer in the main iteration loop, and then, on the rendering thread, read from that shared buffer. |
Beta Was this translation helpful? Give feedback.
0 replies
-
i wrote some threading strategies for the new v0.4 version of bitecs here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am gathering tools for my next project and I am hoping the bitECS can fill a role. However, I would like to take advantage of webworkers. Can bitECS provide that functionality?
Beta Was this translation helpful? Give feedback.
All reactions