Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truly asynchronous kernel API support #4

Closed
fuzzie360 opened this issue Feb 19, 2016 · 7 comments
Closed

Truly asynchronous kernel API support #4

fuzzie360 opened this issue Feb 19, 2016 · 7 comments
Assignees

Comments

@fuzzie360
Copy link
Member

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)
@PicoCreator
Copy link
Contributor

https://github.com/kripken/webgl-worker

No idea if it would help lol

@fuzzie360
Copy link
Member Author

The blog post for webgl-worker said async calls cannot be implemented by their method.

@PicoCreator
Copy link
Contributor

So we got no choice but to use webworkers i assume =( ?

@fuzzie360
Copy link
Member Author

WebGL does not work in WebWorkers (yet). Waiting on this: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen

@PicoCreator
Copy link
Contributor

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 !

@PicoCreator PicoCreator self-assigned this Feb 26, 2016
@PicoCreator PicoCreator added this to the post-hackathon-alpha milestone Feb 26, 2016
@fuzzie360
Copy link
Member Author

There's already async on the webworker branch

PicoCreator referenced this issue Feb 28, 2016
While loop test case, fixed no parameter test case
PicoCreator referenced this issue Feb 28, 2016
Added gpu_utils class to centralize small snippets of code. Also fixed while loop test case to default value
PicoCreator referenced this issue Feb 28, 2016
Renamed backend files. to mode_(c/g)pu respectively
PicoCreator referenced this issue Feb 28, 2016
Renamed backend functions, .gitattributes overide
PicoCreator added a commit that referenced this issue Mar 10, 2016
Conflicts:
	gulpfile.js
	src/gpu.js
	src/utils.js
@PicoCreator
Copy link
Contributor

Merged in 036bc66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants