Truly asynchronous kernel API support
Currently all APIs are blocking and will freeze the main thread if the kernel is computationally large.
Challenges:
- No asynchronous API for WebGL exists (Blocker)
https://github.com/kripken/webgl-worker
No idea if it would help lol
The blog post for webgl-worker said async calls cannot be implemented by their method.
So we got no choice but to use webworkers i assume =( ?
WebGL does not work in WebWorkers (yet). Waiting on this: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen
Lol. so we gotta wait 3 years before it becomes standard in browser? if it makes it there.
Anyway i will update the API to support "ASYNC". - For the future !
There's already async on the webworker branch
Merged in 036bc66e5694d8bf3b2e6a14aecd04da01ff41fa