Add hybrid GPU support

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:
Stephan Lachnit
2019-07-14 16:45:33 +02:00
parent c7c464bea6
commit 47db83e509
3 changed files with 16 additions and 2 deletions

View File

@@ -47,6 +47,14 @@ Config files are loaded and merged from the following directories, in order:
3. `$XDG_CONFIG_HOME` or `$HOME/.config/`
4. `$PWD`
---
## 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"`.
GameMode will not be injected to the wrapper.
---
## Apps with GameMode integration