Some OpenGL Applications Lag After User Input

This appears to be the same issue as GUI Lags using Qt with C++ and QML, but not when using Tcl with Python

This impacts several OpenGL applications, for example the QML based Zivid Studio: Zivid Preview software

It is easy to reproduce in an application such as g3dviewer (sudo apt install g3dviewer) by rotating the 3D model and then pressing the reset view button. The expected outcome is that the model is immediately reset, but sometimes the window does not update until it receives additional user input.

I am able to reproduce the issue on Jetson Linux 35 and 36 with AGX Orin Devkit and Orin Nano Devkit.

Hi,
Please execute sudo jetson_clocks and check if there is further improvement. Would like to see if it helps to lock GPU at maximum frequency.

Unfortunately it doesn’t seem to have any effect.

The one thing I have found that seems to mitigate the issue is to open another application on the side that continually updates itself (like the System Monitor with the “Resources” tab selected), or glxgears or something. Then I cannot reproduce this lag anymore. But once I close that application, the issue reappears.

Another workaround is to have a GIF file animating inside the QML application.

Hi,
It’s more like an issue in application. If you feel like it’s an issue in our GPU software stack, please try to reproduce it with our reference samples. The samples are in

usr/src/nvidia/graphics_demos

I tried some of the references, and so did the last guy who ran into this: GUI Lags using Qt with C++ and QML, but not when using Tcl with Python

The issue is not reproducible in the reference applications as far as I have seen.

Do you have any reference application that is “on-demand” rendered when getting input events or something? It looked to me like all the samples are updating constantly, which would not be subject to this issue.

Another workaround for QML application is to set QSG_RENDER_LOOP environment variable to “basic”

FreeCAD is also affected by this bug (sudo apt install freecad)

Blender is also affected by this bug (sudo apt install blender). Especially noticable when using the menu (menus don’t always appear on click until you move the mouse)