Reparenting the parent of an AudioEmitter to nil produces an unpleasant lag spike.

When reparenting the parent of an AudioEmitter to nil, it produces a spike in frame time.
Reproduction File: Upon clicking the button, the AudioEmitter is initialized on the client under the AudioSource Part. After which, the part is reparented to nil 0.5 seconds later on the Server.
repro_lag.rbxl (58.0 KB)

Video:

1 Like

Hey @fireys – I was not able to reproduce this, but we might be using different hardware – could you provide some system information? Also, is there anything interesting in the microprofiler around the time of the lag spike?

Hi there, here is my system information and a screenshot of the micro profiler:

  • AMD Ryzen 7 3700x 8-Core Processor
  • 16.0 GB Memory
  • NVIDIA GeForce RTX 2070 SUPER

MicroProfiler:

I am experiencing the same issue

System details:
OS: Windows 10
CPU: AMD Ryzen 5 5500
GPU: NVIDIA GeForce RTX 3060

Microprofiler dump
microprofile-20250409-194445.html (2.3 MB)

Interesting! Does this happen in the client too, or just Studio?

This happens whenever the part gets parented to nil; regardless whether it is done from the server or the client

This also happens in a live game

Microprofiler dump from live game:
microprofile-20250409-210039.html (8.1 MB)

This bug does not occur in the client, Just in studio as far as I’m aware.

More context for the case I am experiencing:


Same “Sound” label as the one in the microprofiler dump causing a lag spike. Footage from a live roblox server.