Gamemode

提供: ArchWiki
2021年12月28日 (火) 20:54時点におけるKusanaginoturugi (トーク | 投稿記録)による版 (一部飜訳)
ナビゲーションに移動 検索に移動

Gamemode は Linux 用のデーモン/ライブラリの組み合わせで、ゲームがホスト OS やゲームプロセスに最適化のセットを一時的に適用することを要求できるようにするものです。

インストール

gamemodelib32-gamemodeインストールします。

設定

Create and configure a gamemode.ini file. An example gamemode.ini file can be found here. Save it in /etc/, $HOME/.config/ or /usr/share/gamemode/.

You may want to make sure that desiredgov is set to performance and maybe increase the renice to 10 or so for higher priority for your game.

Note that this package comes with a drop-in file etc/security/limits.d/10-gamemode.conf that allows for the renicing feature to work. If you wish to use to have gamemode renice game processes, you will want to create and join the gamemode group.

Usage

To run games with gamemode start it like this:

$ gamemoderun ./game

When you have started your game you can verify that gamemode is running with the command:

$ gamemoded -s
ノート: The gamemoded.service user unit is started on demand by dbus [1].

Steam

To make sure Steam starts a game with gamemode, right click the game, select Properties..., then Launch Options and enter:

gamemoderun %command%