vlad2305m / Sound-Physics-Fabric

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

Massive frame drops upon coming close to animal pens #42

Open tmprnc opened 2 years ago

tmprnc commented 2 years ago

My game suffers functionally unplayable frame drops when the renderer tries to calculate sound in proximity to a fairly crowded pen of neutral creatures, very likely because it's trying to render sound for all the entities. This might be a lot of them, this is hardly unrealistic for most worlds and most servers to have that many in one place. Turning off rendering of sound physics fixed the frame drops immediately. 2021-12-18_17 06 33 This isn't so much a "bug" as it is the renderer working as intended but lacking optimization for scenarios wherein which many mobs are present somewhere. I would rather avoid having to turn off friendly mob sounds in my game because of this one place.

thedocruby commented 2 years ago

This is simply a performance problem, there isn't really anything we can do to optimize entity sound specifically. This should get better as we make more and more performance improvements. In the meantime, version 0.5.2 has a 6x performance improvement over the previous version.