Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

threejs-performance

Skill by CloudAI-X

Measures and optimizes three.js scene speed, covering render statistics, draw call reduction, LOD, culling and GPU memory. Written for developers whose scene is slow, janks, or exceeds memory.

  • Score 84
  • 4.9k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install threejs-performance

Built from the published package, never by AI.

git clone --depth 1 https://github.com/CloudAI-X/threejs-skills /tmp/threejs-skills && mkdir -p ~/.claude/skills && cp -r /tmp/threejs-skills/skills/threejs-performance ~/.claude/skills/threejs-performance

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install threejs-performance in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill guides an assistant through measuring and optimizing the speed of three.js scenes. It explains how to read renderer.info counters after render(), including draw calls, triangles and memory counts, and how to time frame intervals and CPU work inside render(). It then covers reducing draw calls with geometry merging, InstancedMesh, BatchedMesh and LOD, along with frustum culling pitfalls.

The skill also covers GPU memory, including KTX2 compressed textures, texture sizing and disposal of geometries, materials and textures. It targets three.js r186, with examples using WebGLRenderer and a WebGPU and TSL section using WebGPURenderer. It is aimed at developers whose scene is slow, janks, or exceeds memory, and it points to browser profilers for deeper analysis.

Written from the project's SKILL.md and checked against it.

What it can do

  • Read render statisticsReads renderer.info counters for draw calls, triangles, geometries, textures and programs after render().
  • Measure frame timingAverages frame interval and CPU time spent in render() over a set number of frames.
  • Merge static geometryBakes many meshes sharing one material into a single mesh to cut draw calls.
  • Instance repeated meshesDraws one geometry many times with per-instance transforms using InstancedMesh.
  • Batch different geometriesPacks many geometries sharing one material into a BatchedMesh.
  • Add level of detailUses LOD levels so distant objects submit fewer triangles based on camera distance.
  • Fix frustum cullingExplains stale bounding spheres and when to disable frustum culling on one mesh.
  • Reduce GPU memoryCovers KTX2 compressed textures, texture sizing and disposing of unused resources.

What you need

  • three.js r186 (target version)
  • Browser with WebGL or WebGPU support
  • Chrome DevTools Performance panel (optional, for deeper profiling)

Try asking

  • Check why my three.js scene drops frames and which renderer.info counters to read
  • Merge these static rock meshes into one mesh to reduce draw calls
  • Add LOD levels to my tree models based on camera distance

Good to know

  • Merged and instanced meshes use one bounding sphere, so culling is all or nothing for the group.
  • Examples use WebGLRenderer; the WebGPU and TSL part uses WebGPURenderer.
  • The source text ends mid-section, so the WebGPU, shadow and GPU compute parts are only partly shown.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/threejs-performance/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md25 KB

Alternatives to threejs-performance

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

threejs-performance: common questions

Which three.js version does this skill target?

It targets three.js r186. Examples use WebGLRenderer, and the WebGPU and TSL section uses WebGPURenderer.

How do I reduce draw calls in three.js?

The skill covers merging static geometry, instancing repeated geometry with InstancedMesh, batching different geometries with BatchedMesh, and using LOD. Each approach keeps the call count low for many objects.

Why does my mesh disappear when it should be visible?

A stale bounding sphere can hide a mesh still in view. Editing vertices without calling geometry.computeBoundingSphere() or moving vertices in a shader can cause this.

How do I install threejs-performance?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is threejs-performance free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is threejs-performance safe to use?

It scores 84 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to threejs-performance?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

threejs-performance Install

Add to stack

Loading.