[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6496":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":17,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":23,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},6496,"gamemode","FeralInteractive\u002Fgamemode","FeralInteractive","Optimise Linux system performance on demand",null,"C",5878,215,91,209,0,1,9,48,74.3,"BSD 3-Clause \"New\" or \"Revised\" License",false,"master",true,[25,26],"linux","videogames","2026-06-12 04:00:28","# GameMode\n**GameMode** is a daemon\u002Flib combo for Linux that allows games to request a set of optimisations be temporarily applied to the host OS and\u002For a game process.\n\nGameMode was designed primarily as a stop-gap solution to problems with the Intel and AMD CPU powersave or ondemand governors, but is now host to a range of optimisation features and configurations.\n\nCurrently GameMode includes support for optimisations including:\n* CPU governor\n* I\u002FO priority\n* Process niceness\n* Kernel scheduler (`SCHED_ISO`)\n* Screensaver inhibiting\n* GPU performance mode (NVIDIA and AMD), GPU overclocking (NVIDIA)\n* CPU core pinning or parking\n* Custom scripts\n\nGameMode packages are available for Ubuntu, Debian, Solus, Arch, Gentoo, Fedora, OpenSUSE, Mageia and possibly more.\n\nIssues with GameMode should be reported here in the issues section, and not reported to Feral directly.\n\n---\n## Requesting GameMode\n\nFor games\u002Flaunchers which integrate GameMode support, simply running the game will automatically activate GameMode.\n\nFor others, you must manually request GameMode when running the game. This can be done by launching the game through `gamemoderun`:\n```bash\ngamemoderun .\u002Fgame\n```\nOr edit the Steam launch options:\n```bash\ngamemoderun %command%\n```\n\nNote: for older versions of GameMode (before 1.3) use this string in place of `gamemoderun`:\n```\nLD_PRELOAD=\"$LD_PRELOAD:\u002Fusr\u002F\\$LIB\u002Flibgamemodeauto.so.0\"\n```\n**Please note the backslash here in `\\$LIB` is required.**\n\n---\n## Configuration\n\nThe daemon is configured with a `gamemode.ini` file. [example\u002Fgamemode.ini](https:\u002F\u002Fgithub.com\u002FFeralInteractive\u002Fgamemode\u002Fblob\u002Fmaster\u002Fexample\u002Fgamemode.ini) is an example of what this file would look like, with explanations for all the variables.\n\nConfiguration files are loaded and merged from the following directories, from highest to lowest priority:\n\n1. `$PWD` (\"unsafe\" - **`[gpu]` settings take no effect in this file**)\n2. `$XDG_CONFIG_HOME` or `$HOME\u002F.config\u002F` (\"unsafe\" - **`[gpu]` settings take no effect in this file**)\n3. `\u002Fetc\u002F`\n4. `\u002Fusr\u002Fshare\u002Fgamemode\u002F`\n\n---\n## Note for Hybrid GPU users\n\nIt's not possible to integrate commands like optirun automatically inside GameMode, since the GameMode request is made once the game has already started. However it is possible to use a hybrid GPU wrapper like optirun by starting the game with `gamemoderun`.\n\nYou can do this by setting the environment variable `GAMEMODERUNEXEC` to your wrapper's launch command, so for example `GAMEMODERUNEXEC=optirun`, `GAMEMODERUNEXEC=\"env DRI_PRIME=1\"`, or `GAMEMODERUNEXEC=\"env __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only\"`. This environment variable can be set globally (e.g. in \u002Fetc\u002Fenvironment), so that the same prefix command does not have to be duplicated everywhere you want to use `gamemoderun`.\n\nGameMode will not be injected to the wrapper.\n\n---\n## Development [![Build and test](https:\u002F\u002Fgithub.com\u002FFeralInteractive\u002Fgamemode\u002Factions\u002Fworkflows\u002Fbuild-and-test.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FFeralInteractive\u002Fgamemode\u002Factions\u002Fworkflows\u002Fbuild-and-test.yml)\n\nThe design of GameMode has a clear-cut abstraction between the host daemon and library (`gamemoded` and `libgamemode`), and the client loaders (`libgamemodeauto` and `gamemode_client.h`) that allows for safe use without worrying about whether the daemon is installed or running. 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.\n\nSee repository subdirectories for information on each component.\n\n### Install Dependencies\nGameMode depends on `meson` for building and `systemd` for internal communication. This repo contains a `bootstrap.sh` script to allow for quick install to the user bus, but check `meson_options.txt` for custom settings. These instructions all assume that you\nalready have a C development environment (gcc or clang, libc-devel, etc) installed.\n\n#### Ubuntu\u002FDebian\nNote: Debian 13 and Ubuntu 25.04 (and later) need to install `systemd-dev` and `libsystemd-dev` in addition to the dependencies below.\n```bash\napt update && apt install meson libsystemd-dev pkg-config ninja-build git dbus-user-session libdbus-1-dev libinih-dev build-essential\n```\n\nOn Debian 12 and Ubuntu 22 (and earlier), you'll need to install `python3` and `python3-venv` packages to install the latest meson version from `pip`.\n\n```bash\npython3 -m venv .venv\nsource .venv\u002Fbin\u002Factivate\npip install meson\n```\n\nLater you can deactivate the virtual environment and remove it.\n\n```bash\ndeactivate\nrm -rf .venv\n```\n\n#### Arch\n```bash\npacman -S meson systemd git dbus libinih gcc pkgconf\n```\n\n#### RHEL 10 and variants\nNote: Older versions of RHEL (and variants) cannot build gamemode due to not exposing libdbus-1 to pkg-config.\n(also - don't try and play games on RHEL, come on)\n\nYou must have [EPEL](https:\u002F\u002Fdocs.fedoraproject.org\u002Fen-US\u002Fepel\u002Fgetting-started\u002F) enabled to install all dependencies.\n```bash\ndnf install meson systemd-devel pkg-config git dbus-devel inih-devel\n```\n\n#### Fedora\n```bash\ndnf install meson systemd-devel pkg-config git dbus-devel inih-devel\n```\n\n#### OpenSUSE Leap\u002FTumbleweed\n```bash\nzypper install meson systemd-devel git dbus-1-devel libgcc_s1 libstdc++-devel libinih-devel\n```\n\n#### Gentoo\nGentoo has an ebuild which builds a stable release from sources. It will also pull in all the dependencies so you can work on the source code.\n```bash\nemerge --ask games-util\u002Fgamemode\n```\nYou can also install using the latest sources from git:\n```bash\nACCEPT_KEYWORDS=\"**\" emerge --ask ~games-util\u002Fgamemode-9999\n```\n\n#### Nix\nSimilar to Gentoo, nixOS already has a package for gamemode, so we can use that to setup an environment:\n```bash\nnix-shell -p pkgs.gamemode.buildInputs pkgs.gamemode.nativeBuildInputs\n```\n\n### Build and Install GameMode\nThen clone, build and install a release version of GameMode at 1.8.2:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FFeralInteractive\u002Fgamemode.git\ncd gamemode\ngit checkout 1.8.2 # omit to build the master branch\n.\u002Fbootstrap.sh\n```\nTo test GameMode installed and will run correctly:\n```bash\ngamemoded -t\n```\n\nTo uninstall:\n```bash\nsystemctl --user stop gamemoded.service\nninja uninstall -C builddir\n```\n\n### Pull Requests\nPull requests must match with the coding style found in the `.clang-format` file, please run this before committing:\n```\nclang-format -i $(find . -name '*.[ch]' -not -path \"*subprojects\u002F*\")\n```\n\n### Maintained by\nFeral Interactive\n\nSee the [contributors](https:\u002F\u002Fgithub.com\u002FFeralInteractive\u002Fgamemode\u002Fgraphs\u002Fcontributors) section for an extended list of contributors.\n\n---\n## License\n\nCopyright © 2017-2025 Feral Interactive and the GameMode contributors\n\nGameMode is available under the terms of the BSD 3-Clause License (Revised)\n\nThe \"inih\" library is distributed under the New BSD license\n","GameMode 是一个针对 Linux 系统的守护进程\u002F库组合，旨在根据需求优化系统性能以提升游戏体验。它通过调整 CPU 调度器、I\u002FO 优先级、进程友好度等参数，并支持 GPU 性能模式切换及超频（NVIDIA 和 AMD），为游戏运行提供最佳环境。此外，GameMode 还具备屏幕保护程序抑制、自定义脚本执行等功能。该项目适用于需要在 Linux 平台上获得更流畅游戏体验的用户，尤其是那些遇到因 CPU 节能模式导致性能下降问题的玩家。使用时，可以通过 `gamemoderun` 命令来启动游戏或在 Steam 中设置启动选项以激活 GameMode 的优化效果。",2,"2026-06-11 03:07:17","top_language"]