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

@ -56,6 +56,12 @@ The library can be manually preloaded if needed:
LD_PRELOAD=$LD_PRELOAD:/usr/\e$LIB/libgamemodeauto.so.0 ./game
.RE
It is possible to set additional start commands to gamemoderun by setting the environment variable:
.RS 4
GAMEMODERUNEXEC="command"
.RE
The \fBgamemode_client.h\fR header can be used by developers to build the requests into a program:
.RS 4

View File

@ -5,6 +5,6 @@
# appropriate path depending on whether the app is 32- or 64-bit.
GAMEMODEAUTO="@GAMEMODE_PREFIX@/\$LIB/libgamemodeauto.so.0"
export LD_PRELOAD="${GAMEMODEAUTO}${LD_PRELOAD:+:$LD_PRELOAD}"
LD_PRELOAD="${GAMEMODEAUTO}${LD_PRELOAD:+:$LD_PRELOAD}"
exec "$@"
exec $GAMEMODERUNEXEC env LD_PRELOAD="${LD_PRELOAD}" "$@"