Skip to content

性能检测

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

示例

js
import { createThreeUseApp } from 'threeuse'
import { stats } from 'threeuse/plugin'
const app = createThreeUseApp()
app.use(stats, options?)

说明

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

options

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

MIT Licensed.