During playtests of a large place, Studio freezes for 300–650 ms several times per second. In the MicroProfiler, every freeze starts on the same tick as perfdata_v2_sendphase > Memory::HeapCategoryWalkLive on a worker thread and lasts exactly as long as it. While it runs, the main thread and every other job (Heartbeat, networking, scripts) are stalled. No script is in its call stack. The walk repeats about every 250 ms.
The walk’s cost depends on swap memory. With 16–18 GB of swap (swap keeps growing during the playtest, compressed memory ~10 GB), walks take 300–650 ms and Studio freezes constantly. After closing other apps (swap under 3 GB, compressed 3 GB), the same place playtests smoothly: every walk takes 9.6–9.9 ms and the worst frame is 75 ms (capture microprofile-20261018-222105, unrelated to the walk). In the Roblox Player on the same machine the walk takes about 8 ms, and on 16 GB Windows PCs 4–8 ms.
Measured (MicroProfiler, 3.2 s capture)
- Walk durations: 570, 475, 330, 471, 83 ms
- Frame times match each walk exactly
- A second capture: 342, 657, 119, 100, 149, 218, 331, 62 ms (worst frame 751 ms)
- Disabling all of our own memory-stat sampling (GetTotalMemoryUsageMb / GetMemoryUsageMbForTag) does not change it
- A 17 GB test place made only of parts and Luau tables walks in 5–8 ms, so the cost appears to depend on the kind of memory Studio holds and on it being swapped
Repro steps
- Open a large place (ours: ~595k Workspace instances, ~1,500 scripts; Studio uses 15–18 GB in Edit mode) on a Mac whose memory is under pressure (other apps open, swap in the GBs).
- Start a playtest and open the MicroProfiler.
- Studio freezes for hundreds of ms several times a second. Each freeze is perfdata_v2_sendphase > Memory::HeapCategoryWalkLive.
- Close other apps until swap drops below ~3 GB, then playtest again: the freezes mostly stop.
Expected behavior
Memory telemetry should not block the main thread and every worker. It should not hold the whole engine while reading swapped-out memory, and should skip or throttle itself under memory pressure.
System
- Studio version 743, macOS 26.3.1
- MacBook Pro, Apple M4 Pro (Mac16,7), 24 GB unified memory
A private message is associated with this bug report