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

How does it compare to Electron-TF for non-GUI apps? #33

Open
innerop opened this issue Apr 7, 2019 · 2 comments
Open

How does it compare to Electron-TF for non-GUI apps? #33

innerop opened this issue Apr 7, 2019 · 2 comments

Comments

@innerop
Copy link

innerop commented Apr 7, 2019

I can already use Electron to bypass CUDA and rely on it for exposing WebGL to TFJS. How does Electron manage to work with all kinds of desktop GPUs? Does it use something like Angle under the hood? Or it works differently?

Besides being dramatically lighter and aimed at non-GUI apps that can be written on top of OpenGLES (and I assume having a WebGL backend fo TFJS), how does Node-GLES compare to Electron?

My evolving aim (as of now) is to be able to build TF apps in JS in embedded form factor without relying on NVIDIA specific libraries like CUDA and cuDNN.

I could use some clarity.

@nkreeger
Copy link
Contributor

We haven't benchmarked this library against Electron + Chromium/WebGL.

Right, Electron provides that functionality (native GL acceleration w/o CUDA). Sorry for any confusion - this is something that could be bundled into Electron, we just haven't tried. The main scope of this running under Node.js with WebGL acceleration. We can use this for GL acceleration on Mac OS, IoT devices, etc. Electron could be an added bonus once profiled and an example is created.

@idibidiart
Copy link

I wonder if running node-gles in Electron to offload TFJS to the Electron backend means that the Electron UI process will be lighter and UX will be snappier when doing heavy stuff with TFJS? I know you can't answer that without trying it, but it's a thing to try, IMO. Please let us know when node-gles is ready enough to try. If you guys, or anyone from the Electron team are up to it, that would be great, too. Thanks. Exciting.

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

No branches or pull requests

3 participants