Linux 平台的 QT 程序在 X11 Intel modesetting 环境下屏幕撕裂,如何解决?
-
我的 Linux 使用 X11 图形系统, Intel 核芯显卡。所有的 QT4 和 QT5 程序都会出现屏幕撕裂现象,严重影响使用。但假如不使用 Xorg 的 modesetting 驱动,而是用陈旧的 intel DDX 驱动,就不会出现撕裂。然而 intel DDX 驱动已经处于废弃状态, Mesa 等基础软件都不再关心该驱动。如果硬要使用 intel DDX 驱动,那么用不了 GPU 加速。
可以参考这里:
https://wiki.archlinux.org/title/intel_graphics#Installation
Note: Some (Debian & Ubuntu, Fedora, KDE) recommend not installing the xf86-video-intel driver, and instead falling back on the modesetting driver for Gen4 and newer GPUs (GMA 3000 from 2006 and newer). See [1], [2], Xorg#Installation, and modesetting(4). However, the modesetting driver can cause problems such as screen tearing and mouse jittering on XFCE, artifacts when switching virtual desktops in Chromium, and vsync jitter/video stutter in mpv.
对于 Intel 显卡,屏幕撕裂问题非常普遍。对于 QT 程序,有无特定的解决办法?
-
This is intel driver's problem. I do not think Qt will handle it. Ask the guys who make intel drivers how to handle this. It is likely you have to upgrade your card and the drivers. If your card is too old, they will not bother to help you. I have the issue of memory leaks if vaapi is applied. Vaapi is being dropped and a new one is supposed to replace it.
Also it may be better to switch to NVidia which has better support.