Comments (5)
Finally got it running. I need to set these env variables:
export VGL_REFRESHRATE=60
export VGL_ISACTIVE=1
export VGL_DISPLAY=egl
export VGL_WM=1
from docker-nvidia-egl-desktop.
As a side note, the GPU rendering will stop working if I use root
user instead, even when log in through webVNC:
user@351d9e1b605d:/opt/VirtualGL/bin$ sudo -i
user@351d9e1b605d:/opt/VirtualGL/bin$ ./glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
GLX FB config ID of window: 0x13d (8/8/8/0)
Visual ID of window: 0x3d0
Context is Direct
OpenGL Renderer: llvmpipe (LLVM 12.0.0, 256 bits)
71.574763 frames/sec - 79.877436 Mpixels/sec
from docker-nvidia-egl-desktop.
Please append vglrun
to all commands that you want to accelerate. Since the Desktop Environment was run using vglrun in the first place, commands run from the GUI will work without them.
For example:
sudo vglrun glxgears -info
Looks like something I should add to the docs.
from docker-nvidia-egl-desktop.
@ehfd Thank you for the reply! Here is what I got:
(base) user@351d9e1b605d:/opt/VirtualGL/bin$ sudo vglrun ./glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
GLX FB config ID of window: 0x13d (8/8/8/0)
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: llvmpipe (LLVM 12.0.0, 256 bits)
52.943677 frames/sec - 59.085144 Mpixels/sec
I suppose the rendering still happens on CPU? (I tried without sudo
but basically, the output is the same as above)
from docker-nvidia-egl-desktop.
vglrun glxgears -info
in the console now works correctly without any additional environment variables.
from docker-nvidia-egl-desktop.
Related Issues (20)
- how to modify the entrypoint.sh in container HOT 7
- Video stream issue HOT 1
- Choosing a specific GPU device rendering in docker console? / VGL_DISPLAY for VirtualGL HOT 8
- Question regarding building a pod based on this image HOT 2
- ASK: how to start single window application HOT 6
- Google Chrome with GPU HOT 6
- Instruction to test HOT 13
- Test issue. HOT 2
- Enhancement request - AArch64 support HOT 13
- Will this work without i386 ? HOT 1
- SIGKILL/SIGSTOP can not be trapped HOT 2
- Missing gstreamer plugins nice, webrtc, dtls, ... HOT 11
- NVIDIA headless drivers do not support the container HOT 19
- The screen locker is broken and unlocking is not possible anymore HOT 11
- Unity 3d-Rendering app does not recognize the display/desktop in Docker env HOT 7
- selkies will not connect to the TURN forwarding port even if a coturn ip is set in the environment HOT 13
- replace noVNC to KasmVNC HOT 8
- selkies-gstream hit 100% CPU HOT 19
- Choosing a specific device ID for NVIDIA GPUs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-nvidia-egl-desktop.