# Three.js mobile budget

> Holds three.js scenes to a frame budget on phones with instancing and smaller textures, so they stay smooth.

- Page: https://youraiskill.com/skill/nirholas-mobile-performance-budget
- What it does: Make a three.js scene hold frame rate on phones: measure draw calls, triangles, texture memory and frame time with renderer.info and THREE.Timer, cut draw calls with InstancedMesh and BatchedMesh, cap the pixel ratio and scale resolution adaptively, shrink texture memory with KTX2 and smaller maps, and stay inside a concrete per-frame budget. Use when a scene is slow, janky, hot, drains battery, crashes or reloads on iOS Safari, stutters on Android, has too many draw calls, repeats the same object many times, or when the user asks how to profile or optimize three.js performance.
- Niches: frontend, mobile-apps
- Licence: Apache-2.0
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions and reference files only (1 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
