launcher: GameMode, MangoHud and dedicated GPU switches on Linux
The Launch panel shows, per instance, a switch for each one this computer has: GameMode when gamemoderun is on the PATH, MangoHud when mangohud is, and the dedicated graphics card with two cards (DRI_PRIME, or NVIDIA's render offload variables with its driver). They wrap the game like the wrapper does, outermost first, and do nothing where the tool is gone. CLI and MCP: instance launch --gamemode/--mangohud/--dedicated-gpu. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -366,7 +366,7 @@ MCP: `instance_export`.
|
||||
|
||||
## `horizon-launcher instance launch`
|
||||
|
||||
Show or set what runs around an instance's game: a shell command before it (the game starts only if it succeeds), a wrapper it runs through (`nice -n 5`), and environment variables ("NAME=value NAME2=value"). An empty value clears one.
|
||||
Show or set what runs around an instance's game: a shell command before it (the game starts only if it succeeds), a wrapper it runs through (`nice -n 5`), and environment variables ("NAME=value NAME2=value"). An empty value clears one. On Linux, also GameMode, MangoHud and the dedicated graphics card, when the computer has them.
|
||||
|
||||
horizon-launcher instance launch <INSTANCE>
|
||||
|
||||
@@ -374,6 +374,9 @@ Show or set what runs around an instance's game: a shell command before it (the
|
||||
- `--pre-launch`
|
||||
- `--wrapper`
|
||||
- `--env`
|
||||
- `--gamemode`: Linux: run it through GameMode (gamemoderun), on or off
|
||||
- `--mangohud`: Linux: MangoHud's overlay, on or off
|
||||
- `--dedicated-gpu`: Linux: the dedicated graphics card (DRI_PRIME, or NVIDIA's offload), on or off
|
||||
|
||||
MCP: `instance_launch`, needs `confirm: true`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user