Giter VIP home page Giter VIP logo

Comments (5)

jeasinema avatar jeasinema commented on May 29, 2024 3

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.

jeasinema avatar jeasinema commented on May 29, 2024

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.

ehfd avatar ehfd commented on May 29, 2024

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.

jeasinema avatar jeasinema commented on May 29, 2024

@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.

ehfd avatar ehfd commented on May 29, 2024

vglrun glxgears -info in the console now works correctly without any additional environment variables.

from docker-nvidia-egl-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.