开启Compton的GPU加速功能,可按以下步骤操作:
sudo apt-get install compton,Fedora/RHEL系统用sudo dnf install compton。~/.config/compton.conf,若不存在则创建。在文件中添加或修改backend = glx,以启用OpenGL渲染后端,还可根据需要添加其他优化参数,如glx-no-stencil = false等。nvidia-driver,AMD显卡用amdgpu-driver,Intel显卡用intel-driver。compton -c ~/.config/compton.conf,也可通过创建systemd服务文件实现开机自启动。glxgears等工具查看帧率,若帧率高且稳定,说明GPU加速已启用。