mirror of
https://github.com/rydesun/dotfiles.git
synced 2025-12-26 22:55:00 +08:00
Enable VA-API support for firefox
This commit is contained in:
parent
6853b85762
commit
67fc425793
2 changed files with 12 additions and 0 deletions
|
|
@ -23,6 +23,8 @@ export XMODIFIERS=@im=fcitx
|
|||
export QT_QPA_PLATFORMTHEME=qt5ct
|
||||
|
||||
export BROWSER=firefox
|
||||
# Enable VA-API support for firefox
|
||||
export MOZ_X11_EGL=1
|
||||
|
||||
# swap Caps_Lock and Escape
|
||||
setxkbmap -option caps:swapescape
|
||||
|
|
|
|||
|
|
@ -46,3 +46,13 @@ user_pref("media.peerconnection.enabled", false);
|
|||
/* 禁止获取媒体设备列表API
|
||||
* 注意: 需要同时禁止WebRTC */
|
||||
user_pref("media.navigator.enabled", false);
|
||||
|
||||
/*==== 硬件视频加速 ====*/
|
||||
/* 开启WebRender */
|
||||
user_pref("gfx.webrender.all", true);
|
||||
/* 使用VA-API */
|
||||
user_pref("media.ffmpeg.vaapi.enabled", true);
|
||||
/* 禁用firefox内置的VP8/VP9解码 */
|
||||
user_pref("media.ffvpx.enabled", false);
|
||||
/* 显卡不支持AV1解码 */
|
||||
user_pref("media.av1.enabled", false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue