Install MangoHud via Flatpak
masterflatpak override command.repository·master·Indexed 27 days ago
https://github.com/flightlessmango/mangohudA high-performance Vulkan and OpenGL overlay for monitoring real-time performance metrics such as FPS, temperatures, and CPU/GPU load during gaming. Includes documentation for the standard overlay, installation via source or package managers, and MangoHud Next, which features a YAML-configurable server-client architecture for custom HUD layouts and JSON metric snapshots.
flatpak override command.The MangoHud Next server can be started independently of clients. Run the following command to begin the server process:
mangohud-serverTo log FPS data, you must define a valid path for output_folder in your MangoHud configuration. When logging is toggled (via Shift_L+F2), a file named after the game with a timestamp is created in that folder.
mangoplot script. Point it at a folder containing log files to generate 2D heatmap graphs for visual comparison between benchmarks.To enable the MangoHud overlay, prefix your application command with mangohud or use environment variables.
General usage:
mangohud /path/to/app
Steam:
Add mangohud %command% to the game's launch options.
Lutris:
In System options (ensure advanced options are enabled), add mangohud to the Command prefix setting.
Vulkan-only alternative:
Set the environment variable MANGOHUD=1 in your shell profile.
MangoHud uses configuration files to set options globally or per application. Files are loaded in the following priority order (highest priority first):
MangoHud.conf located in the application's directory.~/.config/MangoHud/:~/.config/MangoHud/<application_name>.conf (case-sensitive executable name).~/.config/MangoHud/wine-<application_name>.conf (case-sensitive executable name without the .exe extension).~/.config/MangoHud/MangoHud.conf.Example: For the game Overwatch.exe running via Wine, use ~/.config/MangoHud/wine-Overwatch.conf.
If you run a game from the terminal with MangoHud enabled, it will print the names of the configuration files it is searching for in the terminal output.
You can override or supplement configuration files using environment variables. These take priority over config files.
MANGOHUD_CONFIG: Set multiple options separated by commas (or + if values contain commas). Use read_cfg as the first parameter if you want to load the config file in addition to these variables.MANGOHUD_CONFIGFILE: Specify a path to a specific configuration file. Useful for applications with generic names like java or python.MANGOHUD_PRESETSFILE: Specify a path to a presets file. Useful for sandboxed environments like Flatpak.MANGOHUD_OPENGL_LIBS: Specify a custom path to libMangoHud_opengl.so for testing.Example:
MANGOHUD_CONFIG=cpu_temp,gpu_temp,position=top-right,height=500,font_size=32Note on delimiters: Since commas are used to separate options, if an option value requires a comma, use + as a delimiter instead. For example: MANGOHUD_CONFIG=fps_limit=60+30+0.
MANGOHUD_CONFIG=cpu_temp,gpu_temp,position=top-right,height=500,font_size=32build.sh script automates several tasks including dependency installation (on supported distros), building, and packaging. It typically assumes an x86_64 architecture.MangoHud Next uses a YAML configuration file located at $XDG_CONFIG_HOME/MangoHud/MangoHud.yml. If $XDG_CONFIG_HOME is not defined, it falls back to ~/.config/MangoHud/MangoHud.yml.
If the file is missing or contains an invalid hud_table, the system falls back to a built-in default. The configuration file is automatically reloaded when its timestamp or size changes while MangoHud Next is running.
To enable GPU usage metrics for Panfrost or Panthor drivers, you must manually enable profiling via sysfs:
For Panfrost, use:
echo 1 | sudo tee /sys/class/drm/renderD*/device/profilingFor Panthor, use:
echo 3 | sudo tee /sys/class/drm/renderD*/device/profilingDownload the pre-packaged binaries from the GitHub Releases page, extract them, and run the setup script.
./mangohud-setup.sh installYou can launch applications through the MangoHud Next launcher. This is required for OpenGL applications or mixed Vulkan/OpenGL environments.
For standard command line usage:
mangohud-next <application>For Steam, add the following to your application's launch options:
mangohud-next %command%mangohud-next glxgears