space-wizards / RobustToolbox

Robust multiplayer game engine, used by Space Station 14
https://spacestation14.io
Other
548 stars 409 forks source link

MIDI lock contention #4642

Open metalgearsloth opened 11 months ago

metalgearsloth commented 11 months ago

ATM if I want the audio position + occlusion + velocity updates to be as frequent as standard audio this isn't possible because the thread and the parallel job will get lock contention with each other.

Ideally, at least on the update side:

metalgearsloth commented 11 months ago

The only thing that I changed in audio refactor was the update rate and how position / velocity are set for the buffered source so at least my best guess is lock contention, anything else is a new problem.

deltanedas commented 11 months ago

yeah maybe semaphore waiting will help with contention -> midi ddos goes bye bye????