Scripts2026年5月28日·1 分钟阅读

MangoHud — Vulkan and OpenGL Overlay for Gaming Performance Monitoring

Real-time in-game HUD overlay for Linux that displays FPS, frame times, CPU/GPU temperatures, load, memory usage, and more through Vulkan and OpenGL layer injection.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
MangoHud Overview
直接安装命令
npx -y tokrepo@latest install 45025ceb-5ab1-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

MangoHud is a Vulkan and OpenGL overlay for monitoring system performance while gaming on Linux. Inspired by tools like MSI Afterburner and RivaTuner on Windows, it injects a configurable HUD into running games that shows FPS, frame timing, temperatures, and hardware utilization without leaving the game.

What MangoHud Does

  • Displays real-time FPS, frame time graphs, and percentile metrics as an in-game overlay
  • Shows CPU and GPU temperatures, clock speeds, load percentage, and power draw
  • Reports RAM and VRAM usage, IO throughput, and battery status on laptops
  • Logs performance data to CSV files for offline analysis and benchmarking
  • Supports per-game and global configuration through a simple text config file

Architecture Overview

MangoHud works as a Vulkan layer and an OpenGL preload library. For Vulkan games, it registers as an implicit layer that intercepts swapchain present calls to draw the overlay. For OpenGL, it uses LD_PRELOAD to hook into the GL context. Sensor data comes from sysfs, libsensors, and NVML (for NVIDIA GPUs). A companion tool called MangoApp provides a standalone window for monitoring without injection.

Self-Hosting & Configuration

  • Install from your distribution's package manager or compile from source with meson
  • Create a config file at ~/.config/MangoHud/MangoHud.conf to customize displayed metrics
  • Toggle the overlay at runtime with a configurable keybind (default: Right Shift + F12)
  • Use MANGOHUD=1 as an environment variable or add mangohud %command% to Steam launch options
  • Enable logging with log_duration=30 to record benchmark data to CSV

Key Features

  • Highly customizable HUD layout with toggleable metrics via config file
  • Frame time graph overlay for identifying stutter and inconsistent frame pacing
  • Benchmark logging with min/max/average FPS and percentile output
  • Integration with Gamescope for HDR and display management awareness
  • Works with both native Linux games and Windows games running through Proton/Wine

Comparison with Similar Tools

  • MSI Afterburner + RivaTuner — the Windows equivalent; MangoHud provides similar functionality natively on Linux
  • Gamescope — a Wayland compositor for gaming that can embed MangoHud overlays with extra features
  • vkBasalt — post-processing layer for Vulkan games; focused on visual effects rather than monitoring
  • GOverlay — a GUI for configuring MangoHud, vkBasalt, and ReplaySorcery settings graphically

FAQ

Q: Does MangoHud work with Proton and Wine games? A: Yes. MangoHud works with both native and Proton/Wine games by injecting into the Vulkan or OpenGL layer.

Q: How do I customize which metrics are shown? A: Edit ~/.config/MangoHud/MangoHud.conf and list the metrics you want (e.g., fps, gpu_temp, cpu_load, frametime).

Q: Can I use it for benchmarking? A: Yes. Enable logging in the config and MangoHud records frame data to CSV files for analysis.

Q: Does it support NVIDIA GPUs? A: Yes. MangoHud reads NVIDIA sensor data through NVML and supports both NVIDIA and AMD GPUs.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产