It’s in apt, it’s also available as a checkbox in Lutris & Heroic. I suppose it could also be squirted into the launch %command% of a linux-native Steam game? If the game is running in Steam, in Proton, then I don’t see how gamemode could sneak in there.