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

headless-gl on linux with Nvidia GPU #297

Open
jjh42 opened this issue Sep 18, 2024 · 1 comment
Open

headless-gl on linux with Nvidia GPU #297

jjh42 opened this issue Sep 18, 2024 · 1 comment

Comments

@jjh42
Copy link

jjh42 commented Sep 18, 2024

Hi,

I'm trying to use headless-gl on a linux (cloud) machine with an Nvidia GPU to improve rendering speed.

If I use xvfb with no gpu and no glx suppot (e.g. glxgears won't work) then I can create a context.

However, if I use the x11 library with nvidia driver, then glxgears works (so the display is working fine) but headless-gl can't seem to use the display.

> var gl = require('gl')(64, 64)
failed to create drawable
undefined

This is Ubuntu 24.04 and headless-gl 8.0.2.

@ketansp
Copy link

ketansp commented Oct 15, 2024

I am facing the same issue where gpu.js (which uses headlessgl) simply wont use nvidia gpu.

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

2 participants