diff --git a/playground/components.d.ts b/playground/components.d.ts index c1cd4fbe..d447850f 100644 --- a/playground/components.d.ts +++ b/playground/components.d.ts @@ -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'] } } diff --git a/src/core/misc/useTweakPane/index.ts b/src/core/misc/useTweakPane/index.ts index 4773483a..f17fe637 100644 --- a/src/core/misc/useTweakPane/index.ts +++ b/src/core/misc/useTweakPane/index.ts @@ -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. @@ -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 } }