Files
La-Fabrik/src/utils/DebugPerf.tsx
T
2026-04-14 08:59:36 +02:00

11 lines
345 B
TypeScript

import { Suspense, lazy } from 'react'
const Perf = lazy(() => import('r3f-perf').then((m) => ({ default: m.Perf })))
export function DebugPerf() {
const debug = new URLSearchParams(window.location.search).has('debug')
if (!debug) return null
return (
<Suspense fallback={null}>
<Perf position="top-left" />
</Suspense>
)
}