TurboVNC / turbovnc

Main TurboVNC repository
https://TurboVNC.org
GNU General Public License v2.0
746 stars 136 forks source link

vglrun and turbovnc? #371

Closed qibin2020 closed 1 year ago

qibin2020 commented 1 year ago

Hi experts, I have a very naïve question -- After I have setup the turbovnc server and xfce4 desktop environment I can directly run e.g. glxgear in the xfce terminal (with very good FPS), does that mean turbovnc itself now handles all the virtual-GL function? I have checked some documentations and they all described the usage like vglrun glxgear is necessary. Do I understand them correctly or turbovnc could handle all of this with single software now. Many thanks!

dcommander commented 1 year ago

TurboVNC and VirtualGL are independent. VirtualGL basically just intercepts the OpenGL function calls from an OpenGL application and directs them away from TurboVNC so that the function calls can be GPU-accelerated. (This is a vastly oversimplified statement. Refer to the VirtualGL User's Guide for diagrams and more details.) vglrun just sets LD_PRELOAD to preload the VirtualGL interposer libraries ahead of libGL so that those libraries can intercept the necessary function calls. If you use vglrun with a single application, then VirtualGL is only active for the life of that application. If you want to activate VGL for the entire TurboVNC session, then you have to run the window manager using vglrun by passing -vgl to /opt/TurboVNC/bin/vncserver or setting the $useVGL variable in the TurboVNC Server config file.