Extreme Microprofiler/Lag Spikes regarding "Sound"

Hello, as of this afternoon I have been experiencing very large stutters every couple seconds and when I check the Microprofiler I see “Sound” is taking up 230ms.

Dump: microprofile-20240819-173925.html (2.5 MB)
Video: https://youtu.be/VLG_6EvzpUc

This happens on any game on my end.

3 Likes

Hey @9vvo; could you share what audio input/output devices you are using?


Thank you for the quick reply! Are these wireless? I’m also curious if there’s both a headset and a headphones mode for the output device

1 Like

It does not

On a side note switching the microphone input fixed the issue for me, so it could’ve been an issue relating to input.

2 Likes

Yeah I think that’s related; from the microprofile you attached, it looks like whenever the Sound task takes a really long time, it’s also trying to reinitialize the recording drivers on another thread. I’m guessing this particular headset is running into some bluetooth shenanigans that cause the input drivers to fail or take a really long time to setup

Will keep digging into it, but for now if you can pick a different input device that avoids the lag, that may be a reasonable workaround

2 Likes

Happens in my game as well but changing my input device gave no improvement. It seems to happen in seemingly random spots in my game consistently. Areas that have no sounds. I can go back and forth to a spot and reproduce the big spike. Shows up the same in the MicroProfiler.

This was on Mac OS, Arm version of Roblox Player

Hey @Acecateer, could you attach a microprofiler capture? Or, do you have a link to the place(s) experiencing this?

microprofile-20240912-090942.html (3.1 MB)
On frame 26.

Place: Highland Park 🏡RP - Roblox

Just captured this morning. It’s strange because it seems to be easily reproducible by going around certain areas in the game (for this game if you walk around the upper parking lot of the hospital it happens easily). But those areas have no sounds and the game itself has minimal sound design. I’ve experienced this with and without voice chat enabled. I’ve seen it in the microprofiler on my windows machine and macbook, I’ve had lag spikes on the phone that feel like it could be the same issue as well.

Hey @Acecateer, this looks like the same thing – when the super long Sound scope is happening, there’s another scope further down doing RobloxAudioDevice::UpdateRecordedBuffer, indicating it’s related to an audio input device – can you share what microphone you have selected?

The audio input device on my windows machine is Yeti Classic

On my Macbook it’s set to the internal speakers and microphone.

I’ve tried switching to different inputs and the issue still occurs.

Thank you for your time looking into this!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.