Cuperino / QPrompt-Teleprompter

Teleprompter software for all video creators. Built with ease of use, productivity, control accuracy, and smooth performance in mind.
https://qprompt.app
GNU General Public License v3.0
357 stars 23 forks source link

Cursor artifacts #91

Open videosmith opened 2 years ago

videosmith commented 2 years ago

Bug Description Occasional artifacts appear when moving cursor

Steps to Reproduce

  1. Run install and run qprompt-1.0.0-Linux-aarch64.deb
  2. Maximize window or enter full screen mode
  3. Slowly move cursor from extreme left side of screen inwards towards the right.
  4. A minute artifact of the cursor appears briefly to the right.
  5. Only seems to occur when the above actions are performed.

Expected behavior No artifacts

Detailed description of display configuration (if applicable) HDMI 0 only, 1280x720p, 59.94

Screenshots (optional) 2a

Device information

videosmith commented 2 years ago

158889859-d8e96caa-b467-43c3-835f-f8460569eb1a

Cuperino commented 2 years ago

Cursor artifacts usually are usually a by product of how the compositor or window manager draws windows and cursors on screen. QPrompt doesn't draw the window cursor itself, instead it requests a cursor to be used and the operating system takes care of drawing it.

In desktop environments and window managers that use older methods for drawing windows on screen it's more common to get artifacts. These sometimes happen when an app (QPrompt in this case) takes too long to process visuals. The cursors can also become a garbled mess when the system is lacking video memory.

Most of these problems can be solved by using a compositor to draw windows. Compton is a lightweight compositor I like to use on low-end machines running LXQt. I don't know what compositor the RPi OS comes with, but I had read that it is automatically enabled on Raspberry Pis with 4 GB of RAM or more.

You can try switching it for Compton to see if it solves your graphical issues. I'll look into this later to see if the issue has to do with long rendering times or something else that's app related. Most likely the issue has to do with the compositor or the window manager...

videosmith commented 2 years ago

Raspi-config> Advanced A3 Compositor> Enable/disable xcompmgr composition manager seems to be disabled.

Is this what you were referring to?

Made no difference when enabled.

videosmith commented 2 years ago

After switching Debian 11.3 LXQt to KDE, the artifacting disappeared.

Cuperino commented 2 years ago

Good to know! It may have had to do with how LXDE / Pixel (RPi OS), and LXQt's compositors are implemented. After all, LXDE and LXQt were created by some of the same developers. These might even share the same code; after all, compositors and window managers are mostly toolkit independent. Either way, I find it unlikely that it's an issue with QPrompt.

I'll leave this issue open until I'm able to try replicate the issue. I'm attending more pressing matters and issues first.

FYI, KDE Plasma will always be the environment where QPrompt has the least amount of issues, because QPrompt is in part built using KDE libraries. The user experience should be equivalent across all desktop environments, so I'll keep working on issue #90.