[tuto][general][responsiveness] gamemode: Optimise Linux system performance on demand ( not only for games )

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
Message
Author
User avatar
K-mik@Z
Posts: 17
Joined: Sat May 19, 2018 10:08 am

[tuto][general][responsiveness] gamemode: Optimise Linux system performance on demand ( not only for games )

#1 Post by K-mik@Z »




Image


What is for


GameMode is basically a daemon/lib combo that lets the games optimise Linux system performance on demand. I thought GameMode is a kind of tool that would kill some resource-hungry tools running in the background. But it is different. What it does actually is just instruct the CPU to automatically run in Performance mode when playing games and helps the Linux users to get best possible performance out of their games.

GameMode improves the gaming performance significantly by requesting a set of optimisations be temporarily applied to the host OS while playing the games. Currently, It includes support for optimisations including the following:
  • CPU governor,
  • I/O priority,
  • Process niceness,
  • Kernel scheduler (SCHED_ISO),
  • Screensaver inhibiting,
  • GPU performance mode (NVIDIA and AMD), GPU overclocking (NVIDIA),
  • Custom scripts.
GameMode is free and open source system tool developed by Feral Interactive, a world-leading publisher of games.


NB: I use it for launch softwares too, not only games.


Install GameMode
GameMode is available for many Linux distributions.
On Debian, Ubuntu, Linux Mint and other Deb-based systems:

Code: Select all

sudo apt install gamemode
Activate GameMode support to improve Gaming Performance on Linux
Here are the list of games with GameMode integration, so we need not to do any additional configuration to activate GameMode support.
  • Rise of the Tomb Raider
  • Total War Saga: Thrones of Britannia
  • Total War: WARHAMMER II
  • DiRT 4
  • Total War: Three Kingdoms
Simply run these games and GameMode support will be enabled automatically.

There is also an extension is available to integrate GameMode support with GNOME shell. It indicates when GameMode is active in the top panel.

For other games, you may need to manually request GameMode support like below.

Code: Select all

gamemoderun ./game
Or edit the Steam launch options:

Code: Select all

gamemoderun %command%
MX USERS

Code: Select all

dpkg -s gamemode | grep -i version

Code: Select all

Version: 1.2-6
Note: for older versions of GameMode (before 1.3) use this string in place of gamemoderun:

Code: Select all

LD_PRELOAD="$LD_PRELOAD:/usr/\$LIB/libgamemodeauto.so.0" firefox
Please note the backslash here in \$LIB is required.


example/gamemode.ini

NB: Can of course be coupled with other libs
e.g:

Code: Select all

LD_PRELOAD="$LD_PRELOAD:/usr/\$LIB/x86_64-linux-gnu/libpthread.so.0 /usr/\$LIB/x86_64-linux-gnu/libGL.so.1 /usr/\$LIB/x86_64-linux-gnu/libgamemodeauto.so.0" eatmydata gimp

Now juste enjoy.



mod note: image changed to link, please mind remote linked image sizes: viewtopic.php?p=255061#p255061
My tutorials
Sorry by advance for my english, I'm french.
Image "They didn't know it was impossible, so they did it." - Mark Twain

Return to “Tips & Tricks by users”