コンテンツにスキップ

「MangoHud」の版間の差分

提供: ArchWiki
削除された内容 追加された内容
Kgx (トーク | 投稿記録)
英語版から転載
 
Kgx (トーク | 投稿記録)
 
(同じ利用者による、間の3版が非表示)
5行目: 5行目:
{{Related articles end}}
{{Related articles end}}


[https://github.com/flightlessmango/MangoHud MangoHud] は、アプリケーション内でシステムのパフォーマンスを監視し、[[ベンチマーク]] のメトリクスを記録するための [[Vulkan]] および [[OpenGL]] オーバーレイです。
[https://github.com/flightlessmango/MangoHud MangoHud] is a [[Vulkan]] and [[OpenGL]] overlay for monitoring system performance while inside applications and to record metrics for [[benchmarking]].


== Installation ==
== インストール ==


次のいずれかを [[インストール]]:
[[Install]] one of the following:


* {{Pkg|mangohud}} - Latest release from upstream.
* {{Pkg|mangohud}} - 上流からの最新リリース。
* {{AUR|mangohud-git}} - Latest commit to master.
* {{AUR|mangohud-git}} - マスターへの最新のコミット。


== Configuration ==
== 設定 ==


MangoHud は次のファイルを介して設定され、次の順序で読み取られます。
MangoHud is configured via the following files, which are read in the following order:


# {{ic|$XDG_CONFIG_HOME/MangoHud/MangoHud.conf}}
# {{ic|$XDG_CONFIG_HOME/MangoHud/MangoHud.conf}}
# {{ic|$XDG_CONFIG_HOME/MangoHud/APPLICATION-NAME.conf}} (case-sensitive)
# {{ic|$XDG_CONFIG_HOME/MangoHud/APPLICATION-NAME.conf}} (大文字と小文字を区別)
# {{ic|$XDG_CONFIG_HOME/MangoHud/wine-APPLICATION-NAME.conf}} (for [[Wine]] applications, case-sensitive, without the {{ic|.exe}} extension)
# {{ic|$XDG_CONFIG_HOME/MangoHud/wine-APPLICATION-NAME.conf}} ([[Wine]] アプリケーションの場合、大文字と小文字が区別され、{{ic|.exe}} 拡張子は付きません)
# {{ic|./MangoHud.conf}}
# {{ic|./MangoHud.conf}}
# {{ic|$MANGOHUD_CONFIGFILE}} (via [[environment variables]])
# {{ic|$MANGOHUD_CONFIGFILE}} ([[環境変数]] 経由)


{{Tip|An example configuration file with comments can be found [https://raw.githubusercontent.com/flightlessmango/MangoHud/master/data/MangoHud.conf in the project's repository].}}
{{Tip|コメント付きの設定ファイルの例は、[https://raw.githubusercontent.com/flightlessmango/MangoHud/master/data/MangoHud.conf プロジェクトのリポジトリにあります。]}}


=== GUI for configuration ===
=== GUI で設定 ===


MangoHud を設定するための GUI は、{{Aur|goverlay}} からインストールできます。
A GUI for configuring MangoHud can be installed from {{Aur|goverlay}}.


== Usage ==
== 使い方 ==


=== Test configuration ===
=== テスト設定 ===


プログラムが正しくセットアップされているかどうかを確認します。
Verify if the program has been setup correctly:


$ mangohud glxgears
$ mangohud glxgears
$ mangohud vkcube
$ mangohud vkcube


=== 単一のゲームを実行する ===
=== Run a single game ===


MangoHud でゲームを実行するには、次のように開始します。
To run a game with MangoHud start it like this:


$ mangohud ''game''
$ mangohud ''game''


==== Dynamic hooking ====
==== ダイナミックフッキング ====


特定のアプリケーションでは特殊なタイプのフックが必要な場合があります。これは、{{ic|--dlsym}} パラメータまたは {{ic|MANGOHUD_DLSYM}} [[環境変数]] で指定できます。
Certain applications may require a special type of hooking, which can be specified via the {{ic|--dlsym}} parameter or the {{ic|MANGOHUD_DLSYM}} [[environment variable]]:


$ mangohud --dlsym ''game''
$ mangohud --dlsym ''game''


==== Use with Gamemode ====
==== gamemode で使用する ====


MangoHud と [[gamemode]] の両方でゲームを起動するには、次のように 2 つのコマンドを 1 つのコマンドにチェーンします。
To launch a game with both MangoHud and [[gamemode]], chain the two commands into a single one, like this:


$ mangohud gamemoderun ''game''
$ mangohud gamemoderun ''game''


=== Run a single steam game ===
=== 単一の Steam ゲームを実行する ===


[[Steam]] に MangoHud でゲームを開始させるには、''ライブラリ'' でゲームを右クリックし、''プロパティ...'' を選択して、''起動オプション'' テキストボックスに次のように入力します。
To make [[Steam]] start a game with MangoHud, right click the game in the ''Library'', select ''Properties...'', then in the ''Launch Options'' text box enter:


mangohud %command%
mangohud %command%


=== Run Steam with MangoHud ===
=== MangoHud で Steam を実行する ===


すべてのゲームの起動オプションを変更する必要がないようにするには、MangoHud を使用して [[Steam]] を直接起動することができます。
To avoid having to change launch options for all games, you may launch [[Steam]] directly with MangoHud:


$ mangohud steam-runtime
$ mangohud steam-runtime


MangoHud は Steam を検出し、ゲームが起動されるまでロード自体を回避します。
MangoHud will detect Steam and will avoid loading itself until a game is launched.


=== Enable for all Vulkan games ===
=== すべての Vulkan ゲームで有効にする ===


MangoHud がすべての [[Vulkan]] ゲームで自動的に起動するようにするには、次の [[環境変数]] を設定します。
To make MangoHud automatically launch with all [[Vulkan]] games, it is possible to set the following [[environment variable]]:


MANGOHUD=1
MANGOHUD=1

2023年10月3日 (火) 19:02時点における最新版

関連記事

MangoHud は、アプリケーション内でシステムのパフォーマンスを監視し、ベンチマーク のメトリクスを記録するための Vulkan および OpenGL オーバーレイです。

インストール

次のいずれかを インストール:

  • mangohud - 上流からの最新リリース。
  • mangohud-gitAUR - マスターへの最新のコミット。

設定

MangoHud は次のファイルを介して設定され、次の順序で読み取られます。

  1. $XDG_CONFIG_HOME/MangoHud/MangoHud.conf
  2. $XDG_CONFIG_HOME/MangoHud/APPLICATION-NAME.conf (大文字と小文字を区別)
  3. $XDG_CONFIG_HOME/MangoHud/wine-APPLICATION-NAME.conf (Wine アプリケーションの場合、大文字と小文字が区別され、.exe 拡張子は付きません)
  4. ./MangoHud.conf
  5. $MANGOHUD_CONFIGFILE (環境変数 経由)
ヒント コメント付きの設定ファイルの例は、プロジェクトのリポジトリにあります。

GUI で設定

MangoHud を設定するための GUI は、goverlayAUR からインストールできます。

使い方

テスト設定

プログラムが正しくセットアップされているかどうかを確認します。

$ mangohud glxgears
$ mangohud vkcube

単一のゲームを実行する

MangoHud でゲームを実行するには、次のように開始します。

$ mangohud game

ダイナミックフッキング

特定のアプリケーションでは特殊なタイプのフックが必要な場合があります。これは、--dlsym パラメータまたは MANGOHUD_DLSYM 環境変数 で指定できます。

$ mangohud --dlsym game

gamemode で使用する

MangoHud と gamemode の両方でゲームを起動するには、次のように 2 つのコマンドを 1 つのコマンドにチェーンします。

$ mangohud gamemoderun game

単一の Steam ゲームを実行する

Steam に MangoHud でゲームを開始させるには、ライブラリ でゲームを右クリックし、プロパティ... を選択して、起動オプション テキストボックスに次のように入力します。

mangohud %command%

MangoHud で Steam を実行する

すべてのゲームの起動オプションを変更する必要がないようにするには、MangoHud を使用して Steam を直接起動することができます。

$ mangohud steam-runtime

MangoHud は Steam を検出し、ゲームが起動されるまでロード自体を回避します。

すべての Vulkan ゲームで有効にする

MangoHud がすべての Vulkan ゲームで自動的に起動するようにするには、次の 環境変数 を設定します。

MANGOHUD=1