Add GameMode support for Linux build #796
Loading…
Reference in a new issue
No description provided.
Delete branch "linux-gamemode"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR would integrate FeralInteractive's GameMode support into Cemu, adding a setting that would allow gamemode to start automatically when Cemu runs.
Mentioned in #790, this could give a minor boost in performance to those with lower-spec computers.
src/gui/CMakeLists.txt
Thanks!
Imho it's more robust to check if
ENABLE_FERAL_GAMEMODE
is defined instead of checking if the value is non-zero since it's not assigned an explicit value.Thanks for implementing this @rluxv!
I haven't tested this yet but I do have some thoughts:
CemuConfig.cpp/h
andGeneralSettings2.cpp/h
Hey!
Thanks!
Is
gamemode
(the daemon package on distros) actually a build dep?Does this start gamemode when Cemu starts? It should ideally only start gamemode when a game is loaded (and in the future when Cemu can stop emulation, it should stop gamemode as well).
After some testing it seems like gamemode doesn't need to be installed to build (I had originally put it there just to be on the safe side). I'll revert the changes I made regarding that.
Yes, it starts gamemode when Cemu starts. I can update it so it starts only when you start a game but I'm not sure if that's necessary until Cemu can also stop emulation.
If you're able to update it I think it would be a good idea to make that change sooner rather than later to ensure it doesn't get accidentally forgotten about.
Sure. Working on that now.
I tested
8b17d3e
, works as expected. With this change, I guess the tooltip shouldn't say a restart is required?That would be correct, I'll update that.
Looks good to me! Thanks for implementing this