<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:51:27 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MC-560] Sound made by mobs in water causes massive FPS drop</title>
                <link>https://bugs.mojang.com/browse/MC-560</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Summary:&lt;br/&gt;
When two or more animals collide (or are touching) in water, and the player moves more than 16 blocks away from them, there is a massive FPS drop. However, when the sound is off this issue does not occur.&lt;/p&gt;

&lt;p&gt;How to Reproduce:&lt;br/&gt;
Make sure sound is set above 0%! Dig a 1x1 hole 2 deep. Place water in the bottom. Spawn two or more chickens (more will make it worse) in the hole. Walk 16-18 blocks away, while observing FPS and sound CPU usage on the debug chart.&lt;/p&gt;

&lt;p&gt;Attached is a video of reproducing the bug.&lt;/p&gt;</description>
                <environment>Windows 7 64-bit&lt;br/&gt;
64-bit Java 7 Update 3&lt;br/&gt;
Vanilla</environment>
        <key id="11830">MC-560</key>
            <summary>Sound made by mobs in water causes massive FPS drop</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="yoshiyahu">HeroUnit</reporter>
                        <labels>
                            <label>FPS</label>
                            <label>mob</label>
                            <label>sound</label>
                            <label>water</label>
                    </labels>
                <created>Thu, 25 Oct 2012 21:50:36 +0200</created>
                <updated>Mon, 7 Sep 2015 18:40:30 +0200</updated>
                            <resolved>Sun, 4 Aug 2013 07:45:29 +0200</resolved>
                                    <version>Minecraft 1.4.2</version>
                    <version>Minecraft 1.4.6</version>
                    <version>Minecraft 1.4.7</version>
                    <version>Snapshot 13w02a</version>
                    <version>Snapshot 13w02b</version>
                    <version>Snapshot 13w04a</version>
                    <version>Snapshot 13w06a</version>
                    <version>Snapshot 13w09a</version>
                    <version>Snapshot 13w10a</version>
                    <version>Minecraft 1.5</version>
                    <version>Minecraft 1.5.1</version>
                                    <fixVersion>Minecraft 1.6.1</fixVersion>
                                                        <votes>82</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="97070" author="lapisdemon" created="Sun, 4 Aug 2013 11:43:07 +0200"  >&lt;p&gt;Josiah: Nether-lag is usually because of either the many lava and/or sound.&lt;br/&gt;
Believe it or not, but depending on how good your soundcard is, MC sound can lag you badly, mostly mobs.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Meri&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;PS: @Kumasasa - reminds me: I still have to update my own Issue, sorry, forgot it due to real life stuff &amp;gt;.&amp;lt;&amp;#93;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="97024" author="kumasasa" created="Sun, 4 Aug 2013 07:45:29 +0200"  >&lt;p&gt;Ok, thanks.&lt;/p&gt;</comment>
                            <comment id="97023" author="yoshiyahu" created="Sun, 4 Aug 2013 07:33:17 +0200"  >&lt;p&gt;I can&apos;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&apos;m surprised, though... I still get some random fps drops in the nether...&lt;/p&gt;</comment>
                            <comment id="94000" author="kumasasa" created="Tue, 23 Jul 2013 22:27:50 +0200"  >&lt;p&gt;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.&lt;/p&gt;
</comment>
                            <comment id="49923" author="rydian" created="Tue, 5 Mar 2013 08:01:04 +0100"  >&lt;p&gt;Still happens in 13w10a.&lt;/p&gt;</comment>
                            <comment id="48418" author="rydian" created="Thu, 28 Feb 2013 20:05:06 +0100"  >&lt;p&gt;Still exists in 13w09b.&lt;/p&gt;

&lt;p&gt;EDIT: I meant b.&lt;/p&gt;</comment>
                            <comment id="46822" author="rydian" created="Thu, 21 Feb 2013 03:45:37 +0100"  >&lt;p&gt;Still exists in 13w07a.&lt;/p&gt;</comment>
                            <comment id="44486" author="rydian" created="Fri, 8 Feb 2013 14:10:00 +0100"  >&lt;p&gt;Still exists in 13w06a.&lt;/p&gt;</comment>
                            <comment id="39847" author="rydian" created="Fri, 25 Jan 2013 21:29:02 +0100"  >&lt;p&gt;Still exists in 13w04a.&lt;/p&gt;</comment>
                            <comment id="39365" author="rydian" created="Thu, 24 Jan 2013 09:04:24 +0100"  >&lt;p&gt;Still exists in 13w03a.&lt;/p&gt;

&lt;p&gt;Glad I&apos;m not the only person that&apos;s noticed this problem, it was an issue with chicken farms on an SMP server I ran a while back too.&lt;/p&gt;</comment>
                            <comment id="37285" author="commissar_denric" created="Thu, 17 Jan 2013 06:13:39 +0100"  >&lt;p&gt;Confirmed for 1.4.7 AND that the fixes suggested in the comments solve the problem.&lt;/p&gt;

&lt;p&gt;Lag/stutter is more noticeable on weaker systems.&lt;/p&gt;

&lt;p&gt;Mojang please review this as a priority as it hinders game-play significantly on some systems.&lt;/p&gt;</comment>
                            <comment id="30155" author="mineplacidcat" created="Sat, 22 Dec 2012 17:48:23 +0100"  >&lt;p&gt;This sounds exactly like my issue. In my case it&apos;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&apos;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.&lt;/p&gt;

&lt;p&gt;EDIT&lt;br/&gt;
OpenAL did the trick - I have a blissfully, consistent framerate. That said, I would rather have a fix that allows the use of the 64-bit OpenAL drivers (and one that addresses the core issue).&lt;/p&gt;</comment>
                            <comment id="28453" author="sopa" created="Fri, 14 Dec 2012 23:13:42 +0100"  >&lt;p&gt;I&apos;m sure this is also the cause of &lt;a href=&quot;https://bugs.mojang.com/browse/MC-46&quot; title=&quot;Rain sound causes stuttering&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-46&quot;&gt;&lt;del&gt;MC-46&lt;/del&gt;&lt;/a&gt;. &lt;a href=&quot;https://mojang.atlassian.net/browse/MC-46?focusedCommentId=16008&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16008&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;The workaround I provided there&lt;/a&gt; also fixes this.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;This is a notorious issue with rain, but it&apos;s also caused ocassionally by other sounds. I worked around it by deleting the OpenAL files in bin/natives and installing them in my OS. Never had sound lag problems again.&lt;/p&gt;

&lt;p&gt;I followed the steps from here: &lt;a href=&quot;http://www.minecraftforum.net/topic/892045-sound-lagstutter-fix/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.minecraftforum.net/topic/892045-sound-lagstutter-fix/&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</comment>
                            <comment id="23793" author="gulden" created="Wed, 21 Nov 2012 04:00:04 +0100"  >&lt;p&gt;gj Jeroen! Let&apos;s hope a Dev sees your fix! &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="19445" author="flaks314" created="Thu, 8 Nov 2012 14:56:22 +0100"  >&lt;p&gt;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&apos;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.&lt;/p&gt;</comment>
                            <comment id="18774" author="flaks314" created="Tue, 6 Nov 2012 14:09:12 +0100"  >&lt;p&gt;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&apos;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.&lt;/p&gt;

&lt;p&gt;For Mojang:&lt;/p&gt;

&lt;p&gt;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&apos;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.&lt;/p&gt;

&lt;p&gt;The fix/workaround in the associated class files is as follows:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Maintain a hash map of all running sounds with their associated position (the actual sound system probably does this already but due to aforementioned reasons I could not access these classes easily).&lt;/li&gt;
	&lt;li&gt;Loop over them in setListener just before calling sndSystem.setListenerPosition.&lt;/li&gt;
	&lt;li&gt;Call sndSystem.stop for all sounds which are about to go out of range and remove them from the hash map.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;P.S. I have never used this bug reporting system before, if I&apos;m doing something wrong or am not supposed to upload the fix like this I do sincerely apologize.&lt;/p&gt;</comment>
                            <comment id="15579" author="yoshiyahu" created="Tue, 30 Oct 2012 21:08:27 +0100"  >&lt;p&gt;I&apos;ve updated the title, as the problem is caused by all mobs, not just animals.&lt;/p&gt;</comment>
                            <comment id="14444" author="alxwarlord" created="Sat, 27 Oct 2012 19:00:33 +0200"  >&lt;p&gt;Confirmed, having the same issue. impossible to stay near automated chicken farms....&lt;/p&gt;</comment>
                            <comment id="13571" author="dojorune" created="Thu, 25 Oct 2012 22:34:06 +0200"  >&lt;p&gt;confirmed, dropped about 15-30 fps&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="18964">MC-6295</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="20121">MC-7337</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="20378">MC-7573</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="21570">MC-8611</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17143">MC-4615</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="10939" name="Demo.wmv" size="4339525" author="yoshiyahu" created="Thu, 25 Oct 2012 21:50:36 +0200"/>
                            <attachment id="12403" name="mob-in-water lag fix MC1.4.2.zip" size="11224" author="flaks314" created="Tue, 6 Nov 2012 14:09:12 +0100"/>
                            <attachment id="12566" name="soundsystem lag fix, any MC version.zip" size="9457" author="flaks314" created="Thu, 8 Nov 2012 14:56:21 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 26 Jan 2013 20:40:00 +0100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10303"><![CDATA[Confirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i049x3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>