gamemode...ate-game(1)

✨ gamemode-simulate-game(1) ✨

okay bestie, so this is section 1 of the manual, and it's literally called gamemode-simulate-game β€” say that five times fast πŸ’…


🌸 NAME 🌸

gamemode-simulate-game β€” it simulates a game using gamemode. that's it. that's the whole job description πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

gamemode-simulate-game

no flags. no args. no drama. she just goes ✨


πŸ’– DESCRIPTION πŸ’–

okay so first things first: GameMode is a daemon/lib combo for Linux that lets games request a set of optimisations be temporarily applied to the host OS. like, "hey queen, borrow the CPU for a sec" energy πŸ‘‘

the design has a very clear-cut abstraction between:

  • the host daemon and library β€” that's gamemoded and libgamemode 🫢
  • the client loaders β€” that's libgamemodeauto and gamemode_client.h 🌈

and the whole point of that split? it allows for safe usage without you ever having to worry about whether the daemon is installed or running. no cap. that's the flex πŸ’…

this design also means that while the host library currently relies on systemd for exchanging messages with the daemon, it's entirely possible to implement other internals that still work with the same clients. future-proofing? she invented it ⭐

GameMode was designed primarily as a stop-gap solution to problems with the Intel and AMD CPU powersave or ondemand governors. but bestie, she was never meant to stay in that lane β€” it's intended to be expanded beyond just CPU governor states, because there are a wealth of automation tasks one might want to apply. the potential? astronomical πŸ”₯


πŸŽ€ USAGE πŸŽ€

here's the whole vibe: the executable starts gamemode, sleeps for 10 seconds, and stops it. like a lil nap break in the middle 😴

  • it will exit with zero if everything works fine ✨
  • else it will print an error and exit with one πŸ’€
if you're using this with a CI, you might need to start a dbus session by hand. you can do that with:
dbus-run-session -- gamemode-simulate-game
⚠️ note that this might output to stderr, even if it exits with zero. so don't come for her over a little stderr noise, she's fine fr fr 🫢

🧚 SEE ALSO 🧚

go read those too, iykyk πŸ“š


🌈 ABOUT 🌈

the GameMode source can be found at:

https://github.com/FeralInteractive/gamemode.git

go star it, she deserves it β­πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Feral Interactive (linux-contact@feralinteractive.com)


and that's the whole page bestie!! this was version 1.8.2, dated 26 May 2020, and yes it's a gamemode-simulate-game man page, section 1, and i'm obsessed with her πŸ’–βœ¨πŸŽ€πŸ¦‹ bye!!

πŸ“¦ where this page comes from