Stats
轻量性能统计面板,显示 FPS 和每帧耗时(ms)。
用法
ts
import { create3dApp } from '@threeuse/core'
import { Stats } from '@threeuse/core/plugins'
const app = create3dApp()
app.use(Stats, { position: 'top-left' })
app.$stats // 面板实例选项
| 选项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
position | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-left' | 面板位置 |