What problem does it solve?
Three.js and React Three Fiber projects often suffer from frame drops, memory leaks, slow asset loading, and excessive draw calls, and developers lack a systematic way to diagnose and fix these bottlenecks.
Core Features & Use Cases
- Diagnostic Decision Tree: Maps symptoms like frame drops, memory growth, and slow loading to concrete checks using renderer.info metrics.
- Optimization Playbooks: Covers draw call reduction with InstancedMesh and BatchedMesh, Draco/KTX2 asset compression pipelines, GPU memory disposal rules, shader optimization, and lighting budgets.
- WebGPU Migration Guidance: Explains when and how to migrate to WebGPURenderer, write TSL shaders, and use compute shaders for million-scale particle systems.
- Use Case: A React Three Fiber scene stutters on mobile. The skill identifies setState calls inside useFrame, switches to ref-based animation, enables frameloop="demand", and compresses the GLB assets with gltf-transform.
Quick Start
Use the threejs-performance skill to diagnose why my React Three Fiber scene drops frames on mobile and fix the draw call and memory issues.