perf
/perf
Mierzy i poprawia wydajność strony three.js: wywołania rysowania, trójkąty, tekstury i czasy klatek.
- Autor
- laaielichter ↗
- Repozytorium
- Threesmith ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 11.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Mierzy i poprawia wydajność strony three.js: wywołania rysowania, trójkąty, tekstury i czasy klatek.
Wyzwalacze z opisu
Argumenty
/perf [what is slow, optional]
Oryginalny opis (EN)
Use when a three.js page is slow, stutters, has low fps, loads slowly, uses too much memory or GPU memory, heats a phone, or when asked to optimise a three.js scene. Measures first (draw calls, triangles, programs, textures, frame times), finds the cause with the review and lessons from real projects, changes one thing at a time and measures again. Also in Dutch: "het hapert", "traag", "lage fps", "sneller maken", "laadtijd", "geheugen loopt op".
Jak działa
SKILL.md bez nagłówków drugiego poziomu · 23 linii, 267 słów
Podgląd SKILL.md
---
name: perf
description: Use when a three.js page is slow, stutters, has low fps, loads slowly, uses too much memory or GPU memory, heats a phone, or when asked to optimise a three.js scene. Measures first (draw calls, triangles, programs, textures, frame times), finds the cause with the review and lessons from real projects, changes one thing at a time and measures again. Also in Dutch: "het hapert", "traag", "lage fps", "sneller maken", "laadtijd", "geheugen loopt op".
argument-hint: "[what is slow, optional]"
---
# Make a three.js scene faster, measured
Work on $ARGUMENTS (or what the user named). Never optimise without a number before and after.
1. **Measure first.** `three_perf` on the page (with `steps` for what happens in it) gives draw calls, triangles,
programs, geometries and textures (exact, the same on every GPU) and frame times (relative: headless Chromium draws
in software, so compare runs, do not quote them as real fps). It keeps the last run and shows the change.
2. **Let the review point.** `three_review` and read the `performance` category: allocations in the loop, geometry or
materials made per frame, scene traversal per frame, uncapped pixel ratio, huge shadow maps, many meshes that
should be instanced. `three_assets` names textures above 4096 and big uncompressed models.
3. **Ask what real projects learned.** `three_lessons` with topic `performance` or the symptom ("many draw calls",
"hitch when a model loads", "shader compile stutter").
4. **One change at a time.** Typical wins, biggest first: fewer draw calls (InstancedMesh, BatchedMesh, merged static
geometry, shared materials), pixel ratio capped at 2, compressed models (Draco or meshopt) and textures (KTX2),
smaller shadow maps with a tight shadow camera, `renderer.compileAsync` before the first frame, work moved out of
the loop.
5. **Measure again** with `three_perf`, the same case. Keep the change only when the numbers say so.
6. **Memory that grows** while the user switches levels or opens and closes things: `three_leaks` with the steps of
one cycle. It says what grows per cycle (geometries, textures, objects by type); after the fix it must be 0.
End with a table: change, before, after, kept or dropped.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · laaielichter/Threesmith | 96 | MIT |
| duronext/jig | 100 | MIT |
| dxos/dxos | 100 | Apache-2.0 |
| anilsoylu/famiglia | 100 | Apache-2.0 |
| jisuzzzz/haechi | 100 | MIT |
| oliver-kriska/claude-elixir-phoenix | 100 | MIT |
| 8beeeaaat/touchdesigner-mcp | 100 | MIT |
| 8beeeaaat/touchdesigner-mcp | 100 | MIT |
| htlin222/dotfiles | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 627df4845fa6 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 96perf-pass
Diagnozuje i naprawia problemy z wydajnością, takie jak niski FPS, zacinanie i rosnąca pamięć, mierząc przed i po. - 100threejs-scene-doctor
Diagnozuje działającą aplikację Three.js: wywołania rysowania, trójkąty, wycieki pamięci GPU, brakujące światła i zawieszone miksery. - 100game-perf-budget
Diagnozuje spadki FPS i przycięcia gry metodą pomiaru, sprawdza czy wąskim gardłem jest CPU czy GPU i wskazuje poprawki. - 100threejs-errors-performance
Diagnozuje wydajność sceny Three.js: niski FPS, wycieki pamięci, zbyt wiele wywołań rysowania i zużycie pamięci GPU. - 100performance-optimization
Profiluje i poprawia FPS gry, koszt CPU i GPU, płynność klatek, pamięć oraz renderowanie w Canvas lub Three.js bez zmiany rozgrywki. - 100game-perf-profiling
Profiluje buildy gier względem budżetów czasu klatki, pamięci, draw calli GPU i skoków GC w Unity i Unreal, ustala progi (16,6 ms przy 60 fps) i pisze testy regresji wydajności w CI.