VirtualGL frame stuttering #122

Closed
opened 2022-03-10 04:10:31 +00:00 by a · 6 comments
Owner

For the past few weeks, VirtualGL apps run using vglrun have been having weird frame stuttering and framerate drops. Maybe the ArchWiki has some helpful advice? Or should I uninstall VirtualGL and reboot and reinstall it?

For the past few weeks, VirtualGL apps run using `vglrun` have been having weird frame stuttering and framerate drops. Maybe the [ArchWiki](https://wiki.archlinux.org/title/VirtualGL) has some helpful advice? Or should I uninstall VirtualGL and reboot and reinstall it?
a added the
bug
label 2022-03-10 04:10:31 +00:00
a self-assigned this 2022-03-10 04:10:31 +00:00
a added this to the (deleted) project 2022-03-10 04:10:38 +00:00
Author
Owner

Running vglrun inside an exodesk session (kind of useless but just for testing) works perfectly, so here's the difference in outputs:

[VGL] NOTICE: Added /usr/lib to LD_LIBRARY_PATH
[VGL] NOTICE: Replacing dlopen("libX11.so.6") with dlopen("libvglfaker.so")
[VGL] Shared memory segment ID for vglconfig: 1114140
[VGL] VirtualGL v3.0 64-bit (Build 20211129)
[VGL] NOTICE: Replacing dlopen("libGL.so.1") with dlopen("libvglfaker.so")
[VGL] Opening connection to 3D X server :0
[VGL] Selecting structure notify events in window 0x02c00002
[VGL] NOTICE: Replacing dlopen("libGL.so.1") with dlopen("libvglfaker.so")
[VGL] Selecting structure notify events in window 0x02c00006
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
[VGL] Using pixel buffer objects for readback (BGR --> BGRA)
[VGL] NOTICE: Automatically setting VGL_CLIENT environment variable to
[VGL]    192.168.1.12, the IP address of your SSH client.
[VGL] NOTICE: Added /usr/lib to LD_LIBRARY_PATH
[VGL] NOTICE: Replacing dlopen("libX11.so.6") with dlopen("libvglfaker.so")
[VGL] Shared memory segment ID for vglconfig: 1114142
[VGL] VirtualGL v3.0 64-bit (Build 20211129)
[VGL] NOTICE: Replacing dlopen("libGL.so.1") with dlopen("libvglfaker.so")
[VGL] Opening connection to 3D X server :0
[VGL] Selecting structure notify events in window 0x05800002
[VGL] NOTICE: Replacing dlopen("libGL.so.1") with dlopen("libvglfaker.so")
[VGL] Selecting structure notify events in window 0x05800006
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
[VGL] Using 1 compression threads on 24 CPU cores
[VGL] Using pixel buffer objects for readback (BGR --> BGR)
[VGL] Client version: 2.1
[VGL] NOTICE: PBO readback is not behaving asynchronously.  Disabling PBOs.
Running `vglrun` inside an exodesk session (kind of useless but just for testing) works perfectly, so here's the difference in outputs: ``` [VGL] NOTICE: Added /usr/lib to LD_LIBRARY_PATH [VGL] NOTICE: Replacing dlopen("libX11.so.6") with dlopen("libvglfaker.so") [VGL] Shared memory segment ID for vglconfig: 1114140 [VGL] VirtualGL v3.0 64-bit (Build 20211129) [VGL] NOTICE: Replacing dlopen("libGL.so.1") with dlopen("libvglfaker.so") [VGL] Opening connection to 3D X server :0 [VGL] Selecting structure notify events in window 0x02c00002 [VGL] NOTICE: Replacing dlopen("libGL.so.1") with dlopen("libvglfaker.so") [VGL] Selecting structure notify events in window 0x02c00006 [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1) [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1) [VGL] Using pixel buffer objects for readback (BGR --> BGRA) ``` ``` [VGL] NOTICE: Automatically setting VGL_CLIENT environment variable to [VGL] 192.168.1.12, the IP address of your SSH client. [VGL] NOTICE: Added /usr/lib to LD_LIBRARY_PATH [VGL] NOTICE: Replacing dlopen("libX11.so.6") with dlopen("libvglfaker.so") [VGL] Shared memory segment ID for vglconfig: 1114142 [VGL] VirtualGL v3.0 64-bit (Build 20211129) [VGL] NOTICE: Replacing dlopen("libGL.so.1") with dlopen("libvglfaker.so") [VGL] Opening connection to 3D X server :0 [VGL] Selecting structure notify events in window 0x05800002 [VGL] NOTICE: Replacing dlopen("libGL.so.1") with dlopen("libvglfaker.so") [VGL] Selecting structure notify events in window 0x05800006 [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1) [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1) [VGL] Using 1 compression threads on 24 CPU cores [VGL] Using pixel buffer objects for readback (BGR --> BGR) [VGL] Client version: 2.1 [VGL] NOTICE: PBO readback is not behaving asynchronously. Disabling PBOs. ```
Author
Owner

These are the troublesome lines:

[VGL] Using 1 compression threads on 24 CPU cores
[VGL] Using pixel buffer objects for readback (BGR --> BGR)
[VGL] Client version: 2.1
[VGL] NOTICE: PBO readback is not behaving asynchronously.  Disabling PBOs.
These are the troublesome lines: ``` [VGL] Using 1 compression threads on 24 CPU cores [VGL] Using pixel buffer objects for readback (BGR --> BGR) [VGL] Client version: 2.1 [VGL] NOTICE: PBO readback is not behaving asynchronously. Disabling PBOs. ```
Author
Owner

[VGL] Using pixel buffer objects for readback (BGRA --> BGRA) seems to give the best performance, so I'll have to troubleshoot when this doesn't happen.

`[VGL] Using pixel buffer objects for readback (BGRA --> BGRA)` seems to give the best performance, so I'll have to troubleshoot when this doesn't happen.
Author
Owner

Using VGL_FORCEALPHA=1 forces VirtualGL to use PBOs, which seems to improve performance somewhat. SuperTux still doesn't work but whatever.

Using `VGL_FORCEALPHA=1` forces VirtualGL to use PBOs, which seems to improve performance somewhat. SuperTux still doesn't work but whatever.
Author
Owner

Anyways, 😭 that my old VirtualGL setup no longer works.

Anyways, 😭 that my old VirtualGL setup no longer works.
Author
Owner

VGL_FORCEALPHA=1 definitely works for some apps. Closing.

`VGL_FORCEALPHA=1` definitely works for some apps. Closing.
a closed this issue 2022-03-11 23:03:01 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: exozyme/exozyme#122
No description provided.