Skip to content

性能检测

使用stats.js创建一个性能检测器

示例

js
import { createApp } from 'threeuse'
import { stats } from 'threeuse/plugin'
const app = createApp()
app.use(stats, show, followContainer)

说明

通过调用 createApp 创建的实例对象上的 use 方法安装插件

参数

参数说明默认值
show是否显示true
followContainer绑定到容器上,若为 false 则挂载到 <body> 元素上true

MIT Licensed.