Skip to content

Commit

Permalink
chore: remove fpsgraph code
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Aug 24, 2023
1 parent c81eca1 commit 6797d6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions playground/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ declare module 'vue' {
RouterView: typeof import('vue-router')['RouterView']
ScrollDemo: typeof import('./src/components/ScrollDemo.vue')['default']
TheGizmos: typeof import('./src/components/TheGizmos.vue')['default']
UseVideoTextureDemo: typeof import('./src/components/useVideoTextureDemo.vue')['default']
WobbleMaterial: typeof import('./src/components/WobbleMaterial.vue')['default']
}
}
7 changes: 2 additions & 5 deletions src/core/misc/useTweakPane/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useLogger } from '../../../composables/useLogger'

type TweakPane = Pane & { addBlade(blade: any): void }
let pane: TweakPane
let fpsGraph: any

export /**
* Creates a TweakPane instance and returns it.
Expand Down Expand Up @@ -39,14 +38,12 @@ export /**
}

onMounted(() => {
const { onBeforeLoop, onAfterLoop, resume } = useRenderLoop()
const { resume } = useRenderLoop()
resume()
onBeforeLoop(() => fpsGraph.begin())
onAfterLoop(() => fpsGraph.end())
})
onUnmounted(() => {
disposeTweakPane()
})

return { pane, fpsGraph, disposeTweakPane }
return { pane, disposeTweakPane }
}

0 comments on commit 6797d6b

Please sign in to comment.