From ffea085396499e24b288471b418dff6c90ba5c13 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Tue, 16 Jul 2019 08:17:35 +0100 Subject: [PATCH] Follow up improvements to documentation for GAMEMODERUNEXEC --- README.md | 7 ++++--- data/gamemoded.8.in | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 244db63..7bf5926 100644 --- a/README.md +++ b/README.md @@ -50,9 +50,10 @@ Config files are loaded and merged from the following directories, in order: --- ## Note for Hybrid GPU users -It's not possible to integrate commands like optirun automatically inside GameMode, since GameMode only starts if the game is already started. -However it is possible to use a hybrid GPU wrapper like optirun by starting the game with gamemoderun. -You can do this by setting the environment variable `GAMEMODERUNEXEC` to your wrapper's launch command, so for example `GAMEMODERUNEXEC=optirun` or `GAMEMODERUN="env DRI_PRIME=1"`. +It's not possible to integrate commands like optirun automatically inside GameMode, since the GameMode request is made once the game has already started. However it is possible to use a hybrid GPU wrapper like optirun by starting the game with `gamemoderun`. + +You can do this by setting the environment variable `GAMEMODERUNEXEC` to your wrapper's launch command, so for example `GAMEMODERUNEXEC=optirun` or `GAMEMODERUNEXEC="env DRI_PRIME=1"`. This environment variable can be set globally, so that the same prefix command does not have to be duplicated everywhere you want to use `gamemoderun`. + GameMode will not be injected to the wrapper. --- diff --git a/data/gamemoded.8.in b/data/gamemoded.8.in index 9a84794..e3e83a7 100644 --- a/data/gamemoded.8.in +++ b/data/gamemoded.8.in @@ -44,7 +44,7 @@ Print the version gamemoderun \./game .RE -Or by setting the steam launch options for a game: +Or by setting the Steam launch options for a game: .RS 4 gamemoderun %command% @@ -62,6 +62,8 @@ It is possible to set additional start commands to gamemoderun by setting the en GAMEMODERUNEXEC="command" .RE +When this is set, gamemoderun will execute the command given by that environment variable, and the command line passed to gamemoderun will be passed as arguments to that command. GameMode will not be applied to the wrapper command, just the game itself. + The \fBgamemode_client.h\fR header can be used by developers to build the requests into a program: .RS 4