Ubuntu下使用 Compton 提升桌面性能的实用配置
一 基础准备与安装
二 核心配置优化要点
三 示例最小化配置
# 渲染与同步
backend = "glx"
vsync = false # 若出现撕裂再改为 true 测试
# 特效开关(性能优先:全部关闭)
shadow = false
opacity = false
alpha = false
bg_blur = false
screen_edge_blur = false
# 其他常用稳定性项
mark-visible-frames = true
unredir-if-possible = true
四 应用与验证
[Unit]
Description=Compton Window Composer
After=xorg.service
[Service]
ExecStart=/usr/bin/compton --config /etc/compton.conf
Restart=on-failure
[Install]
WantedBy=multi-user.target
启用:sudo systemctl daemon-reload && sudo systemctl enable --now compton五 进阶与排错