以非 root 使用者身分使用 compton 時 FPS 下降

以非 root 使用者身分使用 compton 時 FPS 下降

Xubuntu 14.04 LTS(compton 版本 git-v0.1-beta2.51-g65e655e-2014-11-30)配備 Intel HD Graphics 5500

我在 compton 上遇到了不同的行為:

  • 當以非 root 使用者啟動時 => FPS 下降至 10-15 FPS 左右
  • 當以 root 身分啟動時 => 按預期工作

我正在使用該命令啟動 compton :

compton --backend glx --vsync opengl-swc

(與 xrander 後端和 drm vsync 方法相同的問題)。

在另一台運行相同作業系統和 compton 版本的電腦(Intel HD Graphics 5000)上,它對於非 root 使用者來說就像一個魅力。

答案1

我剛剛找到了解決我的問題的方法。

普通用戶帳號 .config 資料夾下存在 compton.conf 檔案。該檔案包含導致問題的額外參數。因為 root 帳號沒有該檔案 compton 沒有使用它。

backend = "glx";
paint-on-overlay = true;
glx-no-stencil = true;
glx-no-rebind-pixmap = true; <= removing this line solved my problem
vsync = "opengl-swc";

相關內容