Back to projects

Unity plugin · Performance overlay

Bottleneck HUD

This overlay shows why a frame is slow: real CPU and GPU frame time, 1% low, memory, and ping. FPS and ping get a word-and-color rating right away, graphs show when things went wrong, and alerts say why. No prefab, no component — import the package and run your scene in Play mode

What it shows

  • FPS rated smooth, unstable, or low Next to it: 1% low and min — the worst frames over the last 5 seconds
  • CPU and GPU frame time in milliseconds Work only: waiting on vsync and the frame limit does not count. CPU is the busier of the main and render threads
  • Memory: Mem, GC, and GFX Everything Unity allocated, managed heap in use, and the graphics driver estimate
  • Ping rated good, fair, or poor On a client — its own ping to the server; on the host — the worst client, marked max
  • Graphs under the numbers Frame time against the frame budget with CPU and GPU lines, GC and memory over a longer window to spot a leak, ping with its good and fair limits
  • Alerts with a cause Low FPS, hitch, GC growth and high ping — a line on screen, a Console warning, a screenshot and the Overlay.Alert event. A hitch names its cause: scene load, GC collection, allocations, or unknown. The hitch alert is off by default — turn on Hitch (Long Frame) in Threshold Settings → Warnings
  • Report and session recording Shift+F11 — a report with the current numbers, a 30-second summary and the device. Ctrl+F11 — every frame to CSV with your marks

Limits

  • Release builds — no debug metrics CPU and GPU frame time, memory, 1% low, render stats, hitch causes, the GC growth alert, alert screenshots and session recording exist only in the editor and Development Build. Release builds keep FPS, ping, their graphs, the low FPS, hitch and high ping alerts and the report
  • Memory in the editor includes the editor itself Compare numbers between Development Builds, not against the editor
  • GPU n/a on some platforms Some platforms and graphics APIs do not report GPU time

How to use the plugin

From import to a release build: settings, hotkeys, the report, your own menu, your own numbers, and multiplayer

Quick start

Import the package and press Play — the overlay appears in the bottom-left. It starts on its own and survives scene loads

If TextMesh Pro was not in the project yet, Window → Bottleneck HUD offers to import TMP Essential Resources in one click

  • DoImport the package and press Play
  • Don'tLook for a prefab or component — there are none

Settings

Six groups: General, Position and Style, Displayed Data, Controls, Report and Recording, Threshold Settings. Reset to Defaults brings everything back. Settings live in Assets/Resources, outside the package folder, so updates will not overwrite them

Window → Bottleneck HUD
  • DoTune corner and thresholds right in Play Mode
  • Don'tMove the settings asset into the package folder

Hotkeys

F11 shows and hides the overlay, Shift+F11 copies the report, Ctrl+F11 starts a recording. Any Input System path works, e.g. <Keyboard>/backquote, or a gamepad chord <Gamepad>/leftStickPress+<Gamepad>/rightStickPress

On a phone, hold a finger still in the overlay’s corner for 2 seconds. An empty field disables a key. With the legacy Input Manager, Controls shows the same captions with KeyCode fields

  • Do<Keyboard>/backquotein Mac builds
  • Don'tF12 and Shift+Tab (taken by Steam), F11 on macOS

Report and recording

The report goes to the clipboard and always to a file — plain text, or Markdown for GitHub, Jira and Notion. A session recording writes every frame to CSV, and Overlay.Mark("boss") puts a mark into it and on the graphs. Everything lands in the Logs folder; the plugin removes its old files when the game starts

persistentDataPath/Logs/
  report_<date>_<time>_<frame>.txt
  session_<date>_<time>.csv
  • DoAttach the report to a bug report instead of a screenshot
  • Don'tExpect session recording in a release build — Development Build only

Your own settings menu

Visibility is stored in PlayerPrefs, so it is easy to wire to a toggle in your game menu. Overlay.Toggle() flips the overlay in one line, and TargetFrameRateSource sets the FPS target from your graphics settings. With Show HUD at Launch off, the overlay measures but stays hidden until shown

showStatsToggle.isOn = Overlay.Visible;
showStatsToggle.onValueChanged
  .AddListener(on => Overlay.Visible = on);

// rate FPS against your graphics-menu cap
Overlay.TargetFrameRateSource =
  () => myGraphicsSettings.FrameCap;

Your own lines and graphs

Add your game’s numbers in one line — they sit next to the overlay’s numbers and go into the report. Alerts can go to your own analytics

Overlay.AddSection("Enemies",
  () => enemies.Count.ToString());
Overlay.AddGraph("Pool",
  () => pool.CountActive);

Overlay.Alert += alert =>
  Analytics.Send("perf_" + alert.Kind);

Multiplayer

With Netcode for GameObjects, ping works out of the box — nothing to configure. For another transport, implement one IPingSource method and assign the source. Read() runs twice a second on the main thread

Overlay.PingSource = new MyPingSource();
  • DoKeep Read() fast — no heavy work
  • Don'tExpect ping without NGO and without your own IPingSource

Demo scene

CPU and GPU load sliders, GC spike, Alloc spike, Hitch and Leak buttons — each raises its own alert; the hitch buttons turn the hitch alert on for the session. Record, Mark and Copy report, 30/60/120 frame caps, and overlay settings through the same API as in-game

You can delete the Demo folder

BottleneckHUD/Demo/Bottleneck HUD Demo.unity

Full documentation in the package: Documentation/Bottleneck HUD Documentation.md

All thresholds change in Settings

FPS

Target and rating

  • ≥ 90% of targetsmooth
  • ≥ 50% of targetunstable
  • below 50%low

Ping

Round-trip and rating

  • < 100 msgood
  • < 200 msfair
  • ≥ 200 mspoor

Hitch

One long frame · off by default

  • frame longer than 100 mshitch
  • over 1024 KB allocated in itallocations

FAQ

Overlay is not visible

TMP Essential Resources are missing — the console warns [Bottleneck HUD] No font…. Click Import TMP Essential Resources in settings or assign a Font. Also check Enable Plugin / Show HUD at Launch and whether you hid the overlay with the hotkey

GPU is higher than 1000 / FPS on Apple Silicon

That is expected. On Metal the GPU processes neighboring frames in parallel, so one frame’s GPU time can exceed the interval between frames — e.g. 29 ms at 99 FPS. Which side is busier is still correct, but do not compare it to the frame budget on Apple

GPU shows n/a

The platform does not report GPU time. On those platforms Frame Timing Stats in Player Settings may help

In the editor FPS is low even though the game feels fine

The editor usually has no frame cap, and the target is the display refresh rate. A Game view in the background also slows the editor. Set Target FPS in settings or check a Development Build

Hotkey does not work

Check the path in Show / Hide in the Controls group. On macOS F11 is taken by the system. If only the legacy Input Manager is enabled, set the KeyCode there

The overlay covers my HUD

Change Position or Edge Margin, or lower Priority Over Game UI

In multiplayer ping is always offline

Without Netcode for GameObjects assign your own IPingSource — see step 07 above

Where are reports, recordings and screenshots

In the Logs folder inside persistentDataPath — Open Folder in the Report and Recording group opens it. The plugin removes its old files when the game starts: after a week by default, set in Delete Reports

What does ! hitch 164 ms — allocations 2.0 MB mean

One frame took 164 ms — about ten normal frames at 60 FPS — and allocated 2.0 MB of managed memory in it, more than Cause "Allocations" From, KB (1024 by default). That is the probable cause: find the frame in the Profiler and sort by GC Alloc. The hitch alert is off by default — turn on Hitch (Long Frame) in Threshold Settings → Warnings and set the frame length in Hitch: Frame Longer Than, ms

A hitch with the cause unknown

That frame had no scene load, no garbage collection and no large allocations — look at the CPU and GPU lines of the frame graph. Wrap your own loading in Overlay.BeginLoading() / EndLoading(), and a hitch inside it reads scene load

Support

For questions and bugs help@makstorch.com
Be sure to include the plugin version, Unity, OS, and attach screenshots