[MC-560] Sound made by mobs in water causes massive FPS drop Created: 25/Oct/12 Updated: 07/Sep/15 Resolved: 04/Aug/13 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Minecraft 1.4.2, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w02a, Snapshot 13w02b, Snapshot 13w04a, Snapshot 13w06a, Snapshot 13w09a, Snapshot 13w10a, Minecraft 1.5, Minecraft 1.5.1 |
| Fix Version/s: | Minecraft 1.6.1 |
| Type: | Bug | ||
| Reporter: | HeroUnit | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 82 |
| Labels: | FPS, mob, sound, water | ||
| Environment: |
Windows 7 64-bit |
||
| Attachments: |
|
||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||
| CHK: | |||||||||||||||||||||||||
| Confirmation Status: | Confirmed | ||||||||||||||||||||||||
| Description |
|
Summary: How to Reproduce: Attached is a video of reproducing the bug. |
| Comments |
| Comment by Meri Diana [ 04/Aug/13 ] |
|
Josiah: Nether-lag is usually because of either the many lava and/or sound. On my old desktop computer the Ghasts (their yelling and the crashes of their fireballs) crashed my sound several times, and I also lagged because of it. Kind regards, [PS: @Kumasasa - reminds me: I still have to update my own Issue, sorry, forgot it due to real life stuff >.<] |
| Comment by Kumasasa [ 04/Aug/13 ] |
|
Ok, thanks. |
| Comment by HeroUnit [ 04/Aug/13 ] |
|
I can't seem to replicate this anymore... Tried chickens in a water pit, flying above rain, and a couple other things which induced the problem previously. Seems like this is fixed! I'm surprised, though... I still get some random fps drops in the nether... |
| Comment by Kumasasa [ 23/Jul/13 ] |
|
Is this still a concern in the current Minecraft version 1.6.2 / Launcher version 1.1.2 ? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. |
| Comment by George Gates [ 05/Mar/13 ] |
|
Still happens in 13w10a. |
| Comment by George Gates [ 28/Feb/13 ] |
|
Still exists in 13w09b. EDIT: I meant b. |
| Comment by George Gates [ 21/Feb/13 ] |
|
Still exists in 13w07a. |
| Comment by George Gates [ 08/Feb/13 ] |
|
Still exists in 13w06a. |
| Comment by George Gates [ 25/Jan/13 ] |
|
Still exists in 13w04a. |
| Comment by George Gates [ 24/Jan/13 ] |
|
Still exists in 13w03a. Glad I'm not the only person that's noticed this problem, it was an issue with chicken farms on an SMP server I ran a while back too. |
| Comment by Makov Denric [ 17/Jan/13 ] |
|
Confirmed for 1.4.7 AND that the fixes suggested in the comments solve the problem. Lag/stutter is more noticeable on weaker systems. Mojang please review this as a priority as it hinders game-play significantly on some systems. |
| Comment by Dan Keller [ 22/Dec/12 ] |
|
This sounds exactly like my issue. In my case it's a chicken coop where the chickens are in water that forces them into a hole where eggs are dropped. Any time I walk away from the coop I get a massive slowdown. I'll try the OpenAL files but ultimately I think a code change is what is needed. Jeroen, I appreciate your work and I hope it is used by the devs. Seems it would be a quick fix if they simply adopt your code. EDIT |
| Comment by sopapaya [ 14/Dec/12 ] |
|
I'm sure this is also the cause of
|
| Comment by Tom Mate [ 21/Nov/12 ] |
|
gj Jeroen! Let's hope a Dev sees your fix! |
| Comment by Jeroen van S [ 08/Nov/12 ] |
|
I managed to inject the fix into the actual sound system now, it should now work for pretty much any minecraft release because the soundsystem code is not obfuscated and doesn't change every release. I tested it for 1.4.2 and 1.4.3pre at least. As usual, copy the contents into minecraft.jar and remove META-INF. |
| Comment by Jeroen van S [ 06/Nov/12 ] |
|
After lots of messing around with this bug in MCP I eventually fixed it somewhat, although it is more than a workaround than a fix. I've attached the class files for 1.4.2 for those who are just as annoyed about this bug as I am. Install just like any mod: put .class files in minecraft.jar using 7zip or similar and remove the META-INF folder. For Mojang: The lag is caused by sndSystem.setListenerPosition in SoundManager.setListener when a lot of sounds go out of range at the same time; it is in fact not limited to the splashing sound, that one just gets played obscenely often in farms so it is most noticible with that sound. I couldn't check beyond SoundManager.setListener because MCP does not decompile paulscode (the actual sound system), but I assume it has something to do with sounds running at zero or negative volume or it trying to flush the buffer for a sound while trying to stop it or something. The fix/workaround in the associated class files is as follows:
P.S. I have never used this bug reporting system before, if I'm doing something wrong or am not supposed to upload the fix like this I do sincerely apologize. |
| Comment by HeroUnit [ 30/Oct/12 ] |
|
I've updated the title, as the problem is caused by all mobs, not just animals. |
| Comment by Alexandre Sartori Augusto [ 27/Oct/12 ] |
|
Confirmed, having the same issue. impossible to stay near automated chicken farms.... |
| Comment by Dojorune [ 25/Oct/12 ] |
|
confirmed, dropped about 15-30 fps |