feat: 添加FPS插件,显示帧率
This commit is contained in:
1 parent
938269bd9f
commit
5d0abf5ac9
7 files changed
+168
No files matched your search
@@ -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'
|
||||
Reference in new issue
Block a user