Install any skill in seconds. Free to start, no credit card required.
Get Started Free →zebbern/three-best-practices
Three.js performance optimization and best practices guidelines.
Passed 22 of 22 test cases with the skill, and 14 of 22 without it.
and 6 more in the full report
8 fixed14 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
Our web 3D project is suffering from massive lag and frame drops on mobile phones, likely due to excessive draw calls, shadow maps, and unoptimized render loop allocations. Could you review our scene setup approach and output a prioritized optimization plan grouped by impact category, accompanied by code updates for our animation loop and shadow camera settings?
| Checked | Without skill | With skill |
|---|---|---|
| Uses renderer.setAnimationLoop for the render loop animation setup. | Missed | Passed |
| Limits pixel ratio to at most 2. | Passed | Passed |
The instructions your model reads when the skill loads.
Comprehensive performance optimization guide for Three.js applications. Contains 120+ rules across 18 categories, prioritized by impact.
This skill compiles best practices from multiple authoritative sources:
- Official guidelines from Three.js
llmsbranch maintained by mrdoob- 100 Three.js Tips by Utsubo - Excellent comprehensive guide covering WebGPU, asset optimization, and performance tips
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 0 | Modern Setup & Imports | FUNDAMENTAL | setup- |
| 1 | Memory Management & Dispose | CRITICAL | memory- |
| 2 | Render Loop Optimization | CRITICAL | render- |
| 3 | Draw Call Optimization | CRITICAL | drawcall- |
| 4 | Geometry & Buffer Management | HIGH | geometry- |
| 5 | Material & Texture Optimization | HIGH | material- |
| 6 | Asset Compression | HIGH | asset- |
| 7 | Lighting & Shadows | MEDIUM-HIGH | lighting- |
| 8 | Scene Graph Organization | MEDIUM | scene- |
| 9 | Shader Best Practices (GLSL) | MEDIUM | shader- |
| 10 | TSL (Three.js Shading Language) | MEDIUM | tsl- |
| 11 | WebGPU Renderer | MEDIUM | webgpu- |
| 12 | Loading & Assets | MEDIUM | loading- |
| 13 | Core Web Vitals | MEDIUM-HIGH | vitals- |
test cases passed, vs 14 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.