Go to file
2020-05-14 13:50:55 +03:00
.github create FUNDING.yml 2020-03-18 15:46:06 +00:00
assets update overlay example 2020-02-14 20:06:44 +13:00
bin Add media_player_name and media_player_color params 2020-05-11 22:05:13 +03:00
include [editorconfig] Ignore 3rd-party headers and submodules 2020-05-10 15:18:58 +03:00
modules [editorconfig] Ignore 3rd-party headers and submodules 2020-05-10 15:18:58 +03:00
src Find cpu temp sensor input by label or fallback to first tempN_input 2020-05-14 13:50:55 +03:00
subprojects Update Vulkan-Headers to v1.2.139 2020-05-03 20:42:06 +03:00
.editorconfig [editorconfig] Set src/mesa indent_size to 3 2020-05-10 15:18:59 +03:00
.gitignore Use gzip in build-source.sh 2020-05-03 21:36:50 +03:00
.gitmodules Keep own copy of imgui/tables for now 2020-03-14 23:15:06 +02:00
build-source.sh Use gzip in build-source.sh 2020-05-03 21:36:50 +03:00
build.sh [build.sh] Fix distro name parsing if it doesn't have double quotes 2020-05-12 02:07:58 +03:00
libmangohud.conf Make paths in libmangohud.conf lowercase 2020-03-12 12:12:21 +02:00
libmangohud.conf.in Libdirs: once more, with feeling 2020-03-11 18:11:35 +02:00
LICENSE Added LICENSE 2020-02-05 00:20:07 +01:00
meson_options.txt Disable dlsym hooking by default and fix LD_PRELOAD propagation to new processes 2020-04-18 17:53:41 +01:00
meson.build Bump version to 0.3.5 2020-05-02 20:04:31 +02:00
PKGBUILD PKGBUILD moved submodule fetching into prepare() 2020-02-01 00:00:06 +01:00
README.md Add media_player_name and media_player_color params 2020-05-11 22:05:13 +03:00
version.h.in [Params] Version option 2020-05-02 18:39:39 +02:00

MangoHud

A modification of the Mesa Vulkan overlay. Including GUI improvements, temperature reporting, and logging capabilities.

Example:

Installation

Build

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

To build it, execute:

./build.sh build
./build.sh package

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!

Once done, proceed to the installation.

Install

Source

If you have compiled MangoHud from source, to install it, execute:

./build.sh install

Pre-packaged binaries

GitHub releases

If you do not wish to compile anything, simply download the file under Releases, extract it, and run ./mangohud-setup.sh install from within the extracted folder.

Arch-based distributions

If you are using an Arch-based distribution, install mangohud and lib32-mangohud with your favourite AUR helper. mangohud-git and lib32-mangohud-git are also available on the AUR if you want the up-to-date version of MangoHud.

Fedora

If you are using Fedora, to install the MangoHud package, execute:

sudo dnf install mangohud

Flatpak

If you are using Flatpaks, you will have to add the Flathub repository for your specific distribution, and then, to install it, execute:

For Steam flatpak
flatpak install com.valvesoftware.Steam.Utility.MangoHud

To enable MangoHud for all Steam games:

flatpak override --user --env=MANGOHUD=1 com.valvesoftware.Steam

Normal usage

To enable the MangoHud overlay layer for 64bit Vulkan and OpenGL, run :

mangohud /path/to/app

Or

mangohud.x86 /path/to/app for 32bit OpenGL

For Steam games, you can add this as a launch option:

mangohud %command%

Or alternatively, add MANGOHUD=1 to your shell profile (Vulkan only).

Hud configuration

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:

  1. /path/to/application/dir/MangoHud.conf
  2. $HOME/.config/MangoHud/{application_name}.conf
  3. $HOME/.config/MangoHud/MangoHud.conf

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_CONFIG and 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.

Variable Description
cpu_temp
gpu_temp
Displays current CPU/GPU temperature
core_load Displays load & frequency per core
gpu_core_clock
gpu_mem_clock
Displays GPU core/memory frequency
ram
vram
Displays system RAM/VRAM usage
full Enables all of the above config options
crosshair Adds a crosshair overlay at the centre of the screen
font_size= Customizeable font size (default=24)
width=
height=
Customizeable hud dimensions (in pixels)
position= Location of the hud: top-left (default), top-right, bottom-left, bottom-right
offset_x offset_y Hud position offsets
no_display Hide the hud by default
toggle_hud=
toggle_logging=
Modifiable toggle hotkeys. Default are F12 and F2, respectively.
reload_cfg= Change keybind for reloading the config
time
time_format=%T
Displays local time. See std::put_time for formatting help.
gpu_color
gpu_color
vram_color
ram_color
io_color
engine_color
frametime_color
background_color
text_color
media_player_color
Change default colors: gpu_color=RRGGBB
alpha Set the opacity of all text and frametime graph 0.0-1.0
background_alpha Set the opacity of the background 0.0-1.0
read_cfg Add to MANGOHUD_CONFIG as first parameter to also load config file. Otherwise only MANGOHUD_CONFIG parameters are used.
output_file Define name and location of the output file (Required for logging)
font_file Change default font (set location to .TTF/.OTF file )
log_duration Set amount of time the logging will run for (in seconds)
vsync
gl_vsync
Set vsync for OpenGL or Vulkan
media_player Show media player metadata
media_player_name Set main media player DBus service name without the org.mpris.MediaPlayer2 part, like spotify, vlc, audacious or cantata. Defaults to spotify.
io_read
io_write
Show non-cached IO read/write, in MiB/s
pci_dev Select GPU device in multi-gpu setups
version Shows current mangohud version
fps_limit= Limit the application's FPS
arch Show if the application is 32 or 64 bit

Example: MANGOHUD_CONFIG=cpu_temp,gpu_temp,position=top-right,height=500,font_size=32

Note: Width and Height are set automatically based on the font_size, but can be overridden.

Vsync

OpenGL Vsync

  • -1 = Adaptive sync
  • 0 = Off
  • 1 = On
  • n = Sync to refresh rate / n.

Vulkan Vsync

  • 0 = Adaptive VSync
  • 1 = Off
  • 2 = Mailbox (VSync with uncapped FPS)
  • 3 = On

Keybindings

  • F2 : Toggle Logging
  • F4 : Reload Config
  • F12: Toggle Hud

MangoHud FPS logging

When you toggle logging (using the keybind F2), a file is created with your chosen name (using MANGOHUD_OUTPUT) plus a date & timestamp.

This file 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.

Log uploading walkthrough