Roblox Performance

TabooHarmony/roblox-brain/skills/core/roblox-performance

by TabooHarmony38826be57ee37bcf023e9c2b85681bea3909281cNo licenseListed Oct 9, 2026Updated Oct 9, 2026

Use when profiling Roblox performance or diagnosing FPS, memory, network, mobile, or hot-path problems.

Instructions onlySoftware Development
AI-generated overview

Guides profiling and diagnosing Roblox game performance issues such as FPS, memory, network, and mobile hot paths.

What it does
This skill provides reference guidance for profiling Roblox experiences and diagnosing performance problems. It covers profiling tools such as the MicroProfiler, Developer Console, and Script Profiler, performance targets for server heartbeat, client FPS, and memory, plus Parallel Luau, hot-loop cost, object pooling, StreamingEnabled, and mobile considerations. It is an instructions-only skill that points to a fuller reference document with code examples and API tables.
When to use it
Use it when profiling Roblox performance or diagnosing FPS, memory, network, mobile, or hot-path problems. It is meant for performance budgeting and measurement-driven optimization work rather than general gameplay scripting.
Requirements
No scripts are shipped; it is instructions only. It references an additional model-readable document at references/full.md. No credentials, packages, or runtime beyond the agent are required.

Roblox Performance

When to Load

Use for profiling and performance budgets. Pooling and lifecycle patterns: roblox-luau-patterns.

Quick Reference

Profiling Tools

  • MicroProfiler (Ctrl+F6): Frame breakdown of scripts, physics, rendering.
  • Developer Console (F9): Memory, network, rendering, and server stats.
  • Script Profiler (Ctrl+Alt+F5): Per-script CPU and heap.
  • Labels: debug.profilebegin/debug.profileend mark regions; debug.setmemorycategory labels memory. Gate instrumentation behind a flag.

Performance Targets

MetricStarting targetInvestigate at
Server heartbeat< 16ms> 33ms
Client FPS (desktop)60< 30
Client FPS (mobile)45< 30
Memorydevice-specificsustained growth

Optimize measured hot paths, not folklore. Throttle from measurements; re-profile after shipping.

Parallel Luau

  • Use Actors only after profiling identifies isolatable CPU work.
  • Workers compute; synchronize before restricted DataModel writes.
  • Do not rely on shared module state across Actors. SendMessage copies data; SharedTable supports shared state and atomic updates.

Hot-loop cost model

  • Luau optimizes global imports; avoid folklore function hoisting/unrolling. Environment impurity can disable optimizations. Profile allocations as well as CPU; GC cost may occur later.

Object Pooling

Pre-clone and reuse. Canonical pool code (token-lease ownership): roblox-luau-patterns.

StreamingEnabled Essentials

  • On by default. Container-scoped: only Workspace descendants stream. ModelStreamingBehavior = Improved streams non-BasePart descendants with their parent Model; Legacy streams only BaseParts.
  • Streamed-out = parented to nil, not destroyed. Luau refs persist if it streams back.
  • Config (Studio): target defaults 1024, min 64; set StreamingIntegrityMode; tune from data.
  • Gotcha: FindFirstChild("DistantPart") returns nil if streamed out. Use WaitForChild with timeout.

Mobile

  • Profile geometry, textures, particles, UI, shadows on low-end devices.

Full reference with code examples and API tables: references/full.md [blocked]

Source and attribution

Source:TabooHarmony/roblox-braininskills/core/roblox-performanceat commit38826be

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal