SOLVED: How can you set high priority on "games" permanently?
Solution 1:
It seems you are able of detecting your process and changing its priority using "Gnome system monitor", when you are changing a process priority you are actually changing its nice level. A nice level can be between "-20" highest priority and "19" the lowest.
so we should somehow renice (change the nice level) the game process.
You can simply use other answer suggestion and use renice
command to do it, however there are other options too.
reniced
one is to use reniced
to install it use:
sudo apt install reniced
then you can use regular expression to define rules in this file:
/etc/reniced.conf
You can add something like:
-20n ^game-process
change "game-process" with your game's process, now whenever you run sudo reniced
it's going to renice all process defined in /etc/reniced.conf
.
and
the other option is to use and
to install it:
sudo apt install and
It's job is to activates itself in certain intervals and renices process according to their priority and CPU usage. [read manual]