set cpumask in gaming mode
This commit is contained in:
parent
829dfaced3
commit
45161059d2
|
@ -55,11 +55,18 @@ game() {
|
||||||
sudo cset proc -m -f root -t system
|
sudo cset proc -m -f root -t system
|
||||||
sudo cset proc -k -f root -t system --force
|
sudo cset proc -k -f root -t system --force
|
||||||
|
|
||||||
|
echo "Setup cpumask"
|
||||||
|
sudo bash -c "echo 5 > /sys/devices/virtual/workqueue/cpumask"
|
||||||
|
|
||||||
echo "Starting looking-glass"
|
echo "Starting looking-glass"
|
||||||
LD_PRELOAD=/usr/\$LIB/libgamemodeauto.so looking-glass-client -o opengl:preventBuffer=0 -MF
|
LD_PRELOAD=/usr/\$LIB/libgamemodeauto.so looking-glass-client -o opengl:preventBuffer=0 -MFk
|
||||||
|
|
||||||
echo "Restore system"
|
echo "Restore system"
|
||||||
|
# cpumask
|
||||||
|
sudo bash -c "echo f > /sys/devices/virtual/workqueue/cpumask"
|
||||||
|
# cpuset
|
||||||
sudo cset set -d system &>/dev/null
|
sudo cset set -d system &>/dev/null
|
||||||
|
# services
|
||||||
compton &>/dev/null & disown
|
compton &>/dev/null & disown
|
||||||
systemctl --user start redshift
|
systemctl --user start redshift
|
||||||
sudo systemctl start cronie
|
sudo systemctl start cronie
|
||||||
|
|
Loading…
Reference in New Issue