Recording FPS With Mango-Hud on Linux
This page goes through how one can set up mango-hud to set up FPS recording during gameplay on Linux.
MangoHud is a tool that let's you view and record your FPS (and other metrics) while gaming. Setup is fairly easy; with just a few steps.
This guide assumes you are using the apt package manager. Whatever your Linux distro is, the steps should all be the same; except for the installation. Install MangoHud with whatever other package manager that you are using.
Installation
Use the below command to install MangoHud.
Configuration
We just need to set up some configuration to enable recording with MangoHud.
Let's create our config file. The last command below will open a text editor.
Paste the below contents into the MangoHud.conf file you just created/opened.
These inputs are way beyond the minimum, so feel free to make changes. There are several metrics in the config that you may not need. Be sure to replace <yourusername>.
Now let's create the output folder from what we specified in the config file.
Enabling & Recording
Lastly, we just need to set the run configurations in the desired Steam game (the game we'd like to record FPS in), and actually start recording.
Find the game you'd like to record FPS in on Steam, right click it, and go to Properties. Under the General tab that should already be opened, paste the below into the LAUNCH OPTIONS text box.
Now, once you launch the game, you should be able to hit left shift + F2 on your keyboard, and it should start recording! You'll know if you are recording when a red circle recording indicator appears on the MangoHud overlay. Simply press the same keys to stop recording. Your output files will be CSV formatted files placed in the output directory mentioned in the config file. In our case, it's going to be /home/<yourusername>/Documents/mangohud-logs.
Part of: YouTube Channel Notes