threejs-performance · cesartevisual — скилл для Claude Code
Скилл threejs-performance для Claude Code анализирует и оптимизирует время отрисовки кадров, нагрузку на GPU, память ассетов и утечки ресурсов в Three.js.
MIT 817 установок ★ 26 обновлён 2026-09-10
npx skills add cesartevisual/threejs-skills --skill threejs-performance -a claude-codeЧто делает threejs-performance
Агент выявляет узкие места на уровне процессора, вызовов отрисовки, шейдеров и памяти, используя версии и архитектуру проекта. Для замеров проверяется распределение времени кадров, состояние сцены, размер вьюпорта и плотность пикселей. Ошибки утечки памяти устраняются через освобождение геометрий, материалов, текстур, целевых объектов и контроллеров.
Перед изменениями фиксируются исходные показатели, а каждое действие по оптимизации изолируется для проверки. Очистка рендерера не освобождает автоматически все объекты сцены, поэтому владение ресурсами настраивается явно. После изменений проверяются повторный монтаж и замена моделей, чтобы исключить нарастающие тренды потребления кучи.
Инструкции по профилированию описаны в references/profile.md, а точные сигнатуры проверяются по документации рендерера WebGL.
Какие задачи решает
- проверить время отрисовки кадров в Three.js
- найти утечки памяти в текстурах и геометриях
- сократить число вызовов отрисовки draw calls
- оптимизировать нагрузку на графический процессор
Примеры запросов агенту
- Запусти профилирование кадров с помощью threejs-performance
- Найди утечки памяти в материалах сцены threejs
- Проверь нагрузку на GPU и время компиляции
Как установить threejs-performance
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-performance -a claude-code2Вручную: положить файлы
~/.claude/skills/threejs-performance/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/threejs-performance/
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-performance -a codex2Вручную: положить файлы
.agents/skills/threejs-performance/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-performance -a cursor2Вручную: положить файлы
.cursor/skills/threejs-performance/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install cesartevisual/threejs-skills skills/threejs-performance2Вручную: положить файлы
.github/skills/threejs-performance/SKILL.md1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-performance -a gemini-cli2Командой платформы
gemini skills install https://github.com/cesartevisual/threejs-skills --path skills/threejs-performanceВручную: положить файлы
.devin/skills/threejs-performance/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-performance -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о threejs-performance
Как установить threejs-performance в Claude Code?
Выполните команду npx skills add cesartevisual/threejs-skills --skill threejs-performance -a claude-code, затем обратитесь к файлу ~/.claude/skills/threejs-performance/SKILL.md.
Что делает threejs-performance?
Скилл профилирует и оптимизирует производительность Three.js, отслеживая время кадров, нагрузку на GPU, память и утечки ресурсов.
Где описан процесс фиксации замеров?
Порядок до и после измерений разобран в файле references/profile.md.
Исходный текст
SKILL.md · MIT
--- name: threejs-performance description: "Profile and optimize Three.js frame time, GPU workload, asset memory, and resource leaks." --- # Performance and Memory Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions. Reproduce on a representative device and record scene state, viewport, pixel ratio, backend, asset sizes, and frame-time distribution. Distinguish first-load/decode/compile stalls from steady-state frame cost. Read [the profiling worksheet](references/profile.md) for a repeatable before/after record. Determine whether the bottleneck is CPU work, submission/draw calls, GPU shading/fill, transfers, or memory. Reduce resolution to probe pixel cost; isolate shadows/effects; compare static versus animated updates. Change one major variable at a time. Use instancing/batching when draw calls dominate, reduce overdraw/effect resolution when fill dominates, and simplify animation or move appropriate work off-thread when CPU-bound. Lowering triangles will not fix every bottleneck. Avoid per-frame allocations and repeated shader recompilation. Define resource ownership across shared caches and instances. Release owned geometries, materials, textures, targets, controls, mixers, observers, and listeners. Disposing a material does not dispose its textures; disposing a renderer does not free all scene-owned objects. Do not dispose cache entries still in use. Measure repeated mount/unmount and model replacement after warmup. Internal caches can leave nonzero counters; look for an unexplained rising trend rather than demanding zero. CPU heap and renderer.info are partial evidence, not exact GPU memory. Accept an optimization only when the measured improvement preserves required appearance and interaction. Report device, method, before/after values, and limits of the measurements. ## API reference Consult the [official documentation](https://threejs.org/docs/pages/WebGLRenderer.html) for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.
© cesartevisual · MIT · cesartevisual/threejs-skills
Похожие скиллы
Все скиллы по теме «Геймдев и 3D: Unity, Unreal, Godot, Blender» →Сначала — threejs-performance от других авторов.