【文件属性】:
文件名称:pixi-stats:stats.js + gstats的2021版本
文件大小:11KB
文件格式:ZIP
更新时间:2021-04-06 08:41:35
TypeScript
像素统计
JavaScript性能监视器
此类提供一个信息框,可帮助您监视代码性能。
FPS在最后一秒内渲染的帧。 数字越高越好。
MS毫秒需要渲染的帧。 数值越低越好。
MB MB已分配的内存。 (使用--enable-precise-memory-info运行Chrome)
一帧内进行DC抽签。
一帧内使用的TC纹理计数。
CUSTOM自定义面板支持。
屏幕截图
安装
npm install stats.js pixi.js
用法
import { Application , Ticker } from 'pixi.js' ;
import { addStats , Stats } from 'pixi-stats/lib/stats' ;
const app : Application = new Application ( { } ) ;
const stats : S
【文件预览】:
pixi-stats-main
----lib()
--------stats-constants.ts(371B)
--------stats-gl.ts(2KB)
--------stats.ts(2KB)
--------stats-panel.ts(3KB)
----tsconfig.json(1KB)
----LICENSE(1KB)
----.prettierrc(119B)
----README.md(1KB)
----.gitignore(19B)
----package-lock.json(12KB)
----package.json(805B)