优化CentOS上Compton配置可从以下方面入手:
~/.config/compton.conf
,编辑时需注意:
glx
或wayland
(需显卡支持OpenGL),替代xrender
以提升性能[1,3,4,5,6,7,8,9,10,11](@ref)。shadow=false
、opacity=false
减少合成开销[1,3,4,5,6,7,8,9,10,11](@ref)。vsync=true/false
,避免画面撕裂或卡顿[1,3,4,5,6,7,8,9,10,11](@ref)。glx
后端以利用硬件加速[1,3,4,5,6,7,8,9,10,11](@ref)。cpulimit
工具限制Compton CPU使用率(如cpulimit -l 50 -p $(pgrep compton)
)[1,3,4,5,8,9,10,11](@ref)。ignore_root=true
[6,7,8](@ref)。修改后需重启Compton使配置生效:killall compton && compton &
[6,7,8](@ref)。