ValveSoftware / Proton

Compatibility tool for Steam Play based on Wine and additional components
Other
24.28k stars 1.06k forks source link

Support for Feral GameMode #622

Open kakra opened 6 years ago

kakra commented 6 years ago

I'd like to see Feral GameMode automatically enabled for Proton-driven games if it's installed. Would it be easy to do?

It should be as simple as adjusting LD_PRELOAD if the library is somewhere in the search path: https://github.com/FeralInteractive/gamemode/blob/master/README.md

omicron-b commented 6 years ago

Just curious: why not for all games, implemented in Steam for Linux client? I can guess not everyone wants higher power consumption on their laptop in any Steam game if somebody installed it just for one or two games, but Proton-driven game could be Quake or Ultimate Doom, not sure you are going to benefit from performance mode in those.

dragonfly-lover commented 6 years ago

There should be a flag in per-game setting to set/unset game mode (both native and Proton) like there is for steam overlay. Some games like mekazoo, yooka & laylee (native) or Pes 2018 (Proton) suffer of microstuttering

kakra commented 6 years ago

The newer Feral Linux titles have this mode included. It will be used if the daemon is running, otherwise not. So you decide whether you want it by either installing and running the daemon or not. The daemon can have titles blacklisted that are known to not work with it.

For titles that already include it natively, there's no point in having a per-game setting in Steam. OTOH, Proton titles probably cannot include it for technical reasons, so it makes sense to preload the lib from Steam by default.

A per-game setting would only make sense if Steam could somehow interface with the daemon to turn it on or off during starting the game, at least when titles continue/adapt to load the gamemode library on their own.

Proton-driven titles could need another tweak which is not yet in Proton: The wineserver process should run with high realtime priority. There's a staging patch which includes it and which I put into my own wine build. But I'm not sure which titles profit from Proton's esync, so I had no chance to check how this staging patch interacts with esync. Maybe with esync it isn't needed at all.

kakra commented 6 years ago

@dragonfly-lover wrote:

There should be a flag in per-game setting to set/unset game mode (both native and Proton) like there is for steam overlay. Some games like mekazoo, yooka & laylee (native) or Pes 2018 (Proton) suffer of microstuttering

If this microstuttering is related to using gamemode, you may want to report it to the gamemode project.

regulator-g commented 5 years ago

Hi guys If the user has gamemode installed, enable it for all titles and maybe add a checkbox with the option to disable it under the games settings

I have a feeling valve is working on their own version of gamemode..

jqadev commented 3 years ago

@ivyl @smcv @kisak-valve @kakra do you know if GameMode will be used by default on Steam Deck to run games?

CC @LiamDawe