在Debian上启用Compton加速,可参考以下步骤:
sudo apt update
和sudo apt install compton
进行安装。~/.config/compton.conf
,添加或修改以下内容:
backend = glx
:启用OpenGL渲染后端以实现GPU加速。vsync = true
:根据情况设置垂直同步,可减少画面撕裂。shadow = false
:关闭阴影以提升性能,若需保留阴影可设置为true
并调整shadow-exponent
等参数。killall compton
和compton &
重启Compton,或通过sudo systemctl restart compton
重启(若使用systemd服务管理)。