helfrichmichael / cura-novnc

Provides an instance of Cura via noVNC in your favorite web browser!
13 stars 8 forks source link

GPU support? #12

Closed tensiondriven closed 12 months ago

tensiondriven commented 1 year ago

Hola,

I believe Cura uses OpenGL for graphics accelleration, would it be possible to expose an nvidia GPU to the container so that OpenGL could take advantage of it? As it is, the PREPARE tab works fine, but the PREVIEW tab renders very slow for me.

bushibot commented 12 months ago

Also curious. Running on unraid. Desktop version definitely uses GPU. In plex container if you have nvidia driver installed you can set Container Variable keys: NVIDIA_DRIVER_CAPABILITIES and Container Variable: NVIDIA_VISIBLE_DEVICES to enable gpu use.

helfrichmichael commented 12 months ago

Looking into this. Like @bushibot said, this should be possible. If so I'll ideally add it to all of my images :). Thanks for the suggestion.

helfrichmichael commented 12 months ago

Just confirmed on my PrusaSlicer docker that the env's being set to the ones below in-fact provides GPU acceleration/passthrough.

NVIDIA_VISIBLE_DEVICES all
NVIDIA_DRIVER_CAPABILITIES all
helfrichmichael commented 12 months ago

Fixed and added to the template and README.

bushibot commented 11 months ago

can the docker be updated, says 3 months old? https://hub.docker.com/r/mikeah/cura-novnc

helfrichmichael commented 11 months ago

Just redeployed it. Seems to be due to the last Cura release #.

bushibot commented 11 months ago

Just updated the container via unraid, I dont' see the new options. I guess I can add manually?

helfrichmichael commented 11 months ago

Just updated the container via unraid, I dont' see the new options. I guess I can add manually?

It was added to the app template, so you might have to re-add it from the Community Apps IIRC. Otherwise, you can manually add it (that's what I did when testing this).

bushibot commented 11 months ago

So I added the variables the specific device but man rendered stuff preview is still stop motion, I'm doubtful it's leveraging gpu. I'd be carouse if other folks millage is different.