ubuntu

Ubuntu中Compton的性能如何优化

小樊
43
2025-11-20 17:19:36
栏目: 智能运维

Ubuntu 下 Compton 性能优化指南

一 基础准备与配置路径

二 关键参数优化清单

三 示例最小化高性能配置

# ~/.config/compton.conf
backend = "glx"
vsync = false
fps_limit = 60
shadow = false
bg_blur = false
screen_edge_blur = false
mark-wmwin-focused = true
mark-ovredir-focused = true
use-ewmh-active-win = true
detect-rounded-corners = true
detect-client-leader = true
unredir-if-possible = true
paint-on-overlay = true
glx-swap-method = "buffer-age"

# 可按需添加:仅对特定应用启用阴影/透明度
shadow-exclude = [
  "name = 'Conky'",
  "class_g = 'Firefox' && argb"
]
fade-exclude = [ "name = 'Conky'" ]

说明:以上为“最小开销”思路,优先保障交互延迟与帧率稳定;视觉效果(阴影/模糊/透明)按需少量开启并逐项验证。

四 验证与故障排查

0
看了该问题的人还看了