Description
Using Qt 5.15 with an OpenGL backend produces lags in a simple GUI program.
Summary
When using a button constructed with QML from the Qt framework, a lag is observed frequently. Sometimes a button will register input and initiate the event processing logic, but the instruction does not complete for a range from a fraction of a second to over twenty seconds. Can you help me triage the lag on an Jetson AGX Orin Developer Kit?
Assumptions to Test
The underlying Ubuntu system calls and other frameworks like OpenGL might be competing for a lock.
Introducing more events to the event loop seems to cause more events to be processed quickly. Clicking a stalled button sometimes updates the GUI, but sometimes the events stack to later produce a chain of responses.
Only a GUI with OpenGL lags.
Capturing input with Tcl and Python produces less lag. Only sometimes is a click missed, and this may be explained by user error on the input of successive clicks. I recorded a maximum of over 10 clicks per second, so any lag from the GUI could be within a tenth of a second. Qt implements a GUI with OpenGL, where my program using Tkinter does not use OpenGL.