3 ms·
Too expensive to do in one frame. Too cheap to use a worker. Alas. :)
by Waterluvian 8y ago
Too expensive to do in one frame. Too cheap to use a worker. Alas. :)
- Klathmon 8y agoDepending on the data you are sending transferrable objects could be your solution. Typed arrays can be zero-copy transferred to a worker extremely quickly, modified, then transferred back if needed. No costly copying or cloning needed. But it won't work with just objects, just typed arrays.