henkelmax / sound-physics-remastered

A Minecraft mod that provides realistic sound attenuation, reverberation, and absorption through blocks.
GNU General Public License v3.0
69 stars 22 forks source link

Multithreading #71

Closed dankcatlord closed 1 year ago

dankcatlord commented 1 year ago

Is your feature request related to a problem? Please describe. When I increase the sound bounces, I experience lag spikes.

Describe the solution you'd like I propose that the audio is processed on a separate thread so that the mod won't block the main process.

Describe alternatives you've considered

henkelmax commented 1 year ago

Thats not possible since the mod needs a lot of data from the Minecraft world, which is not thread safe. Some stuf already runs in a separate thread, but unfortunately the stuff that causes the most lag is not thread safe.