Sway: Limit screen rec cpu usage to half the cores.
This commit is contained in:
parent
7e1502dae3
commit
011fc516e0
|
@ -102,6 +102,7 @@ let
|
|||
--framerate ${toString framerate} \
|
||||
--file "''${scrFile}" \
|
||||
--pixel-format "${pixfmt}" \
|
||||
--codec-param "lp=$(($(cat /proc/cpuinfo | grep ^processor | wc -l) / 2))" \
|
||||
--geometry "''${scrSelection}"
|
||||
'';
|
||||
|
||||
|
@ -112,6 +113,7 @@ let
|
|||
-c:v ${codec} \
|
||||
-pix_fmt ${pixfmt} \
|
||||
-f ${container} \
|
||||
-svtav1-params "lp=$(($(cat /proc/cpuinfo | grep ^processor | wc -l) / 2))" \
|
||||
"''${scrFile}_" \
|
||||
&& mv "''${scrFile}_" "''${scrFile}" \
|
||||
|| rm "''${scrFile}_"
|
||||
|
|
Loading…
Reference in a new issue