Profile a three.js or WebGL page from a coding agent - frame time (fps), draw calls, triangles and asset size against a budget, and which objects or settings cost the frame. Use when it stutters, has low fps or loads slowly. paprika3d's perf tool.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Threejs Perf?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/keeno-corp-threejs-perf)
---
name: threejs-perf
description: Profile a three.js or WebGL page from a coding agent - frame time (fps), draw calls, triangles and asset size against a budget, and which objects or settings cost the frame. Use when it stutters, has low fps or loads slowly. paprika3d's perf tool.
---
# Profile a three.js page
After `open`, `perf` measures the frame against a budget (`desktop` by default; `site` for a 3D website, which also times the first scene frame and counts script and asset megabytes):
- `costs: true` lists triangles, shadow casters, draw calls and texture megabytes by named group.
- `variants` measures each change on a fresh page against the baseline in one call: `{ label: "no trees", hide: ["trees"] }`, a `pixelRatio`, `code` run with `renderer` and `scene`, or a `query` read at load.
- `throttle: 4` slows the page's JavaScript as on a weak laptop.
- `network` (also on `open`) times a cold load before the sample: `"broadband"` (20 Mbps / 40 ms, the target), Chrome's `"fast-4g"`, `"slow-4g"`, `"3g"`, or `{ downKbps, upKbps, latencyMs }`. Under a software renderer judge only the bytes, not the time.
`perf` with `optimize: true` is for a frame `perf` says is over budget, or a user who asks about performance: it tries the `@paprika3d/three-runtime` switches, keeps those that help (a kept `resolution` or `lod` may change the picture and is then marked `lookChanged`) and writes `game-runtime.json` (`../threejs-game/references/optimize.md`).
A `Slow start` line, or a page slow to its first frame, is usually shader compiles: draw a plain first frame, then add each effect (shadows, `foliage()`, `water()`, `post()`, ...) in its own `renderer.compileAsync` batch (`../threejs-game/references/optimize.md`, Load time).
If `open` and `perf` are not among your tools, the paprika3d MCP server is not installed: it runs as `npx -y paprika3d serve` (stdio), and https://paprika3d.com/docs/install?ref=skill has each agent's line.