How to Improve Game Performance in Linux (GameMode)
Aug 4, 2019 20:29:25 GMT -5
Mr.Scott, ShrimpBrime, and 3 more like this
Post by orl on Aug 4, 2019 20:29:25 GMT -5
Hello Everyone!
As you all know gaming has begun to become a lot more friendly to the average user in the Linux world. There are many programs and even distros now that are centrist on providing a better gaming experience for users. I recently stumbled across this little gem and wanted to share it with you. The program is called Gamemode, its been created by Feral Interactive. Basically what this program does is optimize your system to allow the game to bypass system governors and use the full performance of your hardware. The end result is some pretty staggering performance gains in Linux that often puts the game on par with its performance in Windows. As I only use Debain based distros, I will only be able to show you how to install in the like, but you will also see a link to the Github so you can work your magic if on another distribution. For me, this was nearly an instant 30 FPS gain in WoW, and it brought late game performance in Stellaris to faster than I had seen in Windows previously. Its truly one of the best things to happen to gaming in Linux.
To install open a console and enter the information below line by line. (For: Debian, Mint, and Ubuntu)
sudo add-apt-repository ppa:samoilov-lex/gamemode
sudo apt-get update
sudo apt install gamemode
sudo apt install gamemode
Below you will find (3) ways to use this utility with popular gaming software in Linux and the console.
LUTRIS
1. Open console and type the command below, save output of this command for Value in Lutris.
sudo find /usr/ -name libgamemodeauto.so.0
2. Now follow the steps below after you have a game installed in Lutris. You will navigate the options below and then enter the Key and Value items to the command box, press enter after each item or it will not save.
Open Lutris -> Right Click Game -> Configure -> System Options -> Key/Value
Key = LD_PRELOAD
Value = "Value From the console command above without quotes"
Value = "Value From the console command above without quotes"
3. Check if Gamemode is operating. While the game is running open up a console window and type the command listed below. It will tell you if the optimizations have started or not with an active or inavtive output.
sudo gamemoded -s
STEAM
1. Open steam up and right click an installed game. Navigate to the following path then enter the command listed below into the box that STEAM provides without the quotation marks.
Properties -> General -> Set Launch Options -> (Enter Text Below)
"gamemoderun %command%"
2. Check if Gamemode is operating. While the game is running open up a console window and type the command listed below. It will tell you if the optimizations have started or not with an active or inactive output.
sudo gamemoded -s
sudo gamemoded -s
CONSOLE START
1. Open a console window and type the following command below. Replace the word game with the command that starts the game or process you wish to run.
gamemoderun ./game
2. Check if Gamemode is operating. While the game is running open up a console window and type the command listed below. It will tell you if the optimizations have started or not with an active or inactive output.
sudo gamemoded -s
sudo gamemoded -s
REFERENCES