Hide Forgot
Description of problem: For some games I see warning "Current CPU governor may impact performance" even when package gamemode is installed Version-Release number of selected component (if applicable): # rpm -q gamemode gamemode-1.3-1.fc31.x86_64 How reproducible: Reproducible every time . Steps to Reproduce: 1. Just launch the game "Rise of the Tomb Raider" from steam launcher. 2. 3. Expected results: No "Current CPU governor may impact performance" warning when I launch the game. Additional info: The other Feral game "DiRT 4" not affected and with installed gamemode not show this warning.
Created attachment 1550887 [details] screenshot
Looking at the Fedora package contents, it seems there isn't an unversioned library link for the client library (should have /usr/lib*/libgamemode.so linked to libgamemode.so.0). Before we started using versioned libraries in GameMode (https://github.com/FeralInteractive/gamemode/commit/77d4d0ad237ecb28f772fce979b5126c42cf338f), the client header only attempted to dlopen libgamemode.so, rather than trying libgamemode.so.0 first. Rise of the Tomb Raider was compiled against that older header, so without libgamemode.so, it won't make a request to GameMode. A libgamemode.so link is created when installing from source so I think this is an issue with the Fedora packages.
As per the packaging guidelines the ("unversioned") libgaemmode.so is in the -devel package (i.e. gamemode-devel). @Alex, I guess there is no plan to update the "Rise of the Tomb Raider" (or there any other games?) to use the versioned one? I am tempted to move the libgamemode.so link from the -devel package to the main package. For the time being installing the gamemode-devel package is a work-around that should make it work.
From us, Total War: Thrones of Britannia is also affected. No plans for patches to either game right now unfortunately.
Ok, I have consulted a few others (Bastien, Richard, Peter) and the consensus was that this is unfortunate; and we are just going to ship the libgamemode*.so in the main package for the time being. Alex, it would be great if the games could maybe be updated eventually so we don't have to have that work-around forever ;) Build is here: https://koji.fedoraproject.org/koji/buildinfo?buildID=1246712