Jump to content

GameMode: Difference between revisions

100 bytes added ,  29 September 2023
m
Fixed syntax highlighting
imported>Kira-bruneau
No edit summary
imported>IgorM
m (Fixed syntax highlighting)
Line 11: Line 11:
To run games with GameMode start it like this:
To run games with GameMode start it like this:


<syntaxhighlight>
<syntaxhighlight lang=console>
gamemoderun ./game
$ gamemoderun ./game
</syntaxhighlight>
</syntaxhighlight>


When you have started your game you can verify that GameMode is running with the command:
When you have started your game you can verify that GameMode is running with the command:
<syntaxhighlight>
<syntaxhighlight lang=console>
gamemoded -s
$ gamemoded -s
</syntaxhighlight>
</syntaxhighlight>


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


<syntaxhighlight>
<syntaxhighlight lang=text>
gamemoderun %command%
gamemoderun %command%
</syntaxhighlight>
</syntaxhighlight>
Line 29: Line 29:
== Verifying Optimisations ==
== Verifying Optimisations ==
<code>gamemoded -t</code> can be used to verify that the optimisations for your configuration get applied:
<code>gamemoded -t</code> can be used to verify that the optimisations for your configuration get applied:
<syntaxhighlight>
<syntaxhighlight lang = console>
$ gamemoded -t
: Loading config
: Loading config
Loading config file [/nix/store/p8dbmpdak57psrb5c0mz7crsc95nfzs6-gamemode-1.6.1/share/gamemode/gamemode.ini]
Loading config file [/nix/store/p8dbmpdak57psrb5c0mz7crsc95nfzs6-gamemode-1.6.1/share/gamemode/gamemode.ini]
Line 76: Line 77:
Renice & ioprio optimisations sometimes fail. This is caused by GameMode trying to apply optimisations on processes that exit before the optimisations can be applied. See [https://github.com/FeralInteractive/gamemode/issues/167#issuecomment-524277666 FeralInteractive/gamemode#167 (comment)].
Renice & ioprio optimisations sometimes fail. This is caused by GameMode trying to apply optimisations on processes that exit before the optimisations can be applied. See [https://github.com/FeralInteractive/gamemode/issues/167#issuecomment-524277666 FeralInteractive/gamemode#167 (comment)].


<syntaxhighlight>
<syntaxhighlight lang=text>
ERROR: Could not inspect tasks for client [329118]! Skipping ioprio optimisation.
ERROR: Could not inspect tasks for client [329118]! Skipping ioprio optimisation.
ERROR: Refused to renice client [31477,31477]: prio was (-10) but we expected (0)
ERROR: Refused to renice client [31477,31477]: prio was (-10) but we expected (0)
Line 83: Line 84:
If you don't have an Intel CPU, you will get errors about failing to read the energy levels. This isn't a real problem. It just means that optimizations for integrated graphics cards won't be enabled:
If you don't have an Intel CPU, you will get errors about failing to read the energy levels. This isn't a real problem. It just means that optimizations for integrated graphics cards won't be enabled:


<syntaxhighlight>
<syntaxhighlight lang=text>
ERROR: Failed to open file for read /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:0/energy_uj
ERROR: Failed to open file for read /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:0/energy_uj
</syntaxhighlight>
</syntaxhighlight>


If you don't have a screensaver installed, you will get the following error:
If you don't have a screensaver installed, you will get the following error:
<syntaxhighlight>
<syntaxhighlight lang=text>
ERROR: Could not call Inhibit on org.freedesktop.ScreenSaver: No route to host
ERROR: Could not call Inhibit on org.freedesktop.ScreenSaver: No route to host
         org.freedesktop.DBus.Error.ServiceUnknown
         org.freedesktop.DBus.Error.ServiceUnknown
Anonymous user