Gamescope

提供: ArchWiki
2023年5月8日 (月) 17:23時点におけるKusanaginoturugi (トーク | 投稿記録)による版 (→‎Through Flatpak: 飜訳)
ナビゲーションに移動 検索に移動

Gamescope は、Steam Deck で使用される Valve が開発したマイクロコンポジタです。その目的は、ゲームに特化したアイソレートされたコンポジタを提供し、以下のようなゲームに特化した機能をサポートすることです。

  • 解像度のスプーフィング
  • AMD FidelityFX™ Super Resolution や NVIDIA Image Scaling を使ったアップスケーリング
  • フレームレートの制限

マイクロコンポジタとして、既存のデスクトップ環境の上にネストされたセッションとして実行するよう設計されていますが、埋め込みコンポジタとしても使用することができます。

現在、Wayland クライアントのネイティブサポートはありません [1]。Wayland セッションでは、XWayland を使用します。

インストール

Gamescope は、gamescope パッケージ(または gamescope-gitAUR パッケージ)でインストールできます。さらに、メインラインビルドには含まれていない追加のパッチが含まれた gamescope-plusAUR もあります。

要件

  • AMD:Mesa 20.3 以上
  • Intel:Mesa 21.2 以上
  • NVIDIA:プロプライエタリドライバー 515.43.04 以上、および nvidia-drm.modeset=1 カーネルパラメータ

使用方法

Gamescope には多くのオプションがありますが、ここではすべてをカバーすることはできません。完全なリストを表示するには、ターミナルから gamescope --help コマンドを使用してください。

デスクトップセッションから

以下のコマンドは、Gamescope を使用して supertuxkart を実行し、1920x1080 の解像度で 60 FPS を強制します。

$ gamescope -W 1920 -H 1080 -r 60 -- supertuxkart

Steamから

以下のコマンドを使用して、Steam を Big Picture Mode で Gamescope を使用して実行することができます。

$ gamescope -e -- steam -gamepadui
ノート: -e フラグは、Gamescope で Steam Integration を有効にするためのものです。

また、Steam から Gamescope を使用してゲームを実行するには、ゲームの起動オプションに以下を追加します。

gamescope -- %command%
ノート: Steam から起動する場合でも、解像度や FPS などのフラグを設定する必要があります。それ以外の場合、Gamescope は正しくない解像度で起動します。ターミナルと同じ方法でこれを行うことができます。例えば
gamescope -W 1920 -H 1080 -r 60 -- %command%

Wineから

Wine を介して Gamescope を使用してプログラムを実行するには、wine に続けて実行可能ファイルを指定してください。

$ gamescope -W 1920 -H 1080 -r 60 -- wine supertuxkart

ほとんどの人気のある Wine マネージャー(LutrisBottlesPlayOnLinux)は Gamescope をサポートしています。これらを使用するのは、必要な Gamescope パッケージをインストールし、「Gamescope を使用する」(または同様の)オプションをチェックするだけです。

ノート: Wine マネージャーは、基本的な Gamescope オプションを設定する GUI インターフェースを持つことが多いため、一般的には Gamescope を使用する最も簡単な方法です。

Through Flatpak

Flatpak 版の Wine マネージャーや Steam からも、パッケージインストールと同じ方法で Gamescope を使用できます。ただし、まず以下のコマンドで Flathub から Gamescope をインストールする必要があります。

$ flatpak install gamescope

Upscaling

The -U and -Y flags can be used to upscale games using AMD FidelityFX™ Super Resolution (FSR) or NVIDIA Image Scaling (NIS) respectively. You can also use -i for integer upscaling.

To upscale a 720p game to 1440p using FSR:

$ gamescope -h 720 -H 1440 -U -- supertuxkart

To run a game at 1080p internal resolution but display it at 4K using NIS:

$ gamescope -w 1920 -h 1080 -W 3840 -H 2160 -Y -- supertuxkart

HDR support

Gamescope is a requirement for HDR10 support when playing games, to make use of this feature you must launch your Gamescope session using the --hdr-enabled flag.

ノート: HDR support on Linux is still in its infancy and has many caveats. See HDR monitor support for details.

Troubleshooting

Switching to fullscreen causes low performance

This is a known bug when using Gamescopes fullscreen hotkey Meta+f, if you encounter this issue it can be worked around by using the fullscreen flag -f when launching the game.

Setting Gamescopes priority

Another known cause of low performance and/or stuttering is not having Gamescopes priority set correctly, you can tell this is the case if you see errors mentioning CAP_SYS_NICE in your terminal while Gamescope is running. The following command will fix this:

# setcap 'CAP_SYS_NICE=eip' $(which gamescope)

See Also