roblox-performance
БесплатноБез исполняемых скриптовНе проверенUse when profiling, fixing or reviewing Roblox performance: lag, low FPS, memory, crashes on phones, load time, streaming.
от TabooHarmony★ 230 звёзд на GitHubОб этом скилле
Roblox Performance
When to Load
Frame time, memory, crashes, load time or streaming. With the Studio MCP, also load rbx-perf-profiling / rbx-scene-analysis. Physics contacts: roblox-physics. Cleanup and task traps: roblox-luau.
"Field-measured" = measured in one of the owner's projects; verify yours.
Traps (symptom -> cause -> fix)
- Studio hitches but a live game feels smooth -> Studio solo runs server and client in one process, so client frames include server work. Profile a local server + 1 client, then confirm on a published client on a phone (rendering, memory) (§1).
- Unattended or agent-driven playtest reads ~15 FPS -> Studio throttles an unfocused client (idle p50 ~66.7 ms). Void captures whose idle p50 isn't ~16.7 ms; compare per-action CPU instead (§1).
- "Mesh budget is full", later builds (even map chunks) fail -> runtime-built mesh memory (
EditableMesh,CreateMeshPartAsync) counts against a per-device budget (lower on mobile) for as long as the objects exist. Spreading builds over time does not help; the total does. Build lazily on use, keep a small LRU, free the rest; upload fixed models as mesh assets to avoid the runtime cost (§2). - Client physics 8 -> 15-46 ms after a blast of small debris -> contacts inside piles. Turn off collision (
CanCollide = falseor a no-collide group) on debris that is fading or being cleared; verify by toggling it in a profiled session (roblox-physics§5). - Meshed the visuals, Studio and load still heavy -> invisible collider Parts still cost (~3.3 KB per Part whatever its collision flags). Replace voxel colliders with a few coarse boxes/slabs or
Box/Hullfidelity; small decor non-colliding. StreamingEnabled doesn't replace cutting instances and collision. - Converted Parts to MeshParts and draw calls rose -> draw calls follow unique meshes/materials; identical ones instance. ~20.8k Parts drew in ~31 calls; the same build as ~331 unique meshes took ~295. Measure (Shift+F2) before and after.
- Tiers from
UserGameSettings.SavedQualityLevel-> the docs now advise against driving effects from it, and on Automatic scripts can't read the active level. If you tier anyway, map only manual levels 1-10 and use a device fallback (touch -> low); better, key debris/effect/physics budgets (which engine scaling never reduces) to measured frame time. - Per-frame work capped by item count still spikes -> each item gets dearer as the world grows. Cap by elapsed
os.clock()(~3-4 ms) (§3). - Long-lived server memory grows per join -> Player and Character objects aren't destroyed by default. Set
Workspace.PlayerCharacterDestroyBehavior = Enabledin Studio (Defaultfollows an engine default that can change) and still disconnect your own connections. - Stats don't add up ->
Stats.RenderCPUFrameTime/RenderGPUFrameTimeread in seconds (0.0085 = 8.5 ms),PhysicsStepTimeMsin ms and smoothed (ramped 2 -> 43 over ~2.5 s);RenderGPUFrameTime~0 in Studio;GetTotalMemoryUsageMb()in Studio includes the editor (2+ GB) (field-measured). FindFirstChildon a distant object returns nil, remote args arrive nil -> streamed-out instances are parented to nil. Send stable ids and resolve on arrival, orPlayer:RequestStreamAroundAsync()before firing (§4).- Delayed 1-17 s stalls after destroying runtime meshes on a big map -> engine background work (~12.5k
CreateMeshPartAsyncmeshes, destroying 30). Retire them by unparenting and holding a reference (Studio solo, field-measured).
Limits (field-measured, Studio PC unless noted)
| Case | Measured |
|---|---|
| Studio playtest server tick | ~20 Hz: a "frame" holds ~3x a live 60 Hz frame's work |
| Large data module require | 234-518 ms in Studio (compile), ~40 ms on phones (bytecode) |
| 1,657 Parts parented one by one vs into a detached Folder + one attach | 12.3 ms vs 0.6 ms |
| Count-capped per-frame work -> time cap + grid | 523 ms -> 19 ms |
FindFirstChildWhichIsA per Part in a 13k-child folder |
198 ms (linear scan; memoise per parent) |
part.Parent read / GetPartBoundsInBox |
~0.10 us / 6-15 us (--!native won't speed engine calls) |
| New Part vs pooled | ~37 us vs ~7 us |
| Clone+parent quiet vs with thousands of moving parts | ~30 us vs ~500 us |
| Lazy BVH: warm ray vs first shot building it | 0.13 ms vs 2-13 ms |
| Destroy a 145k-part map in one call | 2.5 s frame (slice ~30 ms with task.wait()) |
Review checklist
| Symptom | Check |
|---|---|
| Lag numbers from Studio | Solo vs server+client, window focus, ~20 Hz server, editor memory; confirm on a phone |
| Crashes | Dashboard crash type/platform, memory over a long phone session, never-destroyed meshes/debris |
| Memory grows | Player/Character destroy behavior, connections, runtime meshes held, caches never cleared |
| A fix "should" help but doesn't | Benchmarked in the reporter's state? Worst frame from another system? Harness work inside the window? |
| GC spikes | Allocation sour |
Установить roblox-performance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл roblox-performance?
Use when profiling, fixing or reviewing Roblox performance: lag, low FPS, memory, crashes on phones, load time, streaming.
Как установить скилл roblox-performance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл roblox-performance запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic