Audio API causing extreme lag

I made a walkie talkie in my game that supports multiple channels, but iencountered a problem that whenever audio api elements are present inside it it causes unbearable lag. I made a temporary fix taht places these objects inside it only when held, but whenever there are more than 2 at once, it starts lagging. In addition i i placed these objects inside manually and now whenever i even want to delete them my studio crashes
guts.rbxm (7.5 KB)
radio comm.rbxm (22.8 KB)
Here is the model and its “guts”. Put the folder underneath the walkie talkie (and ungroup it optionally but lag happens without that). Scripts crucial for actually using it (yet not necessary for the lag to happen) are in my whole game file that i will ad for staff only

Expected behavior

I expect no lag or just some kind of solution on what should i do to reduce it

A private message is associated with this bug report

1 Like

I was not able to reproduce this, but I might be doing the setup wrong – I also took a look at the placefile in DMs but that did not lag for me – do you have a microprofiler capture during the lag that might show more information about the performance hit?

1 Like

Sorry for the delay, I was out on a trip.


Here is a video of me entering a game with just one walkie-talkie having its internals. (Usually it worked normally with max 2 of them but now its worse for some reason). I havent really used the microprofiler so I wasnt sure what to look for. If you need something specific, tell me.

1 Like

It looks like the bulk of the time spent might be coming from the Acoustic Simulation beta feature – I tried it out with acoustics enabled, and it still didn’t lag for me – but if you retry the placefile without Acoustic Simulation enabled does it still lag on your end?

1 Like

Didnt help sadly. If we cant work out anything and if it is allowed I could just temporarily give you permission to the game.

1 Like