Initial 0.1 commit

This is a small daemon/libary to enable games to request a
performance "game mode" from the system.

Currently only implemented to upgrade the CPU governor and
automatically downgrade it once done.

A game only needs to load libgamemodeauto to activate the request.
Which means an LD_PRELOAD can be applied to any game to activate
the mode as needed.

However gamemode_client.h can be used to manually activate/deactivate
the mode as needed, and also perform error checking.

The libs are miminal loaders to call into an installed libgamemode
which, if the daemon is installed and running, will send through
the equivelant game mode request, and magic will happen.

See the README.md for more details.

Currently licensed under the BSD 3 clause license.
This commit is contained in:
Marc Di Luzio
2017-12-11 11:26:59 +00:00
commit c459c05076
23 changed files with 1621 additions and 0 deletions

5
data/cpugovctl_perms.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
# Allow cpugovctl to control the governors
chmod +4555 ${MESON_INSTALL_PREFIX}/bin/cpugovctl

10
data/gamemoded.service Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=gamemoded
[Service]
Type=dbus
BusName=com.feralinteractive.GameMode
ExecStart=/usr/bin/gamemoded -l
[Install]
WantedBy=default.target