npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

com.hanli.diagnostics.fpsstats

v0.2.1

Published

基于 UI Toolkit 的轻量级运行时 FPS、帧耗时与滚动曲线监控面板。

Downloads

293

Readme

Hanli FPS Stats

一个基于 Unity UI Toolkit 的轻量级运行时性能监控面板,交互方式参考 stats.js。

功能

  • 显示平滑后的 FPS 和平均帧耗时(ms)。
  • 绘制可配置长度的 FPS 滚动曲线。
  • 使用 Time.unscaledDeltaTime 采样,不受游戏时间缩放影响。
  • 可在 Inspector 中调整刷新间隔、采样数、位置、尺寸和颜色。
  • 运行时自动创建 UI Toolkit 面板,不需要 Canvas 或 Prefab。

要求

  • Unity 2022.3 或更高版本。

安装

Git URL

在 Package Manager 中选择 Add package from git URL...,输入包所在仓库地址。如果包位于仓库子目录,在 URL 后添加:

?path=/Packages/com.hanli.diagnostics.fpsstats

本地包

在 Package Manager 中选择 Add package from disk...,然后选择本包的 package.json

使用

  1. 在 Unity 菜单中选择 GameObject > Diagnostics > FPS Stats
  2. 选中新建的 FPS Stats 对象,按需调整 Inspector 参数。
  3. 进入 Play Mode,即可在指定屏幕角落查看监控面板。

也可以通过代码向 GameObject 添加组件:

using Hanli.Diagnostics.FpsStats;

gameObject.AddComponent<FpsStatsMonitor>();

许可证

本包使用 MIT 许可证,详见 LICENSE