Skip to content

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'面板位置

Demo

Released under the MIT License.