FERAL GAMEMODE ON EL8 & FEDORA
Feral Interactive produced a very slick tool for reconfiguring on the fly your system to be better suited for running games. From their Github page:
"GameMode is a daemon/lib combo for Linux that allows games to request a set of optimisations be temporarily applied to the host OS and/or a game process. GameMode was designed primarily as a stop-gap solution to problems with the Intel and AMD CPU powersave or ondemand governors, but is now host to a range of optimisation features and configurations."
INSTALLATION
On EL8, you will need EPEL8 repository installed:
sudo dnf install epel-release
For Fedora and EL8, you can then install gamemode via:
sudo dnf install gamemode.{i686,x86_64}
And on Fedora you can install the GNOME-Shell extension via:
sudo dnf install gnome-shell-extension-gamemode
CONFIGURATION
There is no stock config file, which will create a problem if you try to run a game with gamemoderun or via Lutris. Creating a config is quite easy. There is a sample config that should get you started on %99 of what you can ever possibly need over on the github page. Copy and paste all the contents into a new file, saved as ~/.config/gamemode.ini
INVOCATION OF GAMEMODE
Gamemode should be invoked when starting your game. Three scenarios exist that you will encounter, and each have a simple way of starting the game with gamemode support.
CLI
To launch a game from the CLI is simply:
gamemoderun $GAME_EXECUTABLE_NAME
LUTRIS
Lutris has had for some time now native Gamemode support. In Lutris, right click on a game you want to add support for and select "Configure -> System Options tab -> Scroll down to Enable Feral Gamemode". You can enable/disable it there.
STEAM
You can globally enable Gamemode by launching Steam itself with "gamemoderun steam" on the CLI. Or you can create a custom launcher for Steam to do it. Or you can alias "steam" to be "gamemoderun steam". Those are more complicated or prone to breakage. The easy way to enable gamemode is in the game's launch options. Just add as the launch option "gamemoderun %command%". Done for that title.