git404hub

what is lightweightfpscounter fr?

kyubuns/lightweightfpscounter — explained in plain English

Analysis updated 2026-05-18

24C#Audience · developerComplexity · 2/5Setup · easy

tl;dr

A minimal, low overhead on screen FPS counter plugin for Unity's Universal Render Pipeline, showing detailed CPU and GPU frame timings.

vibe map

mindmap
  root((LightweightFpsCounter))
    What it does
      FPS overlay
      CPU and GPU timing breakdown
      Zero GC allocations
    Tech stack
      Unity
      C#
      Universal Render Pipeline
    Use cases
      Debug frame rate drops
      Read metrics from code
      Customize overlay appearance
    Audience
      Unity developers
      Game performance engineers
    Setup
      Package Manager git install
      Frame Timing Stats enabled
      Excluded from release builds

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Add a lightweight FPS overlay to a Unity project using URP.

VIBE 2

Debug which stage, CPU or GPU, is causing a frame rate drop.

VIBE 3

Read live FPS and frame timing values from your own game code.

VIBE 4

Swap in a custom bitmap font to match your game's visual style.

what's the stack?

UnityC#Universal Render Pipeline

how it stacks up fr

kyubuns/lightweightfpscounterkkongry0819/6657upupyaog6700-bit/swell-ssh
Stars242424
LanguageC#C#C#
Setup difficultyeasyeasyeasy
Complexity2/52/52/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 5min

Requires Unity 6.3+ and Frame Timing Stats enabled in Player Settings, otherwise values read zero.

in plain english

LightweightFpsCounter is a Unity plugin that displays a small on screen FPS counter, built specifically for the Universal Render Pipeline and designed to add as little runtime cost as possible while running. It shows the current frame rate along with a one second average, plus a breakdown of CPU total time, main thread time, present wait time, render thread time, and GPU frame time, all measured through Unity's own FrameTimingManager. Every metric shown on screen can be turned on or off individually, and every text label can be edited freely. Values can automatically switch to warning or error colors once FPS drops below, or a frame time rises above, thresholds the developer sets. Other adjustable settings include how many frames get averaged into each update, text scale, which corner of the screen the display anchors to, margins, and colors. The bitmap font used for the numbers can also be swapped out for a custom font atlas of any glyph and cell size. For developers who want to read the numbers directly in their own code, the values are exposed through static properties like LightweightFpsCounterHud.LatestFps. The plugin produces zero garbage collection allocations while running, which matters for a tool meant to measure performance without affecting it. It requires Unity 6.3 or newer and the Frame Timing Stats option enabled in Player Settings, otherwise every value reads as zero. Installation is done through Unity's Package Manager using a git URL, followed by placing the included prefab into the project's first scene. By default the measurement and rendering code only exists in the editor and in Development Builds. Regular release builds ship with an inactive stub instead, so the counter does not run in production unless a developer deliberately defines a special compiler flag to enable it. The README explains that if a project wants the counter's assets, such as its font texture and shader, fully excluded from a release build, the prefab needs to be removed from every build input path, including Addressables groups, Resources folders, and scenes. The README also documents in detail how the plugin keeps its overhead low, covering things like reusing one shared mesh, updating only the digit regions that change, and pre recording its draw call into a command buffer. The bundled font is monogram by datagoblin, released under CC0. The README credits the code as generated with Claude Fable 5 and ChatGPT 5.6.

prompts (copy fr)

prompt 1
Help me install LightweightFpsCounter into my Unity project using the Package Manager git URL.
prompt 2
Explain how to read LightweightFpsCounterHud.LatestFps from my own script.
prompt 3
Show me how to fully exclude this FPS counter's prefab and assets from a release build.
prompt 4
Walk me through swapping the bundled monogram font for my own bitmap font atlas.

Frequently asked questions

what is lightweightfpscounter fr?

A minimal, low overhead on screen FPS counter plugin for Unity's Universal Render Pipeline, showing detailed CPU and GPU frame timings.

What language is lightweightfpscounter written in?

Mainly C#. The stack also includes Unity, C#, Universal Render Pipeline.

How hard is lightweightfpscounter to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is lightweightfpscounter for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.