LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gamemoderun

Invoke a program with GameMode optimizations for better game performance

TLDR

Run a program with GameMode CPU and system optimizations enabled
$ gamemoderun ./mygame
copy
Run a game from Steam by setting launch options
$ gamemoderun %command%
copy
Run with a custom wrapper that receives the original command
$ GAMEMODERUNEXEC="env __GL_SYNC_TO_VBLANK=1" gamemoderun ./game
copy
Use a hybrid-GPU launcher via the same variable
$ GAMEMODERUNEXEC=optirun gamemoderun ./game
copy

SYNOPSIS

gamemoderun program [args...]

DESCRIPTION

gamemoderun is a helper that launches the given program under GameMode. GameMode is a daemon and library combination for Linux that requests temporary system optimizations (such as CPU governor changes, I/O priority, process niceness, screensaver inhibiting, GPU performance modes, and optional custom scripts) while a game or other performance-sensitive application is running.It works by preloading `libgamemodeauto.so.0`, which communicates with the `gamemoded` daemon. The design cleanly separates the client from the daemon so games can safely request mode without hard dependencies.gamemoderun is the recommended way to launch games that do not integrate the GameMode client library directly. It is commonly used in Steam launch options and desktop launchers.

PARAMETERS

gamemoderun itself takes no flags; it executes its arguments under GameMode via `LD_PRELOAD`.GAMEMODERUNEXEC

Environment variable. If set, gamemoderun runs this command (or command prefix) and passes the original program and arguments to it. Useful for hybrid-GPU wrappers (`optirun`, `env DRI_PRIME=1`, NVIDIA prime offload env) or other launch helpers. GameMode is injected into the final game process, not into the wrapper itself. May be set globally (e.g. in `/etc/environment`).

INSTALL

sudo dnf install gamemode
copy
sudo pacman -S gamemode
copy
sudo apk add gamemode
copy
sudo zypper install gamemode
copy
nix profile install nixpkgs#gamemode
copy

CAVEATS

GameMode optimizations are best-effort and depend on the host configuration and privileges. On some systems the CPU governor changes may be restricted. The daemon must be installed and running (or activatable via user service) for optimizations to apply; missing daemon still allows the game to start.

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid