||3 hours ago|
|.github||7 months ago|
|assets||2 years ago|
|bin||1 month ago|
|control||3 months ago|
|data||8 months ago|
|include||8 months ago|
|modules||1 year ago|
|src||3 hours ago|
|subprojects||5 months ago|
|.editorconfig||1 year ago|
|.gitignore||6 months ago|
|.gitmodules||1 year ago|
|LICENSE||2 years ago|
|PKGBUILD||2 years ago|
|README.md||2 weeks ago|
|build-source.sh||3 months ago|
|build-srt.sh||6 months ago|
|build-with-srt-docker.sh||6 months ago|
|build.sh||5 months ago|
|meson.build||3 months ago|
|meson_options.txt||3 months ago|
|mingw32.txt||1 year ago|
|mingw64.txt||1 year ago|
|steamrt.Dockerfile.in||6 months ago|
|version.h.in||2 years ago|
A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more.
If you wish to compile MangoHud to keep up to date with any changes - first clone this repository and cd into it:
git clone --recurse-submodules https://github.com/flightlessmango/MangoHud.git cd MangoHud
meson to install "manually":
meson build ninja -C build install
By default, meson should install MangoHud to
/usr/local. Specify install prefix with
--prefix=/usr if desired.
-Dappend_libdir_mangohud=false option to meson to not append
mangohud to libdir if desired (e.g. /usr/local/lib/mangohud).
To install 32-bit build on 64-bit distro, specify proper
lib32 for Arch,
lib/i386-linux-gnu on Debian-based distros. RPM-based distros usually install 32-bit libraries to
/usr/lib and 64-bit to
You may have to change
PKG_CONFIG_PATH to point to correct folders for your distro.
CC="gcc -m32" \ CXX="g++ -m32" \ PKG_CONFIG_PATH="/usr/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig:/usr/lib/pkgconfig" \ meson build32 --libdir lib32 ninja -C build32 install
Install necessary development packages.
- gcc, g++
- or gcc-multilib, g++-multilib for 32-bit support
- meson >=0.54
- ninja (ninja-build)
- vulkan headers if using
- libGL/libEGL (libglvnd, mesa-common-dev, mesa-libGL-devel etc)
- X11 (libx11-dev)
- libdrm (libdrm-dev)
- XNVCtrl (libxnvctrl-dev), optional, use
- D-Bus (libdbus-1-dev), optional, use
Python 3 libraries:
- Mako (python3-mako or install with
If distro's packaged
meson is too old and gives build errors, install newer version with
Building with build script
You can also use
build.sh script to do some things automatically like install dependencies, if distro is supported but it usually assumes you are running on x86_64 architecture.
To just build it, execute:
You can also pass arguments to meson:
./build.sh build -Dwith_xnvctrl=disabled
Resulting files will be install to
If you have compiled MangoHud from source, to install it, execute:
You can then subsequently uninstall MangoHud via the following command
To tar up the resulting binaries into a package and create a release tar with installer script, execute:
./build.sh package release
or combine the commands, although
package should also call
build if it doesn't find the built libs:
./build.sh build package release
If you have built MangoHud before and suddenly it fails, you can try cleaning the
build folder, execute:
Currently it just does
rm -fr build and clears subprojects.
NOTE: If you are running an Ubuntu-based, Arch-based, Fedora-based, or openSUSE-based distro, the build script will automatically detect and prompt you to install missing build dependencies. If you run into any issues with this please report them!
If you do not wish to compile anything, simply download the file under Releases, extract it, and from within the extracted folder in terminal, execute:
If you are using an Arch-based distribution, install
lib32-mangohud with your favourite AUR helper.
lib32-mangohud-git are also available on the AUR if you want the up-to-date version of MangoHud.
If you are building it by yourself, you need to enable multilib repository, by editing pacman config:
sudo nano /etc/pacman.conf
#[multilib] #Include = /etc/pacman.d/mirrorlist
then save the file and execute:
sudo pacman -Syy
Debian 11 (Bullseye)
If you are using Debian 11 or later, to install the MangoHud package, execute:
sudo apt install mangohud
Optionally, if you also need MangoHud for 32-bit applications, execute:
sudo apt install mangohud:i386
If you are using Fedora, to install the MangoHud package, execute:
sudo dnf install mangohud
If you are using Solus, to install MangoHud simply execute:
sudo eopkg it mangohud
sudo add-apt-repository ppa:flexiondotorg/mangohud sudo apt update sudo apt install mangohud
NOTE: Currently PPA has no 32-bit libraries
If you run openSUSE Leap or Tumbleweed you can get Mangohud from the official repositories. There are two packages, mangohud for 64bit and mangohud-32bit for 32bit application support. To have Mangohud working for both 32bit and 64bit applications you need to install both packages even on a 64bit operating system.
sudo zypper in mangohud mangohud-32bit
Leap doesn't seem to have the 32bit package.
sudo zypper addrepo -f https://download.opensuse.org/repositories/games:tools/openSUSE_Leap_15.2/games:tools.repo sudo zypper install mangohud
sudo zypper addrepo -f https://download.opensuse.org/repositories/games:tools/openSUSE_Leap_15.3/games:tools.repo sudo zypper install mangohud
If you are using Flatpaks, you will have to add the Flathub repository for your specific distribution, and then, to install it, execute:
flatpak install org.freedesktop.Platform.VulkanLayer.MangoHud
To enable MangoHud for all Steam games:
flatpak override --user --env=MANGOHUD=1 com.valvesoftware.Steam
To enable the MangoHud overlay layer for Vulkan and OpenGL, run :
For Lutris games, go to the System options in Lutris (make sure that advanced options are enabled) and add this to the
Command prefix setting:
For Steam games, you can add this as a launch option:
Or alternatively, add
MANGOHUD=1 to your shell profile (Vulkan only).
OpenGL games may also need
dlsym hooking. Add
MANGOHUD_DLSYM=1 env var to your command like
mangohud --dlsym %command% for Steam.
Some Linux native OpenGL games overrides LD_PRELOAD and stops MangoHud from working. You can sometimes fix this by editing LD_PRELOAD in the start script
MangoHud comes with a config file which can be used to set configuration options globally or per application. The priorities of different config files are:
- Per-application configuration in ~/.config/MangoHud:
~/.config/MangoHud/<application_name>.conffor native applications, where
<application_name>is the case sensitive name of the executable
~/.config/MangoHud/wine-<application_name>.conffor wine/proton apps, where
<application_name>is the case sensitive name of the executable without the
Example: For Overwatch, this would be
wine-Overwatch.conf (even though the executable you run from Lutris is
Battle.net.exe, the actual game executable name is
If you start the game from the terminal with MangoHud enabled (for example by starting Lutris from the terminal), MangoHud will print the config file names it is looking for.
You can find an example config in /usr/share/doc/mangohud
GOverlay is a GUI application that can be used to manage the config
MANGOHUD_CONFIGFILE environment variables
You can also customize the hud by using the
MANGOHUD_CONFIG environment variable while separating different options with a comma. This takes priority over any config file.
You can also specify configuration file with
MANGOHUD_CONFIGFILE=/path/to/config for applications whose names are hard to guess (java, python etc).
A partial list of parameters are below. See the config file for a complete list.
Parameters that are enabled by default have to be explicitly disabled. These (currently) are
cpu_stats (cpu load),
gpu_stats (gpu load).
||Displays current CPU/GPU temperature|
||Displays load & frequency per core|
||Displays GPU core/memory frequency|
||Displays system RAM/VRAM usage|
||Displays swap space usage next to system RAM usage|
||Displays process' memory usage: resident, shared and/or virtual.
||Enables most of the toggleable parameters (currently excludes
||Customizeable font size (default=24)|
||Customizeable font size for other text like media metadata (default=24)|
||Set global font scale (default=1.0)|
||Change default font (set location to .TTF/.OTF file )|
||Change text font. Otherwise
||Specify extra font glyph ranges, comma separated:
||Use primary font size for smaller text like units|
||Customizeable hud dimensions (in pixels)|
||Location of the hud:
||Hud position offsets|
||Hide the hud by default|
||Modifiable toggle hotkeys. Default are
||Change keybind for reloading the config. Default =
||Displays local time. See std::put_time for formatting help. NOTE: Sometimes apps (or AMDVLK (should be fixed in latest)) may set
||Change default colors:
||Set the opacity of all text and frametime graph
||Set the opacity of the background
||Add to MANGOHUD_CONFIG as first parameter to also load config file. Otherwise only MANGOHUD_CONFIG parameters are used.|
||Set location of the output files (Required for logging)|
||Set amount of time the logging will run for (in seconds)|
||Set vsync for OpenGL or Vulkan|
||Show media player metadata|
||Force media player DBus service name without the
||Format media player metadata. Add extra text etc. Semi-colon breaks to new line. Defaults to
||Change size of media player text relative to font_size|
||Show non-cached IO read/write, in MiB/s|
||Select GPU device in multi-gpu setups|
||Shows current mangohud version|
||Limit the apps framerate. Comma-separated list of one or more FPS values.
||Cycle between FPS limits. Defaults to
||Show if the application is 32 or 64 bit|
||Change fps graph to histogram|
||Override CPU and GPU text|
||Change the default log interval,
||Displays used vulkan driver, radv/amdgpu-pro/amdvlk|
||Displays GPU name from pci.ids|
||Display CPU/GPU draw in watts|
||Display OpenGL or vulkan and vulkan-based render engine's version|
||Allow uploading of logs to Flightlessmango.com|
||Change keybind for uploading log|
||Configure which framerate percentiles are shown in the logging summary. Default is
||Shows current Wine or Proton version in use|
||Change color of the wine/proton text|
||Shows the CPUs current MHz|
||Changes the color of the GPU load depending on load|
||Set the colors for the gpu load change low,medium and high. e.g
||Set the values for medium and high load e.g
||Changes the color of the CPU load depending on load|
||Set the colors for the gpu load change low,medium and high. e.g
||Set the values for medium and high load e.g
||Changes the colors of cpu core loads, uses the same data from
||Set the vertical cellpadding, default is
||Display frametime next to fps text|
||Set the number of table columns for ImGui, defaults to 3|
||Add a program to the blacklist. e.g
||Display the current resolution|
||Display the current fps limit|
||Display a custom text centered useful for a header e.g
||Display a custom text e.g
||Display output of bash command in next column, e.g
||Change the amount of roundness of the corners have e.g
||Shows if vkbasalt is on|
||Shows if gamemode is on|
||Display current battery percent and energy consumption|
||Display battery icon instead of percent|
||Change the BATT text color|
||Use hwmon sysfs instead of libdrm for amdgpu stats|
||Show FPS without the engine name e.g. DXVK/VULAKAN etc.|
|Because comma is also used as option delimiter and needs to be escaped for values with a backslash, you can use
Note: Width and Height are set automatically based on the font_size, but can be overridden.
Note: RAPL is currently used for Intel CPUs to show power draw with
cpu_power which may be unreadable for non-root users due to vulnerability. The corresponding
energy_uj file has to be readable by corresponding user, e.g. by running
chmod o+r /sys/class/powercap/intel-rapl\:0/energy_uj as root, else the power shown will be 0 W, though having the file readable may potentially be a security vulnerability persisting until system reboots.
-1= Adaptive sync
n= Sync to refresh rate / n.
0= Adaptive VSync (FIFO_RELAXED_KHR)
1= Off (IMMEDIATE_KHR)
2= Mailbox (VSync with uncapped FPS) (MAILBOX_KHR)
3= On (FIFO_KHR)
All vulkan vsync options might not be supported on your device, you can check what your device supports here vulkan.gpuinfo.org
Shift_L+F2: Toggle Logging
Shift_L+F4: Reload Config
Shift_R+F12: Toggle Hud
Options starting with "gl_*" are for OpenGL.
gl_size_query = viewport: Specify what to use for getting display size. Options are "viewport", "scissorbox" or disabled. Defaults to using glXQueryDrawable.
gl_bind_framebuffer = 0..N: (Re)bind given framebuffer before MangoHud gets drawn. Helps with Crusader Kings III.
gl_dont_flip = 1: Don't swap origin if using GL_UPPER_LEFT. Helps with Ryujinx.
MangoHud FPS logging
You must set a valid path for
output_folder in your configuration to store logs in.
When you toggle logging (using the keybind
Shift_L+F2), a file is created with the game name plus a date & timestamp in your
Log files can be uploaded to Flightlessmango.com to create graphs automatically.
You can share the created page with others, just link it.
Multiple log files
It's possible to upload multiple files when using Flightlessmango.com. You can rename them to your preferred names and upload them in a batch. These filenames will be used as the legend in the graph.