affinity для starcraft II
This commit is contained in:
parent
831863ca59
commit
1eca822ac2
|
@ -2,7 +2,6 @@
|
|||
|
||||
cd ~/.wine/drive_c/Games/StarCraft2
|
||||
(wine StarCraft\ II &>/dev/null)&
|
||||
cd ~/scripts/sc2
|
||||
|
||||
for i in `seq 20`; do
|
||||
sleep 60
|
||||
|
@ -10,6 +9,6 @@ for i in `seq 20`; do
|
|||
sc2_pid=`pgrep "SC2.exe"`
|
||||
if [ "$sc2_pid" != "" ]; then
|
||||
echo "Setting SC2 ($sc2_pid) affinity to CPU 1" 1>&2
|
||||
./affinity -p "$sc2_pid" -c 3
|
||||
affinity -p "$sc2_pid" -c 3
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue