feat: 添加FPS插件,显示帧率

This commit is contained in:
539943419 committed 2025-03-31 17:13:51 +08:00
1 parent 938269bd9f
commit 5d0abf5ac9
7 files changed
+168

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
import { Plugin, PluginGroup } from '@/class/PluginCenter'
import showFps from './showFps'
import { SpeedometerOutline } from '@vicons/ionicons5'
import { PluginExportType } from '@/types/type'
import { shallowRef } from 'vue'
import { fpsElement } from './shared'
const pluginConfig: Plugin = {
name: '显示FPS',
icon: shallowRef(SpeedometerOutline),
filter: () => {
return fpsElement.value === null
},
disable: false,
group: [PluginGroup.mainMenu],
func: showFps,
priority: 0
}
export default pluginConfig
export const type = PluginExportType.default
export const key = 'showFps'