šŸ“„ drei/misc/detect-gpu-use-detect-gpu

File: detect-gpu-use-detect-gpu.md | Updated: 11/15/2025


title: DetectGPU / useDetectGPU sourcecode: src/core/DetectGPU.tsx

This hook uses DetectGPU by @TimvanScherpenzeel, wrapped into suspense, to determine what tier should be assigned to the user's GPU.

šŸ‘‰ This hook CAN be used outside the @react-three/fiber Canvas.

function App() {
  const GPUTier = useDetectGPU()
  // show a fallback for mobile or lowest tier GPUs
  return (
    {(GPUTier.tier === 0 || GPUTier.isMobile) ? <Fallback /> : <Canvas>...</Canvas>

<Suspense fallback={null}>
  <App />