Studio / ROBLOX
Find frame spikes with Roblox MicroProfiler
Reproduce one hitch, identify the costly section of the frame, and compare measurements after a single fix.
Choose a repeatable action #
In a separate test, record the action next to the hitch, such as opening an inventory, showing a group of pets or turning toward a busy scene. Keep the device, graphics settings and route fixed. A different camera angle or a lighter scene can otherwise look like a code improvement.
Read frame time alongside average FPS #
Open MicroProfiler in Roblox Studio and find the long frames around the action. A target of 60 FPS corresponds to roughly 16.7 milliseconds per frame, a reference rather than a rule for all devices. A few smooth frames can hide a noticeable hitch when you look only at an average.
Inspect nested tasks #
Zoom in on a conspicuous spike. Identify whether the time is spent in rendering, physics, a script or asset loading. A parent bar can include the child task time, so avoid adding those bars as separate costs. Record what the profile actually shows before changing scene or network settings.
Mark the piece of work you own #
In a test build, wrap the selected work in debug.profilebegin and debug.profileend. Give it a name like rebuilding inventory rows so it is easy to spot. Close the measurement on every execution path. The marker identifies work in the trace; it does not improve performance by itself.
Change one cause #
If the inventory rebuilds each frame, try updating only when its data changes while keeping the same UI and items. For a hitch on first open, measure the first and repeat opening separately. Avoid changing graphics quality, object count and update frequency together.
Measure and check behavior #
Repeat the same scenario a few times. Compare long frame durations, the named task and the visible result. Losing a needed action or animation is not a successful optimization. Record the before and after scenario, device and observed range instead of saving only the best frame.
| What to check | Expected result |
|---|---|
| Scenario | Same route |
| Long frame | Record duration |
| Nested work | Avoid double counting |
| Marker | Visible in the trace |
| One change | Repeat the scene |
| Result | Keep the same features |
Original sources
Roblox Creator Hub · MicroProfiler walkthroughRoblox Creator Hub · Improve performance
Roblox Creator Hub · Task scheduler


