Files
La-Fabrik/src/utils/DebugPerf.tsx
T
2026-04-14 09:20:30 +02:00

12 lines
351 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>
);
}