added info about overclocking (#49)

* added info about overclocking
This commit is contained in:
Alex Smith-Fanning 2018-05-11 09:12:25 -05:00 committed by Marc Di Luzio
parent d9072607d9
commit 2c68ae67e6

View File

@ -14,14 +14,22 @@ If your distribution already has GameMode packaged, it is preferable to install
GameMode depends on `meson` for building and `systemd` for internal communication. This repo contains a `bootstrap.sh` script to allow for quick install to the user bus, but check `meson_options.txt` for custom settings. GameMode depends on `meson` for building and `systemd` for internal communication. This repo contains a `bootstrap.sh` script to allow for quick install to the user bus, but check `meson_options.txt` for custom settings.
#### Ubuntu/Debian (you may also need `dbus-user-session`)
```bash ```bash
# Ubuntu/Debian (you may also need dbus-user-session)
apt install meson libsystemd-dev pkg-config ninja-build git apt install meson libsystemd-dev pkg-config ninja-build git
# Arch ```
#### Arch
```bash
pacman -S meson systemd git pacman -S meson systemd git
# Fedora ```
#### Fedora
```bash
dnf install meson systemd-devel pkg-config git dnf install meson systemd-devel pkg-config git
```
Then clone, build and install GameMode:
```bash
git clone https://github.com/FeralInteractive/gamemode.git git clone https://github.com/FeralInteractive/gamemode.git
cd gamemode cd gamemode
git checkout 1.1 git checkout 1.1
@ -37,7 +45,7 @@ After installing `libgamemodeauto.so` simply preload it into the game:
LD_PRELOAD=/usr/\$LIB/libgamemodeauto.so ./game LD_PRELOAD=/usr/\$LIB/libgamemodeauto.so ./game
``` ```
Or edit the steam launch options: Or edit the steam launch options:
``` ```bash
LD_PRELOAD=$LD_PRELOAD:/usr/\$LIB/libgamemodeauto.so %command% LD_PRELOAD=$LD_PRELOAD:/usr/\$LIB/libgamemodeauto.so %command%
``` ```
Please note the backslash here in `\$LIB` is required. Please note the backslash here in `\$LIB` is required.
@ -90,11 +98,19 @@ Config files are loaded and merged from the following directories, in order:
The file parsing uses [inih](https://github.com/benhoyt/inih). The file parsing uses [inih](https://github.com/benhoyt/inih).
---
## For those with overclocked CPUs
If you have an AMD CPU and have disabled Cool'n'Quiet, or you have an Intel CPU and have disabled SpeedStep, then GameMode's governor settings will not work, as your CPU is not running with a governor. You are already getting maximum performance.
If you are unsure, `bootstrap.sh` will warn you if your system lacks CPU governor control.
Scripts and other features will still work.
--- ---
## Contributions ## Contributions
### Pull Requests ### Pull Requests
Pull requests must match with the coding style found in the `.clang-format` file, please run this before commiting: Pull requests must match with the coding style found in the `.clang-format` file, please run this before committing:
``` ```
clang-format -i $(find . -name '*.[ch]' -not -path "*subprojects/*") clang-format -i $(find . -name '*.[ch]' -not -path "*subprojects/*")
``` ```