1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-10-01 12:30:00 +02:00
Ryujinx/distribution
subanz 7bc9d0cdad
Linux: Use gamemode if it is available when using Ryujinx.sh. (#4938)
* Linux: Detect if gamemode is installed and start it when launching Ryujinx.

When using the Ryujinx.sh script to start the emulator check if gamemoderun exists and use it if it does.

Gamemode mode on Linux changes some system settings to make performance during gaming more consistent mainly by changing the CPU governor to performance.

https://github.com/FeralInteractive/gamemode

* Removed if statement.

* Fix due to wrong assumption about the output of which.

Checks if the which output contains a no match response, otherwise use gamemoderun.

Using a case statement because it makes substring matching possible in sh and also it turns out that adding an empty string after env throws an error because env attempts to parse it as a paramater.

* Missed a couple semicolons.

* Different approach for checking if gamemode is available.

Should hopefully work across all implementations of which.

* Remove unneeded which command.

* Change code to keep launch command to a single line.
2023-05-28 23:54:22 +02:00
..
legal Avalonia UI - Part 1 (#3270) 2022-05-15 13:30:15 +02:00
linux Linux: Use gamemode if it is available when using Ryujinx.sh. (#4938) 2023-05-28 23:54:22 +02:00
macos Improve macOS updater (#5064) 2023-05-28 22:54:30 +02:00
misc Include a start.sh file with correct launch options (#4013) 2023-01-07 09:06:13 +01:00
windows Avalonia UI - Part 1 (#3270) 2022-05-15 13:30:15 +02:00